Thanks Mark and Hui_Ma,
I can not use RAM in my case because there is a RAM test feature implemented in our application.
Explanation for our special need:
- Application receives a command to perform some tests (Hardware test, RAM Test, Watchdog Test, ...) during next startup.
- The Application saves the requested tests as bits in a bitset 'TestCommands' and initiates the watchdog test which restarts the application.
- All requested tests should be performed during this startup sequence. For that reason 'TestCommands' must retain its value after the watchdog reset.
- The RAM test, if requested, is the first test made prior the start of the C runtime (RAM test destroys the content of the RAM).
- 'TestCommands' must retain its value after the the RAM test because the starting application must now what test should be performed next.
We used the System Register File of the MK10 to store 'TestCommands'. This solution works fine. 'TestCommands' stored in System Register File survives a reset and a RAM test.
The MK02 does not have a System Register File to store such commands. So we are searching for a solution on the MK02 for the described functionality.
Thanks for any helpful hint
Arnold