| Author | beginning argument ( Replies received: 1 ) |
| chenu.laurent |
Posted 03-09-2008 at 23:42   |

Registered on : 08-28-2008
Messages : 4
OFF-Line
|
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
|
|
|
Profile
Quote
|
| joseph.yiu |
Posted 04-09-2008 at 16:45   |

Registered on : 11-20-2008
Messages : 36
OFF-Line
|
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
|
|
|
Profile
Quote
|