Hello all,
I would like to know if it would be possible to simultaneously use 3 instances of I2C and 2 of I2C for the nRF5340DK. As stated in the data sheet, the application core can use at the same time 4 instances of the serial peripherals (UARTE/SPIM/SPIS/TWIM/TWIS). Considering the "extra" instance corresponding to SPIM4, even 5 instances would be possible.
Considering the following example configuration with 3x I2C (master) and 2x SPI (master):
- TWIM0
- TWIM1
- TWIM2
- SPIM3
- SPIM4
A few questions arise:
- Is that configuration possible at all? What happens with UART? As far as I know, UARTE0 is enabled by default for both debugging and logging (e.g. with prinkt).
- If I disable the UART as follows, am I right to assume that I can then use SPIM0/SPIS0/TWIM0/TWIS0, as the base address for the serial peripheral instance 0 is now free?
//overlay file &uart0 { status = "disabled"; }; - What should the prj.conf look like? I just added CONFIG_DEBUG_OPTIMIZATIONS=y to be able to debug. Do I need to add some option to disable UART as well?
- What would we lose by disabling the UART? I understand that logging would be lost ( RTT could be used instead) but what happens with the debugging functionality? If the debugging functionality was also lost, I assume we should use something like an external JTAG (e.g. J-Link Plus)
Thanks in advance!!