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.

LM4F Launchpad w/ccs5.2.1 imprecise data bus error



Hello Stellaris community,

I am working with a stellaris M4 launchpad ccs5.2.1.  I am unable to determine why my code is tripping the imprecise data buss error sending me to faultISR.  Using TI's app note "diagnosing software faults AN01286" it is similar to Bus Fault Scenario 2 with NVIC_FAULT_STAT register value of 0x400, imprecise data bus error.  Looking through the disassembly I have found the last STR instruction as the app note recommends.  It is a function which calls the HibernateDataSet stellaris function.  However, I can't seem to see any issue with that.  Hibernate has been enabled earlier in the code.  I do realize this may be difficult with not being familiar with my code but I am desperate.  Is there something else I should be looking at as to why this fault is being generated?  I am still very new to stellaris and embedded programming so please bear with me.  

Thanks,

Jeff 

  • Hi Jeff,

        Have you been able to resolve this problem?  You have the best app note on this topic.  I often try to isolate the offending section of code by process of elimination.  I get my code back to the point where it is stable, and narrow down the specific line of code that causes the faultISR.  Once I know where the specific fault is located, then it may be easier to identify, understand, and resolve the problem(s). 

       If you want to post your code, I'll take a look.  As the app note states, the faultISRs often occur when you forget to enable the clock to a peripheral, before accessing it. 

        Thanks,

             Rick