-
Notifications
You must be signed in to change notification settings - Fork 95
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
Setting $14 to any value freezes STM32F103RC controller #588
Comments
I have the same issue on a RP2040 |
Anything I can do to debug this? When I revert to build 20230217, everything seems to be fine. |
There has been a few changes to the handling of input pins so it is hard for me to tell what is wrong from just looking at the code - I am abroad for a while and do not have a board to debug with.
The emulation is in the core, and I do not have the same issue with the boards I has access to. So most likely the bug is located in the driver.
Do you program with a debug probe and are able to halt execution and/or set breakpoints? @Loewe111 Which board do you have and which version of grblHAL ($I output). FYI I do have a RP2040 with me and that works. |
The Board i use is the Seed Xiao RP2040 (https://www.seeedstudio.com/XIAO-RP2040-v1-0-p-5026.html)
|
For both of you: is the setting lost on a power cycle? or is the board still unresponsive so you cannot check? @Loewe111 I have tested with my dev board and both a local and a Web Builder build and I am not able to replicate the issue. |
The settings gets reset to 0 for me |
The Normal Pico does the same for me. Couldn't figure out anything more tho |
That may be helpful. If there are no input pins defined it will likely cause a hardfault. Can you try changing this line to: |
or even betterchange this to:
|
YES! This solves this issue. Could you tell me which input pin definition might be missing? I have a probe pin defined in my machine-map. // Define probe switch input pin. Some other inputs are undefined (I2C_STROBE and SDCARD stuff that I don't need) Anyways, always a pleasure to see how fast you are reacting to issues like this one! |
Issue solved |
that fixes it for me aswell |
This fix was essential for my new board. I always wanted to have a board with opto-isolated USB and opto-isolated RS232 interfaces. When driving bigger motors, soon or later you'll run into ground-loop problems. |
I'm running into a new issue with my custom board again.
It seems that everything is working fine when I use a version I have built last year.
After updating to the most recent commit, my board seems to be working correctly (responding to commands etc) and I can set all parameters without problem.
Except for $14. When I try to change $14 (and even with just sending the active value again, like $14=0), the MCU hangs. And the value is not stored as well.
I guess it's not a hardware issue because the older version is working fine on my board.
Any suggestions? Maybe related to the EEPROM-emulation? (I'm mot using an external EEPROM)
Thanks!
The text was updated successfully, but these errors were encountered: