Skip to content

fixes no-pulse failsafe not working on ESP32C3 - #3609

Merged
pkendall64 merged 2 commits into
ExpressLRS:4.x-maintfrom
frank26080115:fix-no-pulse-failsafe-not-working-on-esp32
Apr 23, 2026
Merged

pkendall64 merged 2 commits into
ExpressLRS:4.x-maintfrom
frank26080115:fix-no-pulse-failsafe-not-working-on-esp32

Conversation

@frank26080115

Copy link
Copy Markdown
Contributor

fixes no-pulse failsafe not working on ESP32, specifying 0 as microseconds does not result in no pulses, instead I see 1.33 microsecond pulses on the o'scope and logic analyzer.

the technique used to fix this problem will detach or reattach the ledc

Comment thread src/lib/PWM/PWM_ESP32.cpp Resolved
@mha1

mha1 commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Which receiver, fw version, PWM channel, PWM frequency is this? I can't confirm the stated issue with a BFPV SuperP, V4.0.0, 50Hz PWM. I'm looking at the PWM output with the rx in a "no pulses" failsafe situation and all I see is the expected low level flat line. Scope: DSCope U3P100, 1 GSa/s.

@frank26080115

Copy link
Copy Markdown
Contributor Author

Which receiver, fw version, PWM channel, PWM frequency is this? I can't confirm the stated issue with a BFPV SuperP, V4.0.0, 50Hz PWM. I'm looking at the PWM output with the rx in a "no pulses" failsafe situation and all I see is the expected low level flat line. Scope: DSCope U3P100, 1 GSa/s.

I'm using a ESP32-C3 from the RadioMaster XR2 receiver. It looks like I fixed this in my own fork a long time ago but only after I started to work on the XR2, so I think the ESP32-Pico (which is what the SuperP uses, according to their marketing material) is not effected. Maybe because the Pico uses MCPWM instead of LEDC

@mha1

mha1 commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

You're right, the issue only shows on ESP32C3 devices. I could reproduce the problem only on ESP32C3 receivers. Your PR fixes it.

@pkendall64 pkendall64 changed the title fixes no-pulse failsafe not working on ESP32 fixes no-pulse failsafe not working on ESP32C3 Apr 23, 2026
@pkendall64
pkendall64 force-pushed the fix-no-pulse-failsafe-not-working-on-esp32 branch from fd05172 to d730f08 Compare April 23, 2026 05:06
@pkendall64
pkendall64 changed the base branch from master to 4.x-maint April 23, 2026 05:06
@pkendall64

pkendall64 commented Apr 23, 2026 •

Copy link
Copy Markdown
Collaborator

Rebased and force-pushed so we can get this in 4.0.1

@pkendall64
pkendall64 merged commit b5a5b5f into ExpressLRS:4.x-maint Apr 23, 2026
@rddrlss1

rddrlss1 commented Nov 18, 2026 •

Copy link
Copy Markdown

I am seeing 'last position' being output when 'no pulses' is selected on the radiomaster ER6 receiver. Is it possible this bug is not limited to the ESP32C3? I have not switched to the 4.x release yet due to a binding issue I could not resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants