Skip to content
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

ESP32 silent failure if initialising >2 motors #310

Open
rqi14 opened this issue Feb 28, 2025 · 1 comment
Open

ESP32 silent failure if initialising >2 motors #310

rqi14 opened this issue Feb 28, 2025 · 1 comment

Comments

@rqi14
Copy link

rqi14 commented Feb 28, 2025

Hi. I found for ESP32 if I initialise more than 2 motors, it would freeze the board in the process of GPIO initialisation. It is completely fine with 1 or 2 motors.

I (765) gpio: GPIO[26]| InputEn: 1| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (766) gpio: GPIO[16]| InputEn: 1| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (773) gpio: GPIO[12]| InputEn: 1| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (783) gpio: GPIO[25]| InputEn: 1| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (792) gpio: GPIO[27]| InputEn: 1| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (801) gpio: GPIO[12]| InputEn: 1| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (811) gpio: GPIO[17]| InputEn: 1| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pul�
@gin66
Copy link
Owner

gin66 commented Mar 1, 2025

Sorry to hear that.

What comes to mind:

  • If the third stepper is initialized first, will it fail with the first ?
  • If the third stepper initialization is skipped and replaced by a delay for e.g. 1s, will if work ?
  • Which version of espidf are you using ?
  • esp32 or any derivate ?
  • If espidf4: rmt or mcpwm/pcnt driver ?

There is a related issue #246, that in case of failure, FastAccelStepper still yield a stepper instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants