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.

Stellaris Bluetopia Stack - Bus Fault During Initialization

I am trying to use the Bluetopia Stack on a Stellaris M4. I am trying to run the SPPLEDemo but the call to OpenStack never returns and I instead get suck in FaultISR().

Stepping through the disassembly I have found that a bus fault is occurring in CompareListEntryKeys and the fault address is 0x02112000.

The same code runs fine for me on a launchpad. I am completely at a loss for what is different that would cause this.

Any clues to how I could determine what has changed or how to make the code run would be greatly appreciated.

Alex

  • Alex,

    This post might be better for the Tiva ARM Microcontrollers forum.

    If you look at the datasheet for the device, you can reference the memory model, which would show that the address you mentioned stems from the ROM. Something is being ran in ROM that is throwing a fault; it might be our ROM-based StellarisWare functions.

    Instead of just stepping through the code to find the fault, you might want to reference a debugging app note we have, for which I've pasted the link below. I talk a little bit about this document in the second post from this thread: http://e2e.ti.com/support/microcontrollers/stellaris_arm/f/471/t/260059.aspx. Faults can occur for any number of reasons though, such as stack overflow (fixed by increasing the stack size in the IDE) to not initializing a module before accessing it. The document below would help narrow down the problem and ultimately a solution.

    Diagnosing Software Faults with Stellaris Microcontrollers: http://www.ti.com/lit/an/spma043/spma043.pdf

    Regards,

    Reagan