Skip to content

[BUG] MCPWM error on ESP32-S3 #462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sanjay-swain opened this issue Apr 3, 2025 · 2 comments
Open

[BUG] MCPWM error on ESP32-S3 #462

sanjay-swain opened this issue Apr 3, 2025 · 2 comments
Assignees
Milestone

Comments

@sanjay-swain
Copy link

sanjay-swain commented Apr 3, 2025

Hello, I just bought a simplefocmini on for the first time and uploaded the open loop motor control example but was getting the following error:

ESP32-DRV: ERROR - Could not initialize the timer in group: 0
E (5) mcpwm: mcpwm_new_timer(106): register back up is not supported
Driver Init Failed

I am using Arduino IDE. Any idea what is causing this?

EDIT: By searching through the docs this "register back up not supported" is related to SOC_MCPWM_SUPPORT_SLEEP_RETENTION flag which is a part of ESP32-C6 power management section. So.. I am now confused. Why this is even called again? I will try again with another computer tomorrow. Let's see

EDIT 2: Okay so it turns out esp-idf 5.4 added a power management mode which needs a flag allow_pd to be defined on mcpwm_timer_config_t. I just downgraded to esp32-arduino version 3.1.3 built with esp-idf 5.3 and it works as intended.

So I guess the library needs to be updated to use the new methods. But this works for now.

Here is the reference: docs

@mackanjansson
Copy link

Thanks for sharing that 3.1.3 works I have had the same issue

@runger1101001
Copy link
Member

Thanks for reporting it. We will fix it for the next release…

@runger1101001 runger1101001 self-assigned this Apr 10, 2025
@runger1101001 runger1101001 added this to the 2.3.5_Release milestone Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants