cancel
Showing results for 
Search instead for 
Did you mean: 

Hard Fault

chenu
Associate II
Posted on September 04, 2008 at 13:15

Hard Fault

2 REPLIES 2
chenu
Associate II
Posted on May 17, 2011 at 12:43

Hi,

Still there with the same problem: what can cause a Bus Fault: Instruction bus error (which is what is reported in the IAR debug log window) on an STM32 ?

Many Thanks

I am using a STM32 with uC/OS-II from an IAR 5.11 toolchain. I am having a strange problem, the system hangs in the APP_Fault_ISR() randomly (meaning that it can happen straight away or half an hour later). Once in this ISR I am able to make out (by analysing the stack) that it was executing either 'OSIntExit()' or OSStartHighRdy() (in which case the ASM instruction causing the failure is ''CPSIE I'').

Would appreciate a little help on this as I am running out of ideas.

Many thanks,

Laurent

joseph239955
Associate II
Posted on May 17, 2011 at 12:43

Hi there,

When the fault occurred, is the stacked PC pointing to a invalid address range? I guess the the bus fault is caused by instruction access in a invalid memory range.

Some information about analysis of the stack can be found here

http://www.st.com/mcu/forums-cat-6778-23.html

but I guess you have already done that.

Joseph