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

Build and run - not running immediately

Hi,

I ported an nrf example from nRF5 SDK version 12.3.0 ble_proximity to segger studio (v4.50), and flashed into nRF51DK, using build and run option. The application is not running immediately but runs after pressing boot reset it works normally. The application can also starts on power-up. Is there any reason that not running immediately after flashing?

Thanking you

Ras

Parents Reply Children
  • I am not sure exactly what setting that is required for this to work properly. I suggest you contact segger if you are still stuck. They will probably be able to tell you what setting that does this.

    As an alternative, you can use build and debug, where you should be able to press reset and run to start the application.

    If you just want to build and flash you can always reset the device (and flash for that matter) using nRF Command Line Tools, and the commands:

    "nrfjprog --program application_hex_file.hex" to flash ("application_hex_file.hex being the path to your application's hex file), and

    "nrfjprog --reset" to reset the device.

    Best regards,

    Edvin

  • Hi,

    Thanks for the reply. Yes, I can use debug and run, but when it was not running after build-and-run option, I initially thought there were issues with my program. As I am not developing anything seriously for nRF51, it is not a big issue. I found similar post in Segger forums but not solved. I will use reset button to run.

    Regards

    Ras

Related