Skip to content
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

RP2040 VFD #26

Closed
BobbyDD opened this issue Apr 3, 2022 · 1 comment
Closed

RP2040 VFD #26

BobbyDD opened this issue Apr 3, 2022 · 1 comment

Comments

@BobbyDD
Copy link

BobbyDD commented Apr 3, 2022

Hi,
i need some help to activate the VFD spindle module for the RP2040.
i copied the spindle folder in the RP2040 folder an add #define VFD_ENABLE 1 in my_machine.h
And now, i get some compiling error.

[build] /home/trocker/Projekte/RP2040/driver.c: In function 'driver_init': [build] /home/trocker/Projekte/RP2040/driver.c:1997:5: warning: implicit declaration of function 'modbus_init' [-Wimplicit-function-declaration] [build] 1997 | modbus_init(serial2Init(115200)); [build] | ^~~~~~~~~~~ [build] In file included from /home/trocker/Projekte/RP2040/driver.c:2004: [build] /home/trocker/Projekte/RP2040/grbl/plugins_init.h:32:17: warning: conflicting types for 'modbus_init' [build] 32 | extern void modbus_init (void); [build] | ^~~~~~~~~~~ [build] /home/trocker/Projekte/RP2040/driver.c:1997:5: note: previous implicit declaration of 'modbus_init' was here [build] 1997 | modbus_init(serial2Init(115200)); [build] | ^~~~~~~~~~~ [build] [ 28%] Linking CXX executable grblHAL.elf [build] /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: CMakeFiles/grblHAL.dir/driver.c.obj: in function driver_init':
[build] /home/trocker/Projekte/RP2040/driver.c:1997: undefined reference to modbus_init' [build] /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: CMakeFiles/grblHAL.dir/driver.c.obj: in function driver_init':
[build] /home/trocker/Projekte/RP2040/grbl/plugins_init.h:33: undefined reference to modbus_init' [build] /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /home/trocker/Projekte/RP2040/grbl/plugins_init.h:39: undefined reference to vfd_huanyang_init'
[build] collect2: error: ld returned 1 exit status
[build] make[3]: *** [CMakeFiles/grblHAL.dir/build.make:1872: grblHAL.elf] Fehler 1
[build] make[2]: *** [CMakeFiles/Makefile2:1590: CMakeFiles/grblHAL.dir/all] Fehler 2
[build] make[1]: *** [CMakeFiles/Makefile2:1597: CMakeFiles/grblHAL.dir/rule] Fehler 2
[build] make: *** [Makefile:144: grblHAL] Fehler 2
[build] Build finished with exit code 2`

I hope you can help me.
Thx

@terjeio
Copy link
Contributor

terjeio commented Apr 15, 2022

There are several code small changes and also additions to CMakeLists.txt that has to be made to make this possible.

I hope you can help me.

Give me a bit of time, I have been very busy recently so have a bit of a backlog to clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants