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
  • Hi Carl,

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

    We have just tried your method using the Hello World sample (from Create a new application --> Copy a sample) , the nRF7002DK and SDK 3.3.0. Both the commands with and without 'ns' seem to be working. Can you please confirm if you have tried similar steps to the following?


    In "Open terminal" in VSC, the following commands were used:
    west build -p -b nrf7002dk/nrf5340/cpuapp
    west flash --recover

    And similarly:

    west build -p -b nrf7002dk/nrf5340/cpuapp/ns
    west flash --recover

    After connecting to serial terminal and selecting the correct COM port, and using the reset button on the DK, we were able to see the "Hello World" in the output. 

    Just to confirm, are you trying the same steps?

    Best Regards,

    Samruddhi

Reply
  • Hi Carl,

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

    We have just tried your method using the Hello World sample (from Create a new application --> Copy a sample) , the nRF7002DK and SDK 3.3.0. Both the commands with and without 'ns' seem to be working. Can you please confirm if you have tried similar steps to the following?


    In "Open terminal" in VSC, the following commands were used:
    west build -p -b nrf7002dk/nrf5340/cpuapp
    west flash --recover

    And similarly:

    west build -p -b nrf7002dk/nrf5340/cpuapp/ns
    west flash --recover

    After connecting to serial terminal and selecting the correct COM port, and using the reset button on the DK, we were able to see the "Hello World" in the output. 

    Just to confirm, are you trying the same steps?

    Best Regards,

    Samruddhi

Children
No Data
Related