Search found 8 matches

by Maxzillian
Tue Jul 23, 2024 6:46 pm
Forum: ESP-IDF
Topic: RMT - simplest receive example working, but idle_threshold problem
Replies: 19
Views: 22131

Re: RMT - simplest receive example working, but idle_threshold problem

I did manage to figure out why my code snippet only works for the first RMT channel. I had an error in the cycle counter that was masked by 0xFF, but it should have been limited to 0x3F as RMT can only capture up to 64 pulses. This was leading to the other channels capturing part of the memory range...
by Maxzillian
Mon Nov 06, 2023 4:57 pm
Forum: ESP32 Arduino
Topic: Use of either LEDC or general timers for very short (<2us) pulses
Replies: 2
Views: 2206

Re: Use of either LEDC or general timers for very short (<2us) pulses

You might be able to utilize what I've done here to configure the pin as an input-and-output. At that point maybe you can configure a falling-edge interrupt as you would on any GPIO input? https://www.esp32.com/viewtopic.php?f=19&t=13347#p122786 Edit: Funny enough, I just had to cross this bridge. A...
by Maxzillian
Sat Nov 04, 2023 2:24 pm
Forum: ESP32 Arduino
Topic: LEDC Output Value - Register Access
Replies: 4
Views: 5394

Re: LEDC Output Value - Register Access

I think you're misunderstanding what I'm aiming to do. In my case I have an input configured to measure the output state of a driver being controlled by PWM. By checking if the output is low while I'm commanding it to be high I can detect a driver failure or a short-to-ground. I could check the coun...
by Maxzillian
Thu Nov 02, 2023 10:02 pm
Forum: ESP32 Arduino
Topic: LEDC Output Value - Register Access
Replies: 4
Views: 5394

Re: LEDC Output Value - Register Access

Pretty late to this party, but I found a solution. After you make your call to ledc_channel_config() you need to set the GPIO direction as input/output. Unfortunately setting the direction will break the IOMUX mapping for the pin so you must then restore the mapping using esp_rom_gpio_connect_out_si...
by Maxzillian
Mon Jul 24, 2023 4:30 pm
Forum: ESP-IDF
Topic: RMT - simplest receive example working, but idle_threshold problem
Replies: 19
Views: 22131

Re: RMT - simplest receive example working, but idle_threshold problem

Sorry for the delay; you may need to insert some print statements into the frequencyReadTask loop to see what the individual counters are doing. Namely pay attention to what the state is of each channel and see if the second and third are never hitting the receive state. One thing I'm noticing is th...
by Maxzillian
Mon Jul 24, 2023 3:40 pm
Forum: General Discussion
Topic: ESP32: Partition Table Update through OTA
Replies: 13
Views: 35871

Re: ESP32: Partition Table Update through OTA

Just to add to this discussion, we've successfully written some code that allows us to expand the partition sizes. Our current partition table has 3 partitions: Factory, OTA 0 and OTA 1. We needed to expand the individual partition sizes from 1 MB to 2 MB. This works out well in our case as the new ...
by Maxzillian
Thu Apr 07, 2022 1:57 pm
Forum: ESP-IDF
Topic: How to disable WDT for a task?
Replies: 2
Views: 12165

Re: How to disable WDT for a task?

Unfortunately the only way to really resolve this one is to either disable the idle watchdog or use a delay (that lets the CPU temporarily return to idle) like you've found. If you want to disable the idle watchdog you could turn it off in your sdkconfig: CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU0=y C...
by Maxzillian
Wed Apr 06, 2022 6:25 pm
Forum: ESP-IDF
Topic: RMT - simplest receive example working, but idle_threshold problem
Replies: 19
Views: 22131

Re: RMT - simplest receive example working, but idle_threshold problem

Hi all, I just wanted to add onto this thread with my solution. I was running into problems with the RMT falling into wait if the buffer overflowed or going to idle and not recovering if the input frequency dropped too low as well as poor resolution in measuring duty cycle across the range. Ultimate...