Search found 566 matches

by boarchuz
Thu May 26, 2022 5:41 pm
Forum: ESP-IDF
Topic: Dealing with a bug that persists a restart
Replies: 6
Views: 2698

Re: Dealing with a bug that persists a restart

If pin 32 is configured as a RTC GPIO then it should be unaffected by a software restart so that's the expected behaviour. If it's configured as a digital GPIO then it should be reset back to default.

RTC WDT will reset everything. It's functionally equivalent to toggling the enable pin.
by boarchuz
Thu May 26, 2022 4:14 am
Forum: Hardware
Topic: ESP32-PICO-V3 won't go in download mode
Replies: 10
Views: 4539

Re: ESP32-PICO-V3 won't go in download mode

Are you missing a pullup on EN?
Also you need separate 5.1k resistors for each USB CC pin. Raspberry Pi had well-publicised problems sharing the resistor like that.
by boarchuz
Wed May 25, 2022 10:33 am
Forum: ESP-IDF
Topic: Dealing with a bug that persists a restart
Replies: 6
Views: 2698

Re: Dealing with a bug that persists a restart

can I trigger the watchdog manually? The linked IDF snippet will do this - set the timeout to 0 to reset immediately. Would a full restart like the one you mention clear the RTC_NO_INIT memory? It shouldn't ever be cleared. I'm guessing memory isn't powered down during a RTCWDT reset so I would exp...
by boarchuz
Tue May 24, 2022 12:30 pm
Forum: ESP-IDF
Topic: Dealing with a bug that persists a restart
Replies: 6
Views: 2698

Re: Dealing with a bug that persists a restart

A software restart (including panic, abort, etc) doesn't reset the whole system. Only power on, RTC WDT, and brownout will do that. You can do a 'full' reset in software by using the RTC WDT. This is a good start: https://github.com/espressif/esp-idf/blob/70109e23939e13229f36d9e8dca9797abfeeb8aa/com...
by boarchuz
Mon May 23, 2022 11:12 am
Forum: ESP-IDF
Topic: Bootstrap implementation using SPIFFs
Replies: 5
Views: 2981

Re: Bootstrap implementation using SPIFFs

const size_t bootcss_size = ((bootstrap_css_end-1) - bootstrap_css_start) httpd_resp_set_hdr(req, "Location", "/bootstrap_min_css"); Why (bootstrap_css_end-1)? EMBED_TXTFILES will null-terminate, but EMBED_FILES should embed the file as-is. What's the intention of the Location header? At best the b...
by boarchuz
Wed May 18, 2022 7:36 am
Forum: General Discussion
Topic: Read ADC in ULP (deep sleep) and read pushbutton
Replies: 4
Views: 3167

Re: Read ADC in ULP (deep sleep) and read pushbutton

if (WakkerMaakReden != ESP_SLEEP_WAKEUP_ULP){ init_ulp_program(); } start_ulp_program(); When woken by the push button, you're reinitialising everything related to the ULP while it is still enabled or even active. In my experience, overwriting its program memory while running can cause the ULP to l...
by boarchuz
Fri May 13, 2022 2:30 am
Forum: ESP-IDF
Topic: strong vApplicationStackOverflowHook
Replies: 19
Views: 15089

Re: strong vApplicationStackOverflowHook

I suspect mangling is ruining your day, try:

Code: Select all

extern "C" void mqtt_callback_scheduler_dummy(){}
You will likely need to add

Code: Select all

extern "C"
to the default one as well, and you might need the weak attribute in its definition.
by boarchuz
Sat Apr 02, 2022 12:17 pm
Forum: ESP-IDF
Topic: http webpage not loading on ios
Replies: 1
Views: 1181

Re: http webpage not loading on ios

Try disabling data so that WiFi is the only network connection.

Logs could be helpful.
by boarchuz
Tue Mar 29, 2022 4:25 am
Forum: IDEs for ESP-IDF
Topic: IDE cannot detect the sdkconfig.h setting
Replies: 10
Views: 17259

Re: IDE cannot detect the sdkconfig.h setting

Also, having just seen your GitHub issue with includes ordering, you might be interested in copying/referencing my config here which should resolve that: https://github.com/boarchuz/espidf-vscode-ccpp/blob/master/c_cpp_properties.json (make sure to select "ESP-IDF [Xtensa | esp-2021r2-patch3-8.4.0]"...
by boarchuz
Tue Mar 29, 2022 3:41 am
Forum: IDEs for ESP-IDF
Topic: IDE cannot detect the sdkconfig.h setting
Replies: 10
Views: 17259

Re: IDE cannot detect the sdkconfig.h setting

deleting compileCommands seems to have fixed it. "compileCommands": "/Volumes/User/MBP-Google-Drive/jamcorder/firmware/jamcorder-firmware/jamcorder_app/build/bootloader/compile_commands.json" You will get better help with compileCommands, you just have the wrong path there (that's the bootloader pa...