Commit 60a43d1
Fix hard fault due to uninitialized MPU BSS section
In the MPU protected BSS section, there is a flag indicating whether static instance has been created or not.
The flag is not cleared and during a power interruption, the flag sometimes has a random value.
This caused the SafeSupervisor static object to have random incorrect values due to missing constructor call,
which leads to unintended behaviour, e.g. false positive safety checks.
The solution is to zero out MPU protected BSS section.
Change-Id: I5de341b0fd14a64b0c5b21a8b82a1ce30c6cfba81 parent d23acd9 commit 60a43d1
File tree
1 file changed
+16
-0
lines changed- executables/referenceApp/platforms/s32k148evb/main/src/bsp
1 file changed
+16
-0
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
434 | 450 | | |
435 | 451 | | |
436 | 452 | | |
| |||
0 commit comments