cancel
Showing results for 
Search instead for 
Did you mean: 

HardFaultException in RAM-Test

drechsel2
Associate
Posted on September 22, 2016 at 14:55

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?

1 REPLY 1
Posted on September 22, 2016 at 16:20

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..