Skip to main content
drechsel2
Visitor II
September 22, 2016
Question

HardFaultException in RAM-Test

  • September 22, 2016
  • 1 reply
  • 493 views
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?

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    September 22, 2016
    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 VenmoUp vote any posts that you find helpful, it shows what's working..