This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP432P401R: Need help finding source of exception

Part Number: MSP432P401R
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Intermittently, my application breaks during debugging at Hwi_asm.sv7M line 310 (ti_sysbios_family_arm_m3_Hwi_excHandlerAsm__I). I need some help figuring out why this happens. My application does not break when I run it overnight outside the debug mode.

  • Hello Jeffrey

    When the application breaks in debug mode, did you check what was the cause of the Bus Fault, bu checking the NVIC's FAULTSTAT and FAULTADDR register. One of the most common things I have seen happening during debug mode is that the Stack/Heap corruption. Can you try increasing the same?

    Also when the Bus Fault does happen, is there a specific part of the application that causes the same to occur?
  •  Hi Amit,

    I checked the NVIC registers in the debugger. But I could not see FAULTSTAT and FAULTADDR.

    I used the ROV tool to check the stack, and I have plenty of margin left.

    I am not sure which part, if any, of my application causes the Bus fault. My application ran normally over the weekend without the debugger.

    When I do run the debugger, I get the bus fault after a few seconds of running. It is weird that the debugger stops running without any set breakpoints. I have attached a screenshot of the NVIC register contents when I get the bus fault. I am hoping you can see something there to explain the problem I am having.

    Thanks,

    Jeffrey

  • Hello Jeffrey,

    My apologies on not being explicit. It should be under SCB and named CFSR and BFAR

**Attention** This is a public forum