Search found 2067 matches

by ESP_igrr
Sat Aug 25, 2018 7:46 pm
Forum: General Discussion
Topic: Better use of NO INIT section
Replies: 3
Views: 5294

Re: Better use of NO INIT section

After power on, memory contents is random. The exact pattern for "randomness" will differ from one chip to another. You may be able to detect whether your variables are "valid" by calculating a hash sum (or a CRC) and saving that in NOINIT section along with the variables. If after reset you find th...
by ESP_igrr
Sat Aug 25, 2018 7:40 pm
Forum: ESP-IDF
Topic: OpenOCD problem
Replies: 19
Views: 22302

Re: OpenOCD problem

Hi RA5040, I might have a clue where the issue is, could you please try one thing to check? In openocd directory, in share/openocd/scripts/target/esp32.cfg, change "halt" to "reset halt" on line 78: $TGT configure -event gdb-attach { reset halt } Save the file, start openocd, "make flash", try to co...
by ESP_igrr
Sat Aug 25, 2018 5:31 pm
Forum: General Discussion
Topic: OTA boot doesn't run expected partition (flash read err, 1000)
Replies: 5
Views: 8469

Re: OTA boot doesn't run expected partition (flash read err, 1000)

Flash read error likely happens because flash chip start up time is too slow, and ROM code tries to read from it before it is ready. It should not cause problems though, just an extra RTC WDT reset. Can you enable debug log level for both bootloader and app, and post the log produced when doing OTA,...
by ESP_igrr
Sat Aug 25, 2018 5:05 pm
Forum: ESP-IDF
Topic: OpenOCD problem
Replies: 19
Views: 22302

Re: OpenOCD problem

The order of starting gdb and OpenOCD should not matter, as long as OpenOCD is running at the point when you are executing "target remote ..." command in GDB.
by ESP_igrr
Sat Aug 25, 2018 4:28 pm
Forum: ESP-IDF
Topic: OpenOCD problem
Replies: 19
Views: 22302

Re: OpenOCD problem

Hi RA5040,

Not full dbg stub table 1 of 2 is not an error, it is logged at info level.
by ESP_igrr
Fri Aug 24, 2018 4:36 pm
Forum: ESP-IDF
Topic: esp_timer_get_time return type
Replies: 3
Views: 5411

Re: esp_timer_get_time return type

The reason was that the return type represents a moment in time, relative to some point (startup). So time can be both positive and negative, even if this function only ever returns positive values. This is similar to time_t being signed on most systems even though time() always returns positive val...
by ESP_igrr
Thu Aug 23, 2018 1:09 pm
Forum: ESP-IDF
Topic: Brownout Detection Interrupt
Replies: 8
Views: 28984

Re: Brownout Detection Interrupt

by ESP_igrr
Thu Aug 23, 2018 7:13 am
Forum: General Discussion
Topic: Simple Pre-Purchase Questions (RTC/memory/flash/NVS)
Replies: 3
Views: 7063

Re: Simple Pre-Purchase Questions (RTC/memory/flash/NVS)

(adding to the ESP_Sprite's comment above) 2) Where is this stored? I reviewed the documentation and saw the partitioning, as well as the ROM/RAM/RTC Fast/Slow distribution. NVS library stores data in flash memory. Typically ESP32 based modules contain 4MB or more of flash memory( link ), which is u...
by ESP_igrr
Wed Aug 22, 2018 11:05 pm
Forum: ESP-IDF
Topic: Is brownout detection usable now?
Replies: 17
Views: 35807

Re: Is brownout detection usable now?

Possibly RTC memory via RTC_NOINIT_ATTR, but it may be lost if the supply voltage drops below about 1V.
by ESP_igrr
Wed Aug 22, 2018 11:03 pm
Forum: General Discussion
Topic: DeepSleep - Preserve Time
Replies: 2
Views: 3507

Re: DeepSleep - Preserve Time

Please have a look at protocols/sntp example in ESP-IDF:

https://github.com/espressif/esp-idf/tr ... cols/sntp/