This is closely related to the recent post Default F_CPU for "ATmega4809 Xplained Pro"?https://www.avrfreaks.net/forum/default-fcpu-atmega4809-xplained-pro
But, this is a totally separate issue, hence the new thread.
The Xplained Pro documentation says that TWI is mapped to PORTC[3:2] AND it says that it is shared with mikroBUS, CryptoAuthentication, and EDBG DGI.
Does that mean that TWI should remain on PORTC rather than PORTA and that the settings such as baud rate remain unchanged? How do you insure that you don't try to initiate a transfer that conflicts with something else that is going on? OR, do these shared uses only occupy the slave capability while the master remains at PORTA[3:2] (which the Xplained Pro header documentation never mentions)?
At this point, the confusion level is about 12 on a scale of 1 to 10.