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

/* force unlock interrupts */ NRF9160

Hi all,

I have mqtt sample on my board, after I added MCUboot module from Configure nrf Connect SDK Project, when I try to debug, it gets stucked at :

#elif defined(CONFIG_ARMV7_M_ARMV8_M_MAINLINE)
         /* force unlock interrupts */
           eors.n r0, r0
          msr BASEPRI, r0

On serial console it`s stucked in this loop : 


***** Booting Zephyr OS v1.14.99-ncs2 *****
[00:00:00.004,455] <inf> mcuboot: Starting bootloader
[00:00:00.013,122] <inf> mcuboot: Primary image: magic=unset, copy_done=0x3, image_ok=0x3
[00:00:00.024,688] <inf> mcuboot: Scratch: magic=unset, copy_done=0x50, image_ok=0x3
[00:00:00.035,644] <inf> mcuboot: Boot source: primary slot
[00:00:00.047,027] <inf> mcuboot: Swap type: none

On Segger Embedded studio I got : 

Preparing target for download
Executing Reset script TargetInterface.resetAndStop()
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Downloading ‘merged.hex’ to J-Link
Programming 33.8 KB of addresses 00000000 — 0000875f
Programming 161.0 KB of addresses 0000c000 — 0003440f
J-Link: Flash download: Bank 2 @ 0x00000000: 2 ranges affected (204800 bytes)
J-Link: Flash download: Total time needed: 1.793s (Prepare: 0.083s, Compare: 0.018s, Erase: 0.000s, Program: 1.635s, Verify: 0.007s, Restore: 0.049s)
Download successful
Stopped by vector catch

Thanks for help :).

Parents
  • One more think, i just discovered that if I try another Debug console gives me : 

    ***** Booting Zephyr OS v1.14.99-ncs2 *****
    Flash region Domain PDetected inconsistent status!


    Data Access Violation
    MMFAR Address: 0x0
    ***** Hardware exception *****
    Current thread ID = 0x20001870
    Faulting instruction address = 0xa86
    Fatal fault in ISR! Spinning...

Reply
  • One more think, i just discovered that if I try another Debug console gives me : 

    ***** Booting Zephyr OS v1.14.99-ncs2 *****
    Flash region Domain PDetected inconsistent status!


    Data Access Violation
    MMFAR Address: 0x0
    ***** Hardware exception *****
    Current thread ID = 0x20001870
    Faulting instruction address = 0xa86
    Fatal fault in ISR! Spinning...

Children
No Data
Related