Search found 37 matches

by dhs2017
Sat Nov 24, 2018 6:43 am
Forum: General Discussion
Topic: nvs content lost
Replies: 4
Views: 209

Re: nvs content lost

Erm, NVS and SPIFFS are both storage options that are incompatible with each other. A partition can be either NVS or SPIFFS, a combination of both is not allowed. sorry, my expression error, actually, I made a SPIFFS partition in in the FLASH(not NVS), so everything is happening on the SPIFFS parti...
by dhs2017
Fri Nov 23, 2018 6:47 am
Forum: General Discussion
Topic: nvs content lost
Replies: 4
Views: 209

nvs content lost

I have a ESP32 device which the NVS had been partitioned with SPIFFS sector. The device wake from deepsleep every 3 mins. During the boot procedure, it will fetch data from the SPIFFS in NVS, and then continue to run the entire program by using this data. The program itself doesn't perform any modif...
by dhs2017
Tue Sep 11, 2018 3:46 am
Forum: General Discussion
Topic: aws cert storage location
Replies: 1
Views: 165

aws cert storage location

Hi, is it possible to store the aws cert in nvs instead of sd card or code embedded?
I want to update the cert of the device but it doesn't have sd card.
by dhs2017
Fri Sep 07, 2018 2:09 am
Forum: General Discussion
Topic: keep variable after restart
Replies: 11
Views: 795

Re: keep variable after restart

i see,, thx ivan
by dhs2017
Fri Sep 07, 2018 12:20 am
Forum: General Discussion
Topic: keep variable after restart
Replies: 11
Views: 795

Re: keep variable after restart

Hi Ivan,

it seems RTC_DATA_ATTR will lose after software reset.

In fact, I am working on this to resolve the problem of wifi turn on/off and then RTC IO case deep sleep current increase which I raised in github issue, is there any update on this issue?
by dhs2017
Thu Sep 06, 2018 9:29 am
Forum: General Discussion
Topic: keep variable after restart
Replies: 11
Views: 795

Re: keep variable after restart

yes, I did. below is my simple code. If I use part A, variable test will increment every 4 second. However, if I comment out PART A, and use the esp_deep_sleep, the test variable become a strange value and won't increment. that means deep sleep wake up cleared the test variable? static RTC_NOINIT_AT...
by dhs2017
Thu Sep 06, 2018 8:57 am
Forum: General Discussion
Topic: keep variable after restart
Replies: 11
Views: 795

Re: keep variable after restart

I found that the RTC_NOINIT_ATTR variable will be reset if it's wake up from deep sleep.
by dhs2017
Wed Sep 05, 2018 9:08 am
Forum: General Discussion
Topic: keep variable after restart
Replies: 11
Views: 795

Re: keep variable after restart

Hi WiFive, Yes, not power restart,but just software restart or restart cause by system crash. I have tried the following way, but it seems the value cannot be init to zero. It started with some value. I expected it start with 0 and then increment after each esp_restart(). Any example on how to use t...
by dhs2017
Wed Sep 05, 2018 5:39 am
Forum: General Discussion
Topic: keep variable after restart
Replies: 11
Views: 795

keep variable after restart

There is a RTC_DATA_ATTR which can keep the variable after deepsleep wake up, is there any method to keep the variable after restart?
by dhs2017
Tue Aug 21, 2018 9:34 am
Forum: General Discussion
Topic: deep sleep current after wifi stop
Replies: 1
Views: 206

deep sleep current after wifi stop

I tried to run a simple wifi program, init wifi ->then connect to router->wifi stop->deep sleep, the deep sleep current is around 1.x mA. However, if I don't run the wifi procedure, just start and then deep sleep, the current is around 5.x uA, is it normal? any procedure missing on the wifi routine ...

Go to advanced search