Search found 10 matches

by abellofiore
Fri Oct 06, 2023 6:39 pm
Forum: ESP-IDF
Topic: How to get versions of all libraries used in an IDF release
Replies: 0
Views: 1072

How to get versions of all libraries used in an IDF release

Regarding an IDF release (ex. v5.1), is this a web link or file within that IDF that lists all the versions of components that went into the release (example: mbled tls version, Nimble version, etc...)? :?:
by abellofiore
Mon Sep 25, 2023 3:46 pm
Forum: ESP-IDF
Topic: Floating point operations randomly resulting in NaN
Replies: 0
Views: 1413

Floating point operations randomly resulting in NaN

ESP32-S3 Running IDF Release v5.1 I'm seeing simple floating point operations randomly resulting in NaN. I have a few non-pinned tasks running PID loops and other polling operations; nothing out of the ordinary. Naturally, my first assumption was a memory corruption, so I spent a good amount of time...
by abellofiore
Mon Sep 18, 2023 7:58 pm
Forum: ESP-IDF
Topic: How to reinit ESP32S3 USB Serial/JTAG Controller
Replies: 1
Views: 2224

Re: How to reinit ESP32S3 USB Serial/JTAG Controller

On the S3 the USB PHY can be routed to the USB Serial/JTAG controller (factory default) or the CPU (in which case implement whatever you want using TinyUSB or such). If you switched away from the built-in CDC/JTAG controller, just hit the HW registers to switch it back (look in the example projects ...
by abellofiore
Tue Aug 29, 2023 6:49 pm
Forum: ESP-IDF
Topic: How to get timer task handle
Replies: 2
Views: 1579

Re: How to get timer task handle

The task name is "Tmr Svc". Just use the following API in "task.h":

Code: Select all

TaskHandle_t xTaskGetHandle( const char * pcNameToQuery )
by abellofiore
Fri Aug 25, 2023 6:33 pm
Forum: ESP-IDF
Topic: Help with coredump; using saved downloaded core file not working as expected
Replies: 3
Views: 3291

Re: Help with coredump; using saved downloaded core file not working as expected

So, you are correct.... I did a file find in the IDF v5.1 tree and found "espcoredump.py". After using the same downloaded ELF file that refused to work with the "idf.py coredump-info" command, it DOES work with "espcoredump.py". espcoredump.py info_corefile --core ..\downloaded.elf --core-format el...
by abellofiore
Fri Aug 25, 2023 6:23 pm
Forum: ESP-IDF
Topic: Help with coredump; using saved downloaded core file not working as expected
Replies: 3
Views: 3291

Re: Help with coredump; using saved downloaded core file not working as expected

I have the following SDKCONFIG options set for coredump: CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=y # CONFIG_ESP_COREDUMP_ENABLE_TO_UART is not set # CONFIG_ESP_COREDUMP_ENABLE_TO_NONE is not set # CONFIG_ESP_COREDUMP_DATA_FORMAT_BIN is not set CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF=y CONFIG_ESP_COREDUMP_CH...
by abellofiore
Thu Aug 24, 2023 4:02 pm
Forum: ESP-IDF
Topic: Reset when the USB CDC is disconnected
Replies: 3
Views: 1809

Re: Reset when the USB CDC is disconnected

The built-in CDC hardware looks at CTS and DTR from the host to control the boot mode and reset of the ESP32. Windows controls these lines (annoyingly) and there's really nothing you can do about this when connecting/disconnecting. What you CAN do is NOT use the built-in CDC controller. On the ESP32...
by abellofiore
Thu Aug 24, 2023 3:31 pm
Forum: ESP-IDF
Topic: Control duty-cycle of a PWM signal using mcpwm
Replies: 1
Views: 804

Re: Control duty-cycle of a PWM signal using mcpwm

I do exactly this control of a DC motor. Here's what I used (adapted from my code for yours): esp_err_t set_mcpwm_generator_dc(int dc) { esp_err_t rc; rc = mcpwm_comparator_set_compare_value(comparator, dc_to_count(dc)); return rc; } int dc_to_count(int dc) { return (dc * DC_MOTOR_TIMEBASE_PERIOD) /...
by abellofiore
Thu Aug 24, 2023 3:23 pm
Forum: ESP-IDF
Topic: Help with coredump; using saved downloaded core file not working as expected
Replies: 3
Views: 3291

Help with coredump; using saved downloaded core file not working as expected

My coredump is set to save as an ELF image to a flash partition (ESP32-C3, IDF v5.1). I can create a panic and successfully get the coredump info from the device using the following command: idf.py coredump-info -s core.elf --gdb-timeout-sec 30 The above command connects to the device in boot mode, ...
by abellofiore
Tue May 16, 2023 7:16 pm
Forum: IDEs for ESP-IDF
Topic: Espressif IDE keeps saying that a different IDF path was found when starting up
Replies: 1
Views: 3306

Espressif IDE keeps saying that a different IDF path was found when starting up

This is incredibly frustrating. Running v2.9.1 of IDE in Windows 10. I was using IDF v4.4. I installed IDF v5.0.2 and selected it using the menu item "Espressif->Download and Configure ESP-IDF". I can successfully build my project in v5.0.2. However, after closing and reopening the IDE I ALWAYS see ...