-
Notifications
You must be signed in to change notification settings - Fork 88
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
Can't compile 6-axis for Neculeo-64 STM32F4RE Board #263
Comments
Did you change N_AXIS to 6? |
Yes.. changed. |
Here is my_machine.h file `// NOTE: Only one board may be enabled! // WARNING: BOARD_BTT_SKR_20 may fry your Trinamic drivers due to bad hardware design. #if defined(NUCLEO_F401) || defined(NUCLEO_F411) || defined(NUCLEO_F446) // Configuration #if !IS_NUCLEO_DEVKIT && !defined(USB_SERIAL_CDC) // The Nucleo boards has an off-chip UART to USB interface. // If the selected board map supports more than three motors ganging and/or auto-squaring here is my my_machine_map.h file Part of grblHAL Grbl is free software: you can redistribute it and/or modify Grbl is distributed in the hope that it will be useful, You should have received a copy of the GNU General Public License #if N_ABC_MOTORS > 2 #if TRINAMIC_ENABLE #if N_AXIS == 5 #define I2C_PORT 1 // Define step pulse output pins. // Define step direction output pins. // Define stepper driver enable/disable output pin. // Define homing/hard limit switch input pins. // Define ganged axis or A axis step pulse and step direction output pins. // Define ganged axis or B axis step pulse and step direction output pins. // Define spindle enable and spindle direction output pins. // Define spindle PWM output pin. // Define flood and mist coolant enable output pins. // Define user-control controls (cycle start, reset, feed hold) input pins. // Define probe switch input pin. While uploading, the following is selected as configuration file. |
As there was no definition for 3rd motor, so i was going with 5-axis in this example. Thenk you very much for adding the code for 3rd motor as well. |
|
Thank you very much, did that already. |
I modified added more code and was able to compile upto 8 axis (X,Y,Z,A,B,C,U,V). I tested the signals with oscilloscope as well, all 8 axis worked. When I added 9th axis , the Limit_bit_mask macro raised a warning |
Adding a 9+ axes will require changes in the core (the axis bit holder type has to be changed to 16 bits as you have found out). The most problematic will be that the NVS (EEPROM) layout has to be changed to accomodate that - could be tricky... Do you have a use case for adding the 9th axis? |
Hmm.. I noticed two problems. 2: I created a random G-Code file for 9 axis, Used My firmware settings. Rest of settings are default. I generated the following random G code having 500 lines.
Well I believe, minimum number of basis axis to span a 3D object engraving is 5. Rest of axis are redundant. |
Dear There lo,
You were right, the nvs file is problematic, and often I receives the EPROM
read fail messages. Which also resets the firmware settings.
As I am new, I don't know exactly how to calculate layout for EPROM. If
possible for you please, give me a hint or starting point, so I may
proceed.
Actually nvs files lacks comments, because of which it's hard to modify.
Beast Regards.
Qaisar.
…On Thu, Mar 16, 2023, 1:34 PM Terje Io ***@***.***> wrote:
Now I started adding 9th axis (W), there was a lot of modification and
upgradation to code in almost all files.
Adding a 9+ axes will require changes in the core (the axis bit holder
type
<https://github.com/grblHAL/core/blob/20aa4ec941bca158e2ded42351d9230085e2fbf2/nuts_bolts.h#L124-L137>
has to be changed to 16 bits as you have found out). The most problematic
will be that the NVS (EEPROM) layout has to be changed to accomodate that -
could be tricky...
Do you have a use case for adding the 9th axis?
—
Reply to this email directly, view it on GitHub
<#263 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK44MQ7JFYXUKEBQGJUN54DW4LGCLANCNFSM6AAAAAAVTVOJC4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Uncomment this line to get a debug command, There should not be any need to modify the NVS code itself, only the layout spec. |
I followed the instructions given in "compiling girbalHAL section" to compile the driver for 6-axis. but after downlading biard, the driver is still 3 axis.
I edited the cnc3040 file for needs, and saved the file with the name "my_machine_map.h" in Inc folder. then i uncommented the "#define BOARD_MY_MACHINE " line. But didn't got success.
The webbuilder tool dont have 6 axis support for Nuclo64 boards, altho Bluepill F401 can have 5 axis.
The text was updated successfully, but these errors were encountered: