basic - how to run first app and get printk output

Hello, I know it's a bit basic, but running through all the docs for thingy91:x I got a bit lost.

https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/thingy91x/thingy91x_updating_fw_programmer.html

I have set up VS Code, managed to get autocomplete going, also to build app, and to flash it. It's very basic hello world with blinking LED and outputing to printk.

$ nrfutil device program --firmware build/dfu_application.zip --serial-number THINGY91X_46EEE983CDD --traits mcuBoot --x-family nrf91 --core Application
[00:00:07] ###### 100% [4/4 THINGY91X_46EE...] Programmed    

When I connect to the board with Serial Terminal app I get

ttyACM0:
*** Booting nRF Connect SDK v2.7.99-cfb2a11d0139 ***
*** Using Zephyr OS v3.6.99-2fb756ef5c41 ***
Attempting to boot slot 0.
Attempting to boot from address 0x8200.
I: Verifying signature against key 0.
I: Hash: 0x3e...f9
I: Firmware signature verified.
Firmware version 2
*** Booting nRF Connect SDK v3.0.2-89ba1294ac9b ***
*** Using Zephyr OS v4.0.99-f791c49f492c ***

ttyACM1:
All pins have been configured as non-secure
Booting TF-M v2.1.1-ncs4-2
[Sec Thread] Secure image initializing!

Board is connected through USB directly to computer.

So - I can not see any printk I added to main(), also LED is not blinking. Please help me what did I miss

  • Hi,

    $ nrfutil device program --firmware build/dfu_application.zip --serial-number THINGY91X_46EEE983CDD --traits mcuBoot --x-family nrf91 --core Application
    [00:00:07] ###### 100% [4/4 THINGY91X_46EE...] Programmed    

    Which specific firmware did you flash to your board?
    Have you put your device into DFU mode before flashing? You can look at this nrfutil guide for reference.

    Best regards,
    Dejan

  • Hello Dejan,

    thank you for taking time and reply.

    I see there are many different firmwares that are mentioned in documentation, and this part is probably the most confusing until now Slight smile

    I did not enter any DFU mode. Firmware is the one that gets built by visual studio code - dfu_application.zip when i Build application. Build configuration is set for board thingy91x/nrf9151/ns.

    I will take a look, I hope I gave some information to guide me where I did mistake.

    I will now take a look at nrfutil guide.

    Best regards
    Simon

Related