Search found 566 matches
- Sat Apr 15, 2023 9:42 am
- Forum: ESP32 Arduino
- Topic: Core 0 is Slower
- Replies: 7
- Views: 3214
Re: Core 0 is Slower
The main task (the one that calls setup and loop) is pinned to core 0 in Arduino. Your loop is while(1); so this will occupy quite a lot of core 0's time. Delete or suspend the task instead. There are FreeRTOS utilities to help debug issues like this: https://www.freertos.org/a00021.html#vTaskGetRun...
- Mon Apr 10, 2023 1:24 am
- Forum: ESP-IDF
- Topic: High Current Draw | Deep Sleep with External Wakeup (ext0)
- Replies: 2
- Views: 1013
- Mon Apr 03, 2023 8:07 am
- Forum: General Discussion
- Topic: [question] ULP FSM macro
- Replies: 2
- Views: 2026
Re: [question] ULP FSM macro
No, it can't multiply or divide. You can left and right shift though, so if the required logic can work with powers of 2 then you can multiply and divide using shifts. Other options would be to write subroutines for these operations if you really need them, or gather raw data and let the SoC process...
- Fri Mar 24, 2023 3:33 pm
- Forum: ESP32 Arduino
- Topic: Watchdog Timer in ULP
- Replies: 2
- Views: 1367
Re: Watchdog Timer in ULP
- Writing to ULP program memory while it's running can cause all kinds of issues. Make sure it's not still running before reinitialisation. Note that it's in the RTC domain which survives most resets, so even a esp_restart() after an OTA update could leave the old ULP program from the previous firmw...
- Tue Mar 21, 2023 5:50 am
- Forum: General Discussion
- Topic: Is GPIO13 a strapping pin with pulldown?
- Replies: 2
- Views: 1324
Re: Is GPIO13 a strapping pin with pulldown?
Yes, it has the pulldown enabled. It's not undocumented though, see table "A.4. IO_MUX" in the datasheet for all pin configurations at/after reset.
- Fri Mar 10, 2023 9:04 am
- Forum: ESP32 Arduino
- Topic: TaskHandle_t, and passing object causing crash when using object
- Replies: 2
- Views: 975
Re: TaskHandle_t, and passing object causing crash when using object
1000 bytes is a very low stack size. Try 4096.
Side note: The comment on priority is wrong (0 is lowest)
Side note: The comment on priority is wrong (0 is lowest)
- Tue Mar 07, 2023 9:46 am
- Forum: ESP-IDF
- Topic: Stopping ULP & ULP Lockup
- Replies: 10
- Views: 10078
Re: Stopping ULP & ULP Lockup
You're missing a bunch of the #includes from my above comment.
And you will need to add component dependencies to your 'my_boot_hooks' component's CMakeLists.txt:
And you will need to add component dependencies to your 'my_boot_hooks' component's CMakeLists.txt:
Code: Select all
idf_component_register(
SRCS "hooks.c"
REQUIRES soc hal esp_hw_support
)
- Tue Mar 07, 2023 1:43 am
- Forum: ESP-IDF
- Topic: Stopping ULP & ULP Lockup
- Replies: 10
- Views: 10078
Re: Stopping ULP & ULP Lockup
Could you please share the code or instructions on how to do this? I'm not proficient in tinkering with the bootloader It will probably be easiest to use the bootloader hooks feature. Take a look at examples/custom_bootloader/bootloader_hooks. Bootloader RTC reset example: #include "soc/rtc.h" #inc...
- Fri Mar 03, 2023 2:11 am
- Forum: General Discussion
- Topic: skipping over first 128 bytes of RTC RAM
- Replies: 6
- Views: 2097
Re: skipping over first 128 bytes of RTC RAM
Incidentally, there is a Kconfig option to reserve memory at the start of RTC slow memory - it's designed for the ULP, but there's no reason why you can't use it for anything else. If your target supports it, you can enable the ULP and then the option to set the size of this reserved area will appea...
- Thu Feb 23, 2023 10:19 am
- Forum: Hardware
- Topic: EN pin, prevent floating, RC delay, reset button & power switch?
- Replies: 2
- Views: 1024
Re: EN pin, prevent floating, RC delay, reset button & power switch?
It's unclear from the schematic but your slide switch almost certainly has 3 pins, allowing you to define the level for both positions. Connect one to GND for "Off", and the other to 3V3 through a 10k resistor for "On". You can do away with R7 then, and arguably the reset button too.