Can't run Blinky on NRF9160-DK using nrf_connect toolchain and Zephyr

Hello, 

I've been trying to run both Blinky & Hello_WORLD examples given with NCS 1.6.1 on an NRF9160-DK but I don't see any output. I was able to build & run successfully using SEGGER and WEST commands from the command line, but on debugging, it seems to be getting a hard_fault error before hitting main(). Am I missing something here? 

  • Hello Harshil,

    Am I missing something here? 

    I’m not able to reproduce this behaviour on my side, as both the blinky and hello_world sample in NCS v1.6.1 work as expected with the nRF9160 DK. I neither experience any problems during debugging.


    I was able to build & run successfully using SEGGER and WEST commands from the command line, but on debugging, it seems to be getting a hard_fault error before hitting main().

    Are you using SES for debugging? Do the samples work if you do not use the debugging functionality?


    I've been trying to run both Blinky & Hello_WORLD examples given with NCS 1.6.1 on an NRF9160-DK but I don't see any output

    Otherwise, I strongly recommend you to upgrade to NCS v1.9.1 and use nRF Connect for VS Code instead, as this tool will make life a lot easier for you when it comes to both compiling and debugging.

    Regards,

    Markus

  • So I am unable to run it even without debugging, I see that Segger flashed it correctly, but the LEDs don't blink on the board. Is there a startup sequence that I should be following for firmware download? Does it require a bootloader update or something, I'm just trying to understand why the example project wouldn't hit main(). 


  • Can you perform a command line build, as described here? Does this work? If not, could you share the full build log?

    Thanks & regards,

    Markus

Related