This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/CC3220SF: Saving reboot reason

Part Number: CC3220SF
Other Parts Discussed in Thread: CC1310

Tool/software: TI-RTOS

Hello!

I want to save my error code, that cause reboot of cc3220. Then i call reboot, and after reboot i send this error code to server.

I can store it in file on flash, but in some cases it's not possible because of SimpleLink fault.

Can i write error code directly to flash (like cc1310)?

Or do i have any other options to store value, that survives after reset/power off?

  • Hi,

    It is not possible (supported) storing values into serial flash directly without sl_ API calls. You can store values into internal XIP flash, but this way is not recommanded as well. This memory can be erased by ROM bootloder at some consequences. Best way is to use additional storage like a SD card, small EEPROM, etc.

    But if you still want store values into XIP flash here are resources:
    - www.ti.com/.../swru465 chapter 21
    - driverlib file in SDK \source\ti\devices\cc32xx\driverlib\flash.h

    Jan
  • Thank you for your answer!