Search found 16 matches

by esp_programmer
Fri Mar 01, 2024 12:56 am
Forum: ESP-IDF
Topic: ESP32S2 RTC Clock Source Selection After Bootloader
Replies: 0
Views: 961

ESP32S2 RTC Clock Source Selection After Bootloader

Hi, Does anyone know if it is possible to change the ESP32S2 RTC timer clock source (RTC slow) in the user app? The RTC clock source appears to be set in the bootloader, but I would like to fix a bug in the field - the bug is the wrong clock source selection. I know there are functions that do this,...
by esp_programmer
Sun Feb 25, 2024 4:34 am
Forum: ESP-IDF
Topic: ESP32S2 Restart Via Software Causes Exception
Replies: 1
Views: 686

Re: ESP32S2 Restart Via Software Causes Exception

Well, it seems the esp_start() function just reboots the core (CPU Reset). All the peripherals remain in their original state and this appeared to break the bootloader. I got the functionality I required by forcing a Core Reset. This resets all but the RTC peripherals. I did this by going into deep ...
by esp_programmer
Sat Feb 24, 2024 4:53 am
Forum: ESP-IDF
Topic: ESP32S2 Restart Via Software Causes Exception
Replies: 1
Views: 686

ESP32S2 Restart Via Software Causes Exception

Hi, I am attempting to reset an ESP32S2 into download mode via the following code (explained in https://www.esp32.com/viewtopic.php?t=33180 : REG_WRITE(RTC_CNTL_OPTION1_REG, RTC_CNTL_FORCE_DOWNLOAD_BOOT); esp_restart(); The CPU appears to reset, but it looks like the bootloader exceptions out. Here ...
by esp_programmer
Sun Nov 12, 2023 11:22 pm
Forum: ESP-IDF
Topic: USB Serial/JTAG Controller Console
Replies: 1
Views: 1122

Re: USB Serial/JTAG Controller Console

It appears the problem is that I was using code that assumed the uart was being used for the console, not the USB. I can get the example app in examples/system/console/basic to operate as expected.

So disregard my question, thanks.
by esp_programmer
Thu Nov 09, 2023 10:21 pm
Forum: ESP-IDF
Topic: USB Serial/JTAG Controller Console
Replies: 1
Views: 1122

USB Serial/JTAG Controller Console

Hi, I am attempting to enable the esp32s3 USB Serial/JTAG console for serial console input/output as per the instructions on https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/usb-serial-jtag-console.html. All that is apparently required is to set the CONFIG_ESP_CONSOLE_UART op...
by esp_programmer
Thu Jul 20, 2023 1:21 am
Forum: ESP32 Arduino
Topic: Unblocking a Task on the "Other" Core
Replies: 3
Views: 1740

Re: Unblocking a Task on the "Other" Core

Hi gfvalvo,

I am using an older version of the esp-idf (5.0). Looks like they have moved some things from tasks.c. As you noted, the function that is used is https://github.com/espressif/esp-idf/bl ... ort.c#L562 .

Thanks
by esp_programmer
Wed Jul 19, 2023 10:51 pm
Forum: ESP32 Arduino
Topic: Unblocking a Task on the "Other" Core
Replies: 3
Views: 1740

Re: Unblocking a Task on the "Other" Core

Hi gfvalvo, I was wondering this myself. For what it's worth, it appears to me that one CPU sends an interrupt to the other when a yield is needed. See taskYIELD_OTHER_CORE in tasks.c. There are registers (in the System Registers block) that allow a CPU to trigger interrupts on the other. esp_progra...
by esp_programmer
Wed Jul 19, 2023 9:40 pm
Forum: Hardware
Topic: esp32s3 QR Register State Saving
Replies: 2
Views: 1183

Re: esp32s3 QR Register State Saving

Thanks ESP_igrr for that very informative response.

Just another question, can you confirm that each core has its own PIE co-processor? That is, there are two independent PIE co-processors on the ESP32S3?

Thanks
by esp_programmer
Wed Jul 19, 2023 4:40 am
Forum: Hardware
Topic: esp32s3 QR Register State Saving
Replies: 2
Views: 1183

esp32s3 QR Register State Saving

Hi,

Not sure if this is a silly question, but what happens to the PIE QR registers on a context switch or interrupt? I am assuming that nothing happens unless a user specifically saves/restores them. Is this correct?

Thanks
esp_programmer
by esp_programmer
Tue Jul 18, 2023 9:08 pm
Forum: Documentation
Topic: ESP32S3 DMA - What is a "frame"
Replies: 5
Views: 31761

Re: ESP32S3 DMA - What is a "frame"

Ok, thanks ESP_wangning.