Search found 32 matches

by DylanWork
Tue Mar 28, 2023 4:56 am
Forum: ESP-IDF
Topic: Using NVS to save a configuration or settings
Replies: 4
Views: 3638

Re: Using NVS to save a configuration or settings

That sounds perfect, but I can't see that in the ESP-IDF. I can see it in this tutorial, looks like it's installed when adding boards on the Arduino platform? https://randomnerdtutorials.com/esp32-save-data-permanently-preferences/ I'm using ESP-IDF V4.4, do you know of any examples that are would w...
by DylanWork
Tue Mar 28, 2023 12:52 am
Forum: ESP-IDF
Topic: Using NVS to save a configuration or settings
Replies: 4
Views: 3638

Using NVS to save a configuration or settings

Hi all, I'm having some trouble implementing a way to save some settings that I want to be configurable. These will rarely be changed (if ever), but having the option is very valuable. It looks like blob storage is the most appropriate, but I haven't been able to find or adopt an example that works ...
by DylanWork
Wed Mar 01, 2023 11:30 am
Forum: ESP-IDF
Topic: Esp32-s2 Co-processor crash
Replies: 0
Views: 916

Esp32-s2 Co-processor crash

Hi all, I have possibly an unusual request. I would like to intentionally crash the ESP32-S2 co-processor so I can test some recovery code and a few sequences I have around this. Previously I've been able to crash the co-processor easily and reliably by using while(1) with nothing in it or dividing ...
by DylanWork
Thu Jan 13, 2022 12:15 pm
Forum: ESP-IDF
Topic: Esp32-s2 Co-processor does not shutdown with shutdown command
Replies: 3
Views: 4858

Re: Esp32-s2 Co-processor does not shutdown with shutdown command

Ok, thank you for responding.

I'll submit an issue on github and post back here when it gets resolved to help with anyone in the future.

Cheers,
Dylan
by DylanWork
Thu Jan 13, 2022 1:25 am
Forum: ESP-IDF
Topic: Esp32-s2 Co-processor does not shutdown with shutdown command
Replies: 3
Views: 4858

Re: Esp32-s2 Co-processor does not shutdown with shutdown command

Hi all, Just bumping this and hoping to ask an open question to whoever is looking through my posts. I have posted a few questions relating to the ESP32-S2 co-processor and related items, but I don't appear to be getting answers. Am I not giving enough detail, or is my posting style confusing, or is...
by DylanWork
Tue Jan 11, 2022 3:30 am
Forum: ESP-IDF
Topic: Esp32-s2 Co-processor does not shutdown with shutdown command
Replies: 3
Views: 4858

Esp32-s2 Co-processor does not shutdown with shutdown command

Hi all, Running similar code to this example and using the functions: ulp_riscv_wakeup_main_processor(); ulp_riscv_shutdown(); I would have expected the shutdown function to do exactly as described and the co-processor more into HALT state or just off altogether and not run until initiated in the ma...
by DylanWork
Sat Dec 18, 2021 8:49 am
Forum: ESP-IDF
Topic: ESP IDF GPIO Interrupt
Replies: 1
Views: 6267

Re: ESP IDF GPIO Interrupt

It's likely similar to the issue I faced with interrupts for sleep modes.

What GPIO's are you using? If it's GPIO18+ this may be the issue.

Have a look around what I did here, it might help.

https://www.esp32.com/viewtopic.php?f=13&t=24900
by DylanWork
Tue Dec 14, 2021 5:21 am
Forum: ESP-IDF
Topic: Blinking an LED in ULP crashes when an external interrupt is setup from the main CPU
Replies: 3
Views: 6165

Re: Blinking an LED in ULP crashes when an external interrupt is setup from the main CPU

Hi all, This issue has been resolved. This issue is related to the ESP32-S2 board and its compatibility with current esp-idf (I'm using V4.4). To get this working on an ESP32-S2, you need to modify the file sleep_modes.c as follows: typedef struct { esp_sleep_pd_option_t pd_options[ESP_PD_DOMAIN_MAX...
by DylanWork
Sun Dec 12, 2021 5:18 am
Forum: ESP-IDF
Topic: Blinking an LED in ULP crashes when an external interrupt is setup from the main CPU
Replies: 3
Views: 6165

Re: Blinking an LED in ULP crashes when an external interrupt is setup from the main CPU

Hi all, I am still having trouble with this. I have replicated this issue here: https://github.com/DylanGWork/esp32s2ulp-interrupt This shows the ULP co-processor either having an interrupt, or working code in the ULP co-processor, but not both at the same time. It seems as though I can't have an in...
by DylanWork
Fri Dec 10, 2021 5:20 am
Forum: ESP-IDF
Topic: Blinking an LED in ULP crashes when an external interrupt is setup from the main CPU
Replies: 3
Views: 6165

Blinking an LED in ULP crashes when an external interrupt is setup from the main CPU

Hi all, I have been attempting to set up a button press interrupt from the main CPU (easily done) while having the ULP still running. I have run into an unexpected issue with using the function: esp_sleep_enable_ext0_wakeup(Button, 0); The ULP program is: [Codebox=c file=Untitled.c] int main (void) ...