Search found 8 matches

by arc12_esp
Mon Sep 01, 2025 8:05 pm
Forum: ESP-IDF
Topic: Spurious EXT1 wake from deep sleep after reset
Replies: 4
Views: 1423

Spurious EXT1 wake from deep sleep after reset

I use the RTC GPIO wake on an ESP32-C6, set up like:

esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_ON);
rtc_gpio_pullup_en(GPIO_CTRL_WAKE);
rtc_gpio_pulldown_dis(GPIO_CTRL_WAKE);
esp_sleep_enable_ext1_wakeup_io(1 << GPIO_CTRL_WAKE, ESP_EXT1_WAKEUP_ANY_LOW);


I also set esp_sleep ...
by arc12_esp
Wed Jul 23, 2025 12:20 pm
Forum: ESP-IDF
Topic: Unable to toggle esp32 c6 GPIO_NUM_4
Replies: 6
Views: 3259

Re: Unable to toggle esp32 c6 GPIO_NUM_4

I had this problem and solved it by using gpio_config()

I believe the problem is due to the default IOMUX for these "pins" being MTMS/MTDI (see section 2 in the datasheet). gpio_config() changes this to "F1".

Same effect for GPIO 6 and 7.
by arc12_esp
Wed Jun 18, 2025 2:11 pm
Forum: Hardware
Topic: Built-in JTAG on ESP32-C6-WROOM-1 failing while serial over USB works
Replies: 1
Views: 407

Re: Built-in JTAG on ESP32-C6-WROOM-1 failing while serial over USB works

Update -
So... I decided to add minimal components to the custom board, and to add components progressively.

Initially, within absolute minimum, JTAG over USB worked.

Adding an external 32kHz crystal and associated capacitors BROKE JTAG. At this point, "sdkconfig" was left with default RTC ...
by arc12_esp
Sat Jun 14, 2025 7:42 pm
Forum: Hardware
Topic: URGENT! ESP32-C6 LP UART - connection to GPS
Replies: 5
Views: 997

Re: URGENT! ESP32-C6 LP UART - connection to GPS

RS232 is an electrical standard which is one way the 0/1 bits are encoded. Often we use "TTL" encoding. The underlying UART messages are the same.
People often fail to make the distinction, and confuse themselves and others...
If you REALLY want RS232 you'd probably use a MAX3232 to interface ...
by arc12_esp
Sat Jun 14, 2025 7:35 pm
Forum: Hardware
Topic: Noobie - why is my 12V relay not firing?
Replies: 3
Views: 432

Re: Noobie - why is my 12V relay not firing?

I suspect you have misunderstood the "12v" designation for the relay. I would expect that to be the relay coil voltage. If you are supplying it with 5V, there will probably be insufficient "pull" from the relay coil to close the load contacts.

Can you hear the relay "clicking". It should be strong ...
by arc12_esp
Sat Jun 14, 2025 7:19 pm
Forum: Hardware
Topic: Built-in JTAG on ESP32-C6-WROOM-1 failing while serial over USB works
Replies: 1
Views: 407

Built-in JTAG on ESP32-C6-WROOM-1 failing while serial over USB works

Using a test program which can be programmed over the USB to built-in JTAG adapter on an ESP32-C6-DevkitC-1 without any issue, I cannot get it to work on a custom board using an ESP32-C6-WROOM-1 module. Devkit is 8M flash and wroom is 4M flash.

I am using VSCode with the official Espressif ...
by arc12_esp
Mon May 26, 2025 4:59 pm
Forum: ESP-IDF
Topic: ESP32C6 - Wakeup while Lp core wait for interrupt or halt
Replies: 3
Views: 408

Re: ESP32C6 - Wakeup while Lp core wait for interrupt or halt

@xryl669 - did you make working code to read ADC from the wake-up stub?

I cannot make it work!

It would be good to check whether the device is running on a "coin cell", e.g. during battery change, and abort a HP wake-up if so.
by arc12_esp
Thu May 22, 2025 2:34 pm
Forum: ESP-IDF
Topic: Best way to code for M24M02 I2C EEPROM with memory address in device id
Replies: 0
Views: 111

Best way to code for M24M02 I2C EEPROM with memory address in device id

The M24M02 EEPROM (2Mbit, so 18 bit address space) includes the top two address bits as part of the device address. Only a 16 bit address is sent as "data".

An ugly way to deal with this would be to register all four of the "device addresses" using i2c_master_bus_add_device() and to write ...

Go to advanced search