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.
Most of the codes I flash to the Tiva C tm4c123gh6pm with setting FPU to be used, the code doesn't run and sometimes it gives me HARD_FAULT_HANDLER when I debug. But it works just fine when I disable FPU... Any idea why ?
Any idea why ?
Either the FPU is not enabled at all, thus failing on the first FPU instruction.
Or, saving the FPU context during interrupts is enabled, but the stack is not large enough. That would account for the "sometines" appeareance, since the hardfault happens asynchronous with an interrupt.
May I commend poster f.m. for (yet another) most excellent, "Answering Response."
While targeted towards the FPU - other MCU peripheral faults also may be avoided by:
Specific solutions are helpful - f.m.'s more "universal" solution - provides (even) greater power & value!