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

Errors building GRBLHAL for STM32F4XX using directions from the Readme file #129

Open
jbhome opened this issue Aug 2, 2023 · 6 comments

Comments

@jbhome
Copy link

jbhome commented Aug 2, 2023

I am new to GRBLHAL. I have been reading up on it and decided to start by building the default system using the instrctions in "STM32F4xx grblHAL driver" readme.md file.
I installed platformIO core and the repo without a problem.
Running pio, yielded the list of targets. Great. It works.
Building with "pio run --environment nucleo_f411re_protoneer" failed though reporting a missing header file.
I found this file in the grblhal/core repo that was not installed using the "git clone https://github.com/grblHAL/STM32F4xx.git" command. Note the directory is STM32F4XX, not STM32F4. This should be changed as well or maybe mention to add the appropriate name extension "XX". Who says I'm picky. In my defence, it's these details that reduce the number of trouble calls/complaints once something is released.
I ended up downloading and copying the contents of the core folder to the grbl sub-folder of the STM32F4xx project folder and this allowed me to comple and link the project without error.
I am wondering if this is the right aproach, or if there is another set of instructions i missed and need to follow.
Either way, it would seem these instructions should be included in the readme file to support a complete error free first build and allow one to have a trouble free foundation to learn and build from.
Sorry if these sounds like a complaint. The work done here and in all the open source projects is truly amazing and I'm sure very much appreciated if not acknowledged by the silent majority.
Regards,
Jim Brooks

@andrewmarles
Copy link

Probably would point you at the web builder which should skip all of the things you mention here as long as your board is supported.

http://svn.io-engineering.com:8080/

@jbhome
Copy link
Author

jbhome commented Aug 2, 2023 via email

@dresco
Copy link

dresco commented Aug 2, 2023

I am wondering if this is the right approach, or if there is another set of instructions i missed and need to follow.

You're just missing the various common submodules that are linked from each driver repo. (If you look at the contents on GitHub, you'll see all the submodule folders listed there).

Something like git clone --recurse-submodules https://github.com/grblHAL/STM32F4xx.git should do it..

@jbhome
Copy link
Author

jbhome commented Aug 3, 2023 via email

@terjeio
Copy link
Contributor

terjeio commented Aug 6, 2023

Hmm, I wonder if providing the platformio.ini file generated by the Web Builder for download would be better than trying to keep the ones in the repo up to date. Or are someone willing to take on the job of maintaining and testing platformio build configurations?

@jbhome
Copy link
Author

jbhome commented Aug 8, 2023 via email

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

4 participants