MCPWM persists state after cleanup (IDFGH-11895) #12980
Labels
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
v5.3-dev-1353-gb3f7e2c8a4
Espressif SoC revision.
ESP32-H2 (revision v0.1)
Operating System used.
Linux
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-H2-DevKitM-1
Power Supply used.
USB
What is the expected behavior?
After setting up MCPWM (timer, operator, comparator, generator) as in the mcpwm servo example, then cleaning up each item with mcpwm_del_X, the procedure can be repeated to control another device on a different pin.
What is the actual behavior?
After setting up MCPWM (timer, operator, comparator, generator) as in the mcpwm servo example, then cleaning up each item with mcpwm_del_X, if another set of (timer, operator, comparator, generator) is recreated to control another servo on a different pin, the first servo will also be affected.
Steps to reproduce.
Modify mcpwm_servo_control_example_main.c with the following code. This sets up MCPWM to move a servo on pin 10, waits for a second, and cleans up the (timer, operator, comparator, generator). Then it waits for 5 seconds, and does the same thing for a servo on pin 11.
Expected behavior:
Actual behavior:
Debug Logs.
No response
More Information.
It seems that there is some problem where setting up MCPWM, and cleaning it up with mcpwm_del_X, does not actually fully clean it up and it affects subsequent setups ?
The text was updated successfully, but these errors were encountered: