-
Notifications
You must be signed in to change notification settings - Fork 72
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
Strange errors if "Hard limits" are enabled #39
Comments
After some more testing I found that PA9 also interferes with something and can not be used as input. PA10 works fine though ... |
I think I've now found the root cause of the problem. tmp = ((uint32_t)0x0F) << (0x04 * (GPIO_PinSource & (uint8_t)0x03)); to tmp = AFIO->EXTICR[GPIO_PinSource >> 0x02]; the hard limit interrupts (on pins PB10/11/12) work as expected and no more false interrupts are triggered (when pressing the stop-button in bCNC). Best regards, |
I've always had strange errors in bCNC when zeroing X, Y or Z axis or pressing the stop button several times in a row. The errors only happen if "Hard limits" are enabled ($21=1). After some debugging I found that EXTI15_10_IRQHandler() in limits.c gets triggered although it should not. I think the problem is somehow related to USB connected to pins PA11/PA12 and the Y/Z limit switches connected to PB11/PB12. After changing the Y/Z limit switches to PA1/9 the problem is gone.
So maybe that's worth some more debugging ...
The text was updated successfully, but these errors were encountered: