Code: Select all
RTC_NOINIT_ATTR uint32_t testValue1 = 0;
RTC_DATA_ATTR uint32_t testValue2 = 0;
RTC_DATA_ATTR uint32_t testValue3;
RTC_SLOW_ATTR uint32_t testValue4 = 0;
RTC_FAST_ATTR uint32_t testValue5 = 0;
__NOINIT_ATTR uint32_t testValue6;
RTC_IRAM_ATTR uint32_t testValue7 = 0;
...
{
...
if (wokeFromDeepSleep) {
...
} else {
seqNumber = 0;
testValue3 = 0;
testValue6 = 0;
}
ESP_LOGE(TAG, "seqNumber = %d", seqNumber);
seqNumber_g = seqNumber;
ESP_LOGE(TAG, "testValue1 = %d", testValue1++);
ESP_LOGE(TAG, "testValue2 = %d", testValue2++);
ESP_LOGE(TAG, "testValue3 = %d", testValue3++);
ESP_LOGE(TAG, "testValue4 = %d", testValue4++);
ESP_LOGE(TAG, "testValue5 = %d", testValue5++);
ESP_LOGE(TAG, "testValue6 = %d", testValue6++);
ESP_LOGE(TAG, "testValue7 = %d", testValue7++);
Code: Select all
E (126) app_main: testValue1 = -1327966875
E (126) app_main: testValue2 = 431137070
E (136) app_main: testValue3 = -175958291
E (136) app_main: testValue4 = 1345924420
E (146) app_main: testValue5 = -831327041
E (146) app_main: testValue6 = 194569138
E (146) app_main: testValue7 = -1662166550