mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
2f55fdcec4
The required space for the hardfault handler is defined by HARDFAULT_HANDLER_REQUIRED_STACK_SPACE, which is given in bytes, this length is added to &_sram to find a lower limit on the amount of stack space that the hard fault handler can work with. The _sram variable, was mistakenly defined as a uint32_t, which makes &_sram into a uint32_t*, which through pointer addition, made the required space 4 times as big as it was supposed to. By changing the type of _sram to uint8_t, the required stack space is correctly computed. The symptom was that the hardfault handler always reported that the stack pointer had been corrupted and it was impossible to get any useful information from the crash text. |
||
---|---|---|
.. | ||
cortexm_base.ld | ||
multislot.ld |