2024-12-10 10:29 AM - last edited on 2024-12-10 11:23 AM by Tesla DeLorean
Hi Community,
I came a cross with a strange error that I can not understand the reason.
As I search the read me file of the example project which is shared by ST.
It is written as below.
2. load the image into the target3. Execute the code
- LED4 toggles regularly : all the tests are executed correctly (each toggle signalizes flash test completion)
- LED4 single short flash appears once per 2 seconds: one of the tests FAILED (FailSafe_Handler keeps fail code)
- LED4 single short flash appears once per 4 seconds: one of the tests FAILED by defense programming.
When I run the code without changing any part of code. Led blink as section 1 (Toggle regularly).
But the funny thing is so strange.
When I even only define a variable in main file like as
uint16_t Error_Code;
The led blinks like section 2 (LED4 single short flash appears once per 2 seconds.)
And when I try to debug Error_Code shows 0(like it restart itself )when I stop the debugging it turns error code 13(TMF_ERR_CODE).
I could not understand the main reason if this error. Just defining a variable should not cause a error like Flash error etc.