No Serial output for NS buid on nrf7002-dk

Im using an nrf7002-dk. Whenever build like this: 

"west build --pristine -b nrf7002dk/nrf5340/cpuapp/ns"

theres no serial monitor output.

Ive tried both VCOM0 and VCOM1, the print() statements ive added to main() simply dont show.

I've been around in loops with the DevZone AI chat bot, and nothing it suggests has managed to solve this problem. I've created board overlays, tfm overlays, been through many different variations of kconfigs, tried sending the output to RTT instead of VCOM, it just will not print anything to tany of the consoles when I do an _ns build.

Can somebody with an nrf7002-dk please reproduce the following and tell me a solution if you have one:

- Create a new application, copy from sample "Hello World"

- Build and flash with the following command: west build --pristine -b nrf7002dk/nrf5340/cpuapp && west flash ... you will see the "Hello World" message in the console

- Build and flash with the following command: west build --pristine -b nrf7002dk/nrf5340/cpuapp/ns && west flash ... you will see no output to the console.

I still believe that there is a solution to this, perhaps it involves mapping some pins on the device so that the tf-m virtual com is mapped to the regular uart virtual com. I have no idea, but I am not experienced enough to start remapping pins, especially when the AI chat bot is reassuring me that it isnt necessary.

Parents
  • I did a little test and I think the code is actually crashing when I run it for _NS.

    I made a light blink on the board in a loop, when I run it in the strandard board (not _NS), i see the console output and the light blinks. When I run the exact same code for _NS, not only does the console not display anything, the light doesnt blink. Maybe I amseeing no console output because the code is immediately crashing before it has time to print anything to the console? If so then how can I solve this?

Reply
  • I did a little test and I think the code is actually crashing when I run it for _NS.

    I made a light blink on the board in a loop, when I run it in the strandard board (not _NS), i see the console output and the light blinks. When I run the exact same code for _NS, not only does the console not display anything, the light doesnt blink. Maybe I amseeing no console output because the code is immediately crashing before it has time to print anything to the console? If so then how can I solve this?

Children
No Data
Related