2016-09-22 5:55 AM
The RAM-test procedure STL_FullRamMarchC(void) of the IEC 60335 SelfTest library ends with a HardFaultException. Debugging the function Shows that this happens after Step 6. The return address seems to be lost.
Processor: SMT32F103VE.
Can anybody help?
2016-09-22 7:20 AM
Look at the code generated by your tool chain, review if it is using the stack, if it is calling out to library/support functions instead of in-lining, and if you are wiping the cache or otherwise changing the LR register. Check optimization levels chosen.
Talk to those on your team responsible for code validation.We’re moving the ST Community to a new platform to give you a better and more reliable community experience.