Search found 14 matches

by josmunpav
Sat Feb 04, 2017 12:07 pm
Forum: Report Bugs
Topic: NVS crashing ESP32 after used a few times
Replies: 8
Views: 18219

Re: NVS crashing ESP32 after used a few times

Some light at least! I have found what seems to be a stable solution, when both tasks run at the same core , at least from my preliminary tests. Basically I am suspending the main task and also using critical section while the system update occurs in the second task (this is where the NVS writing ha...
by josmunpav
Sat Feb 04, 2017 9:16 am
Forum: Report Bugs
Topic: NVS crashing ESP32 after used a few times
Replies: 8
Views: 18219

Re: NVS crashing ESP32 after used a few times

Howdy there ... for me, the core phrase in your postings is "seems to crash entirely the ESP32". I think I'd like to examine that some more. Can you clarify what you mean by that? Is it a hang or some other symptom? If a true "crash" then we should anticipate seeing an exception and if we get an ex...
by josmunpav
Sat Feb 04, 2017 9:10 am
Forum: Report Bugs
Topic: NVS crashing ESP32 after used a few times
Replies: 8
Views: 18219

Re: NVS crashing ESP32 after used a few times

Hi josmunpav, did you try running your application on a single core only? (make menuconfig -> Component Config -> FreeRTOS -> Run only on 1st core) I also have sporadic problems with writing to flash memory (crash with IllegalInstruction exception, or a core hangs) but could solve it temporarily by...
by josmunpav
Thu Feb 02, 2017 9:55 pm
Forum: Report Bugs
Topic: NVS crashing ESP32 after used a few times
Replies: 8
Views: 18219

Re: NVS crashing ESP32 after used a few times

I cannot copy the whole code but for example I have got this structure: /** * Defines a Device */ struct DeviceNVS { char name[CHAR_NORMAL_ARRAY_SIZE]; SystemElementId systemElementId; // enum ConnectedDeviceType connectedDeviceType; // enum SystemPinOrMask pinOrMask; // enum uint8_t enabled; }; And...
by josmunpav
Thu Feb 02, 2017 8:45 pm
Forum: Report Bugs
Topic: NVS crashing ESP32 after used a few times
Replies: 8
Views: 18219

NVS crashing ESP32 after used a few times

Hi all, I managed to save complex structs into NVS using key values. My code is working ok so far, the problem is using the NVS in write mode several times seems to crash entirely the ESP32 and I need to reboot it. I save all kind of structs with a well defined size of no more of 512bytes each. This...
by josmunpav
Tue Dec 20, 2016 12:48 am
Forum: Report Bugs
Topic: Wifi not working
Replies: 6
Views: 14238

Re: Wifi not working

However I can hear on Windows how the device restarts twice before connecting to the WiFi, thanks to the annoying Windows notification sound. Not sure why this happens though. Problem now is I lose Serial connection as soon as the first restart happens so I cannot check what's going on. Any idea on...
by josmunpav
Mon Dec 19, 2016 9:05 pm
Forum: Report Bugs
Topic: Wifi not working
Replies: 6
Views: 14238

Re: Wifi not working

Ok some updates. I think the erase flash command did actually work because I can see now the ESP32 connected to my router. However I can hear on Windows how the device restarts twice before connecting to the WiFi, thanks to the annoying Windows notification sound. Not sure why this happens though. P...
by josmunpav
Mon Dec 19, 2016 7:56 pm
Forum: Report Bugs
Topic: Wifi not working
Replies: 6
Views: 14238

Re: Wifi not working

Thanks for the prompt answer. I tried your command and executed ok: $ python esptool.py -p COM3 -b 115200 erase_flash esptool.py v2.0-dev Connecting... Detecting chip type... ESP32 Uploading stub... Running stub... Stub running... Erasing flash (this may take a while)... Chip erase completed success...
by josmunpav
Mon Dec 19, 2016 7:17 pm
Forum: Report Bugs
Topic: Wifi not working
Replies: 6
Views: 14238

Wifi not working

Hi all, I tested my ESP32 with basic WiFi samples and everything was allright. I then moved on and started playing with NVS to store some info which was working great too. Problem is I think I managed to break/corrupt something on the ESP32. When I flash another of those WiFi basic samples, e.g. thi...
by josmunpav
Mon Dec 05, 2016 1:57 pm
Forum: General Discussion
Topic: ESP-WROOM-32 EEPROOM?
Replies: 4
Views: 15610

Re: ESP-WROOM-32 EEPROOM?

Oh great thanks for all this info. I will update the ESP-IDF. With regards to the data structures max limit of 4000 bytes, that's ok I am planning to use close to 64KB in total but in small chunks of info of no more than 200 bytes each. I had already an implementation for an I2C EEPROM so it will be...