Search found 566 matches

by boarchuz
Fri Jan 21, 2022 10:17 am
Forum: General Discussion
Topic: ESP32 store calibration data failed(0x1105)
Replies: 12
Views: 14559

Re: ESP32 store calibration data failed(0x1105)

I have enabled CONFIG_ESP_PHY_INIT_DATA_IN_PARTITION and now will test how is it working. Sorry let me rephrase: PHY calibration data is never stored in the phy_init partition. That is for PHY init data (and only if enabled via CONFIG_ESP_PHY_INIT_DATA_IN_PARTITION) which is not relevant to your is...
by boarchuz
Fri Jan 21, 2022 8:52 am
Forum: General Discussion
Topic: ESP32 store calibration data failed(0x1105)
Replies: 12
Views: 14559

Re: ESP32 store calibration data failed(0x1105)

Can you clarify what do you mean? Something like this: # Default for system config (PHY, WiFi, etc): nvs, data, nvs, , 0x6000, # Separate NVS partition for user settings: settings, data, nvs, , 0x6000, To avoid any confusion, PHY calibration data is not stored in the phy_init partition. If you have...
by boarchuz
Wed Jan 19, 2022 5:45 pm
Forum: ESP-IDF
Topic: Reset the ULP after OTA update
Replies: 3
Views: 4323

Re: Reset the ULP after OTA update

How would you do an RTC reset? #include "soc/rtc_cntl_struct.h" #include "hal/wdt_types.h" #include "hal/rwdt_ll.h" void __attribute__((noreturn)) esp_rtc_reset(void) { rwdt_ll_write_protect_disable(&RTCCNTL); rwdt_ll_disable(&RTCCNTL); rwdt_ll_config_stage(&RTCCNTL, WDT_STAGE0, 0, WDT_STAGE_ACTION...
by boarchuz
Wed Jan 19, 2022 12:18 pm
Forum: General Discussion
Topic: ESP32 store calibration data failed(0x1105)
Replies: 12
Views: 14559

Re: ESP32 store calibration data failed(0x1105)

zazas321 wrote:
Wed Jan 19, 2022 11:40 am
1What is this calibration data exactly?
It's not documented, unfortunately. Some kind of tuning parameters for RF transmission vs power.

If you'd like this to change, please add a comment here: https://github.com/espressif/esp-idf/issues/7324
NVS failure is another good case.
by boarchuz
Wed Jan 19, 2022 11:07 am
Forum: General Discussion
Topic: ESP32 store calibration data failed(0x1105)
Replies: 12
Views: 14559

Re: ESP32 store calibration data failed(0x1105)

0x1105 = ESP_ERR_NVS_NOT_ENOUGH_SPACE Calibration data is almost 2kB, your NVS partition is small, and you use this particular device a lot. NVS is full. https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/RF_calibration.html#full-calibration Full calibration is relatively slow an...
by boarchuz
Wed Jan 19, 2022 2:45 am
Forum: ESP-IDF
Topic: Reset the ULP after OTA update
Replies: 3
Views: 4323

Re: Reset the ULP after OTA update

Your best shot would be to gracefully shut it down before a soft reset, although it might not be possible to do this in all cases (eg. a failed assertion somewhere). On startup, try to clear RTC_CNTL_ULP_CP_SLP_TIMER_EN and hope the ULP hits a halt soon? Fill ULP program memory with halt instruction...
by boarchuz
Thu Jan 13, 2022 4:35 pm
Forum: Hardware
Topic: Achieving Low Power while using the WiFi
Replies: 3
Views: 6602

Re: Achieving Low Power while using the WiFi

I had another look at this today out of interest, as there have been significant improvements to light sleep since my comment in the linked thread - average ESP32 light sleep current now settles <400uA with the right config. With a very high listen interval of 30 (ie. max ~3 seconds between receivin...
by boarchuz
Wed Dec 29, 2021 5:55 pm
Forum: ESP-IDF
Topic: Can ESP32 ULP Reach Timer Registers
Replies: 4
Views: 5612

Re: Can ESP32 ULP Reach Timer Registers

ULP can access RTC slow clock ticks (48 bits, usually ~150khz) so this is possible. You need to set a bit to update the ticks register, and wait until valid as here: https://github.com/boarchuz/HULP/blob/efdf5df7ef750584274bc743fa6374f4691c2d8f/src/hulp_macros.h#L550-L558 Example using this to do a ...
by boarchuz
Mon Dec 06, 2021 2:29 pm
Forum: Hardware
Topic: ESP32S3 Slow ROM Bootloader
Replies: 0
Views: 2561

ESP32S3 Slow ROM Bootloader

Using a simple RTC wakeup stub to set a pin high after ext0 trigger, I noted today that ESP32S3 takes over 8ms while the ESP32 gets it done in just 1.27ms . While it's still pretty quick, that is a relatively huge increase in ROM latency. For context, this would mean the ESP32 can potentially get th...