Guidance on how to compile w/ support for A-axis pins as Spindle #90
Replies: 4 comments 2 replies
-
To enable uncomment this line and change it to: |
Beta Was this translation helpful? Give feedback.
-
Thank you terjeio. When I build the grblHAL.uf2 file and flash it to the pi pico, I cannot communicate with the pi pico via IO sender. Please see screenshot below for the error message I receive. I suspect that I am not editing the my_machine.h file correctly before building the grbhHAL.uf2 file. Previously I have built the firmware using the web firmware tool, so I do not know the correct edits to make to the my_machine.h file to correctly configure it to utilize the PicoCNC board (ideally with ethernet enabled). Can any either provide a correct my_machine.h file, point me to an example of a correctly edited my_machine.h file to use, or suggest the proper edits I should make to my my_machine.h file? Contents of my my_machine.h file copy/pasted below. `/* Part of grblHAL Copyright (c) 2021-2024 Terje Io grblHAL is free software: you can redistribute it and/or modify grblHAL is distributed in the hope that it will be useful, You should have received a copy of the GNU General Public License // NOTE: Only one board may be enabled! // Configuration #ifndef USB_SERIAL_CDC // If the selected board map supports more than three motors ganging and/or auto-squaring //#define WIZCHIP 5500 #if WIFI_ENABLE || ETHERNET_ENABLE || WEBUI_ENABLE /**/ |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! The firmware you sent along works perfectly! No, I did not change grbl/config.h to enable the A-axis. How do I do that? In addition, did you make any other changes to any files to compile the firmware that you sent me? When I make the changes to my my_machine.h and CMakeLists.txt to match yours, then compile and flash the resulting firmware to the Pico, I get the same error message I posted previously, which leads me to think 1) I am perhaps using a different version of the RP2040 repo or something than what you are using or 2) there were other changes you perhaps made in addition to the changes to the files you sent me. Could either of those things be possible? I ask because eventually I want to look into getting spindle syncing to work, so if I can get to a state where I can compile the firmware myself, that would be ideal, so I could them modify from that known-good state to some new state to try to get spindle syncing working. |
Beta Was this translation helpful? Give feedback.
-
My version matches the version/build date you indicated. I have tried building it using Platform IO in Visual Studio Code and Raspberry Pi Pico extension in Visual Studio Code. Neither of the resulting firmware's work when flashed to the Pico. It is probably something I have done wrong on my end that is outside the scope of the code in the repo, so, what I figure I'll do is thank you again (thanks again!) for your help, and close this ticket for now, as the firmware you provided works. |
Beta Was this translation helpful? Give feedback.
-
Greeting!
I have a PicoCNC setup and working. I am attempting to use a G320X servo drive to drive a servo as a spindle. What I'd like to do is use the A-Axis pins to send STEP and DIR signals to the G320X whenever the relevant M03 S100 G-code is executed.
I can see in the spindle plugin that there is a file called stepper.c (https://github.com/grblHAL/Plugins_spindle/blob/master/stepper.c) which seems to do what I need.
I have VS Code setup and can compile RP2040 for the PicoCNC. What I don't know how to do is 1) set the correct options in my_machine.h to build properly for PicoCNC and 2) how to "include" and "enable" the spindle plugin and the stepper.c option to be able to then use the A-Axis to drive the G320X to drive the servo and use it as a spindle.
I have attempted to search similar discussions but not found anything; apologies if the answer has already been provided and I just missed it.
Can anyone help me out?
Regards,
John
Beta Was this translation helpful? Give feedback.
All reactions