我定义了一个全局数组 uint8 reserved_mem[1024];,程序对其一直累加“reserved_mem[0]++”。
我使用HAL_SYSTEM_RESET() 试过,发现每次复位后,reserved_mem[0] 的值都变为0。
请问,有什么办法使内存的值不清零吗?包括看门狗导致的复位。
因为我想使用reserved_mem[] 保存数据采集器的数据,不想外扩EEPROM。
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.