Hi All
環境:cc2650, Zigbee, OTA
編譯器:IAR7.6
用途:用來判斷電池是否被拔掉(no hw pin)
添加code:main.c
__no_init uint8_t keep_pam;
但執行到的watchdog reset後似乎會清掉ram中需keep住的參數,
請問有辦法在watchdog reset情況下不清掉noinit的參數嗎??
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.
Hi All
環境:cc2650, Zigbee, OTA
編譯器:IAR7.6
用途:用來判斷電池是否被拔掉(no hw pin)
添加code:main.c
__no_init uint8_t keep_pam;
但執行到的watchdog reset後似乎會清掉ram中需keep住的參數,
請問有辦法在watchdog reset情況下不清掉noinit的參數嗎??
Hi Viki
測試noinit參數值仍然會被清掉欸,以下定義有錯誤嗎??
IAR 7.60.1
我定義如下:
<myapp.c>
__no_init uint8 ClearCount @(0x20004200)
ram addr是參考.map裡RAM_BASE_ADDR - RAM_END的中間值