This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to handle lockup state in M33

Dear Developers,

I am trying to run FreeRTOS on MPS2 plus board for CM33.

but xPortStartScheduler fails and gets stuck at SecureHandler(Lockup addr PC: 0xEFFFFFFE).

It fails when trying to start the vStartFirstTask.

below is scatter loader file content

LR_IROM1 0x00000000 0x40000000


       ER_IROM1 0x00000000 0x00200000

       { 
             *.o (RESET, +First)
             *(InRoot$$Sections)
             .ANY (+RO)
             .ANY (+XO)
       }
       RW_IRAM1 0x20000000 UNINIT 0x00200000

      {
          .ANY (+RW +ZI)
      }
      ARM_LIB_STACK (0x38200000) 0x600
      {    
            *(EMPTY)
      }  
      ARM_LIB_HEAP (0x38200000+0x600) 0xC00
     {
          *(EMPTY)
     }
}

please help me to resolve this issue.

Thanks,

Deepak

Parents
  • Hi David,

    After debugging further found an issue with stack pointer(in R0) at "SVC %0 " instruction which is esclated as FORCED HardFault Processor has escalated a configurable-priority exception to HardFault

    HFSR-> 0x40000000

    ICSR_S->0xB803

    ICSR_NS->0xB803

    CFSR_S-> 0x1000

    MSP_S-> 0x454C4428 (Invalid as per vector table)

    With this i suspect there is something wrong with Vectors table.

    So can you please assist me to proceed ahead with these all information?

    Regards,

    Deepak

Reply
  • Hi David,

    After debugging further found an issue with stack pointer(in R0) at "SVC %0 " instruction which is esclated as FORCED HardFault Processor has escalated a configurable-priority exception to HardFault

    HFSR-> 0x40000000

    ICSR_S->0xB803

    ICSR_NS->0xB803

    CFSR_S-> 0x1000

    MSP_S-> 0x454C4428 (Invalid as per vector table)

    With this i suspect there is something wrong with Vectors table.

    So can you please assist me to proceed ahead with these all information?

    Regards,

    Deepak

Children