This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

After the wdt is being ,the program cant be run immediately.

No using  bootloader.

the code cant run immediately is below when i enable the wtd.

After flashing the code by jlink,the code cant run till the wtd is timeout. i check the sd_power_reset_reason_get(&reg).

And the code reset,the code cant run till the wtd is timeout. i check the sd_power_reset_reason_get(&reg).

why?how can i do

Parents
  • Hello,

    Something is obviously running, since you are able to start the bootloader. Are you sure you are not caught in the error handler before the WDT times out, which will restart the application?

    Do you reset the chip after programming it? I don't have the JLink command in my head. But if you try with nrfjprog, the command is nrfjprog --reset.

    Alternatively, you can power cycle the board, and it should start.

    Best regards,

    Edvin

  • You are right,.power down and up.it starts.  

    I use keil to programe code by jlink and there are reset and run option.  

    when i enable the wtd,the code cant run immediatly after programing the code.

    when using bootloader,there r a  long time to convert to application. i debug the code and print same output. finally i find that after nvic_reset in bootloader,there r a long time to convert to application. and  the sd_power_reset_reason_get(&reg) show the wtd is timeout. 

    what i can do ? thank you 

  • Have you enabled the reset and run option?

    Is it possible to send the project, so that I can have a look and see what is going on?

    Best regards,

    Edvin

Reply Children
Related