This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Hello_world debug problem on nrf52840dk.

Hello. I am new to Zephyr. I cann't debug Hello_world sample. As i understand it always reboots and does not go to main.

I am trying to use VS Code and nRF Connect SDK (1.7.0 also tried on 1.6.1 and 1.7.1). I watched all video tutorials "nRF Connect for VS Code". I did everything like in video. But it didnot help. I also did an experiment with virtual mashine. Install new empty windows 10 and  did everything like on video once more. Result is the same.

So i've installed all tools and SDK. Create a freestading application zephyr/samples/hello_world. Generate configuration with "enable debug options" for nrf52840dk_nrf52840. Open NRF terminal for DK. Flash the device. After flashing i can see in terminal:


If I am using Debug the program stops on msr BASEPRI, r0 and doesnot go to main.

   

In nrf terminal the string is blinking:

Like on video nRF Connect for VS Code, 5: Debugging -  i've tried to add 

CONFIG_DEBUG_OPTIMIZATIONS=y
CONFIG_DEBUG_THREAD_INFO=y 
to prj.conf. That also doesnot help. 
What to i do wrong? How can i get it work?
I've also tried another samples. For example - blinky. Debug also stops on the same instruction.  
Parents Reply Children
No Data
Related