2016-09-22 05: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 07: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.