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

IAR how to run after download?

hello,

For now, I have to power cycle my board or manually send "nrfjprog -f NRF52 --reset" to start the application firmware after download. I would like the application to start automatically just after download.

Does any of you what I can configure so that a nRF52 starts running its application after download from IAR or Keil?

In an older project using SDK 11 and Keil, I remember that the application started just after download.

Thanks in advance for your help.

Parents
  • thanks a lot. The reset&run option was somewhow disabled, I can't figure why but thanks, problem solved in Keil.

    Nevertheless, I also use IAR when I compile my complete project and can't find any parameter that allows start the application after download. Is it even possible?

  • While downloading code in a debug session, you will need to press the “Go” button(3 blue arrows) for the code to start in IAR.

    If you are downloading code in IAR without starting a debug session, then this can be done in Project->Download->Download active application (If greyed out, in Options -> Debugger option, Download tab, set the“Use flash loader(s)”). If the code is not running, in project options -> J-Link/J-Trace, in Setup tab, set Reset to "Reset Pin"

Reply
  • While downloading code in a debug session, you will need to press the “Go” button(3 blue arrows) for the code to start in IAR.

    If you are downloading code in IAR without starting a debug session, then this can be done in Project->Download->Download active application (If greyed out, in Options -> Debugger option, Download tab, set the“Use flash loader(s)”). If the code is not running, in project options -> J-Link/J-Trace, in Setup tab, set Reset to "Reset Pin"

Children
  • I was having the same issue: Keil reset the device and go to run mode after downloading, but using IAR requires power cycle before the device is up and running. The problem was that I somehow tick "Use flash loader(s)".

    My settings now, after some experimenting,is a bit different from Siguard mentioned above:

    1. Options -> Debugger option, Download tab, Use flash loader(s)  -   is not selected

    2. J-Link/J-Trace, in Setup tab, set Reset to "Normal"

Related