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

nRF9160 Hard fault on boot

I'm compiliing against version 1.1.0 of the ncs, and my device have the mfw 1.1.0 firmware running. 

When starting the device, I get the following output: 

This is not very informative, and I would like pointers on how to proceed. 

Parents
  • Hello @tronwa,

    can you please provide the version of nrfjprog?  This can be found issuing nrfjprog --version

    Before programming your device, can you please issue nrfjprog -e to erase your board. Then try to program your device again. 

    Kind regards,
    Øyvind

  • nrfjprog version: 

    nrfjprog version: 10.3.0
    JLinkARM.dll version: 6.54c

    nrfjprog -e and reprogramming the device didn't make any changes in the output. 

  • Hi, I see you have an ongoing case #239969. Can this issue be related to that case? If so, I suggest continuing your support there.

    Make sure to update your nrfjprog to the latest version 10.5.0, and retry last step. I know it's timeconsuming, but we are aware of some issues related to nrfjprog. 

    Can you also provide more information about your setup? What the device version are you working on (found physically on your device)?

    Kind regards,
    Øyvind

  • Hi 

    Not sure what you're asking for on th device version, but looking at the device, I see BAA-E2.1.8 and 11STO (or maybe 11STQ, I'm getting old). 

    I've updated the nrfjprog to version to 10.5.0, but still iin the same quigmire. 

    It might be connected to #239969,  this is something I don't know about. On the program I'm running on the device, I have the link problems commented out. If this might cause a problem, I'm not sure of. Initially it seemed like 2 independent issues to me. 

  • Tron said:
    Not sure what you're asking for on th device version, but looking at the device, I see BAA-E2.1.8 and 11STO (or maybe 11STQ, I'm getting old). 

    Ok, thanks for the information!

    In prj.conf of your project, can you confirm that the following are set to:

    CONFIG_HEAP_MEM_POOL_SIZE=16384
    CONFIG_MAIN_STACK_SIZE=8192
    Kind regards,
    Øyvind
Reply
  • Tron said:
    Not sure what you're asking for on th device version, but looking at the device, I see BAA-E2.1.8 and 11STO (or maybe 11STQ, I'm getting old). 

    Ok, thanks for the information!

    In prj.conf of your project, can you confirm that the following are set to:

    CONFIG_HEAP_MEM_POOL_SIZE=16384
    CONFIG_MAIN_STACK_SIZE=8192
    Kind regards,
    Øyvind
Children
  • From my prj.conf: