Giter Site home page Giter Site logo

Issue with USB about 6-axis-usbcnc-grbl HOT 14 OPEN

robomechs avatar robomechs commented on July 23, 2024
Issue with USB

from 6-axis-usbcnc-grbl.

Comments (14)

Alfrederson avatar Alfrederson commented on July 23, 2024 1

You need to close the serial connection before restarting the bluepill. It's not like an arduino where hitting the reset button resets just the MCU and the usb-serial chip stays connected.

from 6-axis-usbcnc-grbl.

Alfrederson avatar Alfrederson commented on July 23, 2024 1

I have the same issue and possibly more issues. I have removed 10k resistor and installed a 1.5k for the usb, but I cannot soft reset after an alarm (limit switch is triggered) and reset button does not bring it back up. Same issue seen on multiple sources of blue pill and black pill (robotdyn). Maybe a dumb question @Alfrederson , but how do I close the serial connection, then reconnect? Also I see this issue also on @mstrens branch. I think it's a blue pill/grbl issue.

Many thanks!

Just pull the USB cord and plug it back in. Pushing the reset button on the bluepill itself does the same, but you need to close your host before.

EDIT: by close the serial connection, I mean in the GRBL host on the PC. The rest (pushing reset button or unplugging or plugging) still apply

from 6-axis-usbcnc-grbl.

robomechs avatar robomechs commented on July 23, 2024

Hmm((
It's look like the same issue:
http://www.chibios.com/forum/viewtopic.php?t=1727
Unfortunately
Mybe this is the (hardware) decision:
https://stackoverflow.com/questions/54939948/stm32-usb-cdc-after-hardware-reset

from 6-axis-usbcnc-grbl.

robomechs avatar robomechs commented on July 23, 2024

UV5
46d843

from 6-axis-usbcnc-grbl.

robomechs avatar robomechs commented on July 23, 2024

I'll try it later. (Remove R10 resistor, use bluepill board with external pull-up resistor with toggling mosfet transistor driven by PC14 or 15 for example)

from 6-axis-usbcnc-grbl.

troth530 avatar troth530 commented on July 23, 2024

I have the same issue and possibly more issues. I have removed 10k resistor and installed a 1.5k for the usb, but I cannot soft reset after an alarm (limit switch is triggered) and reset button does not bring it back up. Same issue seen on multiple sources of blue pill and black pill (robotdyn). Maybe a dumb question @Alfrederson , but how do I close the serial connection, then reconnect? Also I see this issue also on @mstrens branch. I think it's a blue pill/grbl issue.

Many thanks!

from 6-axis-usbcnc-grbl.

misan avatar misan commented on July 23, 2024

from 6-axis-usbcnc-grbl.

troth530 avatar troth530 commented on July 23, 2024

@misan no, I cannot get Ctrl+X to work on blue pill or back pill (STM32f103C8). Reset button does not work either. I basically have to unplug from USB, then plug in again and recently need to reboot the entire PC. Can sometimes get $X to work to clear an alarm, but soft reset has never worked. Not sure if I've damaged my hardware or what.

from 6-axis-usbcnc-grbl.

troth530 avatar troth530 commented on July 23, 2024

@Alfrederson. Thank you. I will try closing the software accessing grbl on the PC, then the reset button on Blue Pill/Black Pill and see if it comes back up. Sounds like this is a STM32 issue that cannot be remedied in Firmware.

I should probably also mention that I really appreciate all the hard work that goes into the development and if no one thanks you for all of your hard work, then shame on them!

from 6-axis-usbcnc-grbl.

troth530 avatar troth530 commented on July 23, 2024

I verified that if you close the software host you can then disconnect the USB and reconnect to do a hard reset, but the reset button does nothing to clear the alarm and bring it back out of the alarm state.

Hard reset seems like it's overkill for a basic alarm like triggering a limit switch. Should I open another issue because this does not seem USB related.

from 6-axis-usbcnc-grbl.

Alfrederson avatar Alfrederson commented on July 23, 2024

I verified that if you close the software host you can then disconnect the USB and reconnect to do a hard reset, but the reset button does nothing to clear the alarm and bring it back out of the alarm state.

Hard reset seems like it's overkill for a basic alarm like triggering a limit switch. Should I open another issue because this does not seem USB related.

If it's just an alarm, can't you just unlock it through your GRBL host? Mine starts in alarm mode and I unlock it, no need to reset or anything. I think it's a compilation option to have GRBL start in alarm mode.

from 6-axis-usbcnc-grbl.

troth530 avatar troth530 commented on July 23, 2024

@Alfrederson, how exactly do you unlock it. I cannot get Ctrl-x (ctrl key + x) to work and I cannot get $X to work either.

from 6-axis-usbcnc-grbl.

robomechs avatar robomechs commented on July 23, 2024

I suppose it can be fixed only by hardware.

from 6-axis-usbcnc-grbl.

troth530 avatar troth530 commented on July 23, 2024

@Alfrederson if it starts in alarm state homing can be done to get it out of alarm state, I think it's Alarm 9 in that case. If I recall it does not require Ctrl-X, just needs to go through the homing cycle. The issue is on hitting a limit switch after homing it gets in an alarm state Alarm 1 and latches up.

@robomechs, thanks for looking into it. Disconnect from PC and pulling control_reset_bit low does ensure it can come out of alarm state. Using the reset button does not work.

I still believe something can be done if you can try to repeat this setup you'll have a better chance to debug.

from 6-axis-usbcnc-grbl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.