Debugging TF-M with nRF5340-DK 2.0.0

Hello,

I have just bought a nRF5340-DK. My board is labeled 2.0.0, and appears to use a 2nd nRF5340 as the debugger. I am trying to use TF-M with a Rust application. So far I have flashed TF-M with Zephyr. But I am having trouble then flashing my Rust code. I am fairly certain my memory layout, and signature are correct. In any case, I need to get log outputs from TF-M, which by default uses UART1 on the nRF5340-DK. The documentation states to "wire the default USART1 TxD and RxD (pins P0.25 and P0.26) to RxD and TxD pins on the DK", but as far as I can tell my board does not have any pins labeled RxD and TxD. In photos and board layouts of the nRF5340-DK I can see those pins, but my boards lack them. What is the expected debugging model for TF-M, now that the RxD and TxD pins have been removed? I tried to simple change the board-config to use UART0 as the output, but that yielded no output.

Parents
  • Hello,

    I was not aware that we had removed the silskreen labels for RxD and TxD on the latest board revision, I have to ask the board designers about this. At least they are present on my v0.11.0 boards.

    But a first step to check if we can get TF-M logging to work on your board,  please make the connections as shown above and then program the TF-M hello world hex below.

    TF-M Hello world sample hex ($nrfjprog --program merged.hex --chiperase -r)

    05355.merged.hex

    Expected log output

    Memory layout

    Best regards,

    Vidar

Reply
  • Hello,

    I was not aware that we had removed the silskreen labels for RxD and TxD on the latest board revision, I have to ask the board designers about this. At least they are present on my v0.11.0 boards.

    But a first step to check if we can get TF-M logging to work on your board,  please make the connections as shown above and then program the TF-M hello world hex below.

    TF-M Hello world sample hex ($nrfjprog --program merged.hex --chiperase -r)

    05355.merged.hex

    Expected log output

    Memory layout

    Best regards,

    Vidar

Children
Related