[LM4F232 Eva Kit + CodeComposerStudio 5.3]
short question - long story:
I have had some trouble with timer initialisation for some long time. The error was not reproducable every time, but if once I got it it seemed to be some reflash with other application needed before it was willing to go.
I have four wide timers in my app and always when wtimer1 was involved with (MAP_)IntEnable( INT_WTIMER1A ) the system crashed.I observed the FaultSR and found the processor jumping in. So I remembered have read such stuff before and follewed the - very good - advices in SPMA043.pdf (Diagnosing Software Faults in Stellaris Microcontrollers).
The adress by bus error coming from was 0x40040020 which I cannot find directlyin the cortex-M4 processor's memory map. But the region nearby is:
"0x4004.0000 0x4004.0FFF CAN0 Controller"
So I moved the init code regarding CAN0 so now it's located before Timer's init and this avoids crashes. I interprete this fact as getting some garbage (maybe from external CAN transceiver ) into the CAN controller before I have enabled it.
But how could this be true? Every module should be disabled at init/reset, is'nt it? The cortex M4-F errata gave no hints regarding this.
Thanks for any hints.
--jens