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

Not able to load the soft device by using external debugger(i-Jet) in nRF52840 board

Hi Team,

We are using the nRF52840 board for our development purpose. We are using the external debugger(i-jet) for our development purpose.

We are able to connect the debugger and load the active application, but when we try to load the soft device hex file we are getting error like " The flash loader program reported an error".

1. Able to connect and debug the application with out soft device.

2. Able to load the active application from IAR using the option Project=>Download=>Download Active application   == success

3. Same set up if we give the option like Project=>Download=>Download File (Select the Soft Device .hex file) it is giving the error like " The flash loader program reported an error".

4. Is there any other setting we need to do for loading Soft device like loader and any linker settings.

Attached the error screen shot for reference:

     

Regards,

Srinivas.V

Parents
  • Hi Srinivas

    Are you able to get an error message that provides some more information in the debug log? Here at Nordic we're generally used to the J-Link debuggers, can you show me how your board is connected to the debugger you're using?

    Please try doing a full flash erase of your device, then flash the SoftDevice onto your chip. Make sure that your application's RAM and Flash memory start addresses are set correctly according to the SoftDevice before flashing the application data onto your device as well. Check out this guide to see how this is done.

    Best regards,

    Simon

Reply
  • Hi Srinivas

    Are you able to get an error message that provides some more information in the debug log? Here at Nordic we're generally used to the J-Link debuggers, can you show me how your board is connected to the debugger you're using?

    Please try doing a full flash erase of your device, then flash the SoftDevice onto your chip. Make sure that your application's RAM and Flash memory start addresses are set correctly according to the SoftDevice before flashing the application data onto your device as well. Check out this guide to see how this is done.

    Best regards,

    Simon

Children
  • Hi Simonr,

    Thanks for your reply. 

    The error message I already shared in previous post "The flash loader program reported an error".

    1. I did the same steps what you have suggested, like erasing the entire flash and Flash and RAM Start address also correct.

    2. The issue is with IAR with I-JET debugger, we are able to load the application and debug the same.When it comes to SD hex file we are not able to load with IAR with I-Jet Debugger.

    3. Not getting clarity on what i am missing. The application without SD i am able debug and it is working fine.

    4. Application with SD dependent and needs to flash SD file before application is not happening. Means we are not able to load the SD .hex file individually and combine with application as well.

    5. We need one mechanism to load the SD .hex file before application with the help of IAR i-jet debugger not with J-Link debuggers.

    Regards,

    Srinivas.V

Related