This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF5340 PDK network core UART

I am porting RF evaluation code to the nRF53 NCS/zephyr/Segger Embedded Studio toolchain, using only the network core to start.

How do you recommend configuring the network core UART for debugging on the nRF5340 PDK? Is it possible to set it up to use the DK's virtual COM port (instead of the application core)? How else does the PDK support this, ie. with an external JLink?

  • To see registers other than the CPU group in SES, I had to manually specify the .svd register definition file downloaded separately via the MDK. Is that a necessary step or should SES have some knowledge of these already?

    While the pin and baud registers are set correctly, I immediately see UART0 ERRORSRC=0xC after setting a breakpoint on the printk line of main. I don't see this when I build the same code for cpuapp. HWFC is not set in either case.

    I don't want to burn too much time on this simple example, I was just looking to get familiar with the PDK before trying to bring up the UART properly on the net core. Maybe I will just proceed to that. Are there any examples other than HCI RPMsg that have been proven out for cpunet? 

  • The simplest answer to this is to leave the pin assignments as is and connect P0.25 TO RxD and P0.26 to TxD. It's not necessary to reassign the pins if you just want the output on another of the virtual COM ports (for me, the third instance in Device Manager).

Related