8000 [BUG]On very first start, all inputs are triggered, despite being correctly pulled to ground · Issue #870 · Paciente8159/uCNC · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

[BUG]On very first start, all inputs are triggered, despite being correctly pulled to ground #870

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

Closed
bschwand opened this issue May 24, 2025 · 0 comments

Comments

@bschwand
Copy link

Describe the bug
I did read the documentation explaining uCNC uses normally closed limit switches, e-stop, which trigger by opening, thus letting the cpu pullups to pull the line up and trigger.. I understand by default uCNC will be in alarm mode if this is not taken care of appropriately.
So, with that said, On my very first start of uCNC after flashing I made sure to put jumpers on all inputs and limits to pull to ground.
uCNC started in alarm mode. The ? command showed everything triggered. So I thought that is weird, it seems inversed... removnig all jumpers pulling to ground allowed to start, then I did the RST command to reset, restarted... and now all inputs are triggered (as expected since they are now open). (and my config does have pullup enabled)

I think this is rather confusing, the behavior changed between two boots. Is that expected ? I did not see a warning about this.

Might it be that on first boot, with a totally erased flash (so it contains 0xFF), the parameters are nonetheless used and thus all inputs are inverted ? Then upon reset of settings, everything is set to zero and on the next boot inputs are not inverted anymore (i.e. require normally closed switches) ?

I think either a signature should be checked in the flash, if not present, delete everything, or the flash stored values are actually inverted from their meaning so that a fresh complete erase leads to all values being "disabled"

@bschwand bschwand added the bug Something isn't working label May 24, 2025
@Paciente8159 Paciente8159 removed the bug Something isn't working label May 24, 2025
Repository owner locked and limited conversation to collaborators May 24, 2025
@Paciente8159 Paciente8159 converted this issue into discussion #871 May 24, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0