-
Notifications
You must be signed in to change notification settings - Fork 75
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
pcnt unit 6 and 7 #307
Comments
please try
|
Thank you for your help. It is very necessary for beginners.
|
seems there is a missing watchdog reset somewhere in the code. something like see for reference the watchdog reset in FastAccelStepper: FastAccelStepper/src/StepperISR_esp32.cpp Line 107 in 27df201
as I have no clue, which espidf is in use on your side, one possibility is to remove the #if/#endif in your local copy of FastAccelStepper. It could be to anywhere else in the app, outside of FastAccelStepper. |
Does the reset happen with any of the examples e.g. UsageExample ? |
Hello. Please help me. I'm need to use esp32 counter unit 7 in my project. Why do fastaccelstepper and counter work correctly only when using DRIVER_RT? Does the esp32 reboot in other modes? The description indicates that the 6th and 7th units of the counter are free.
There are 2 motors in the project.
When starting the project, the code causes the esp32 to reboot:
`
Setup ()
.......
stepperval = engine.stepperConnectToPin(stepPinStepper_V);
steppergorizont = engine.stepperConnectToPin(stepPinStepper_G);
pcnt_config_t pcntConf = { };
pcntConf.unit = PCNT_UNIT_7;
pcntConf.pulse_gpio_num = metr_count;
pcntConf.pos_mode = PCNT_COUNT_INC;
pcntConf.counter_h_lim = 10;
pcnt_unit_config(&pcntConf);
pcnt_counter_pause(PCNT_UNIT_7);
pcnt_counter_clear(PCNT_UNIT_7);
pcnt_set_filter_value(PCNT_UNIT_7, 1023);
pcnt_filter_enable(PCNT_UNIT_7);
pcnt_event_enable(PCNT_UNIT_7, PCNT_EVT_H_LIM);
pcnt_isr_register(summator, NULL, 0, NULL);
pcnt_intr_enable(PCNT_UNIT_7);
pcnt_counter_resume(PCNT_UNIT_7);
void loop()...
`
The text was updated successfully, but these errors were encountered: