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

Added your repo to my online compiler but it fails compiling.. #14

Open
RoboDurden opened this issue Jul 30, 2020 · 1 comment
Open

Comments

@RoboDurden
Copy link

Someone asked me to add your firmware to my online compiler https://pionierland.de/hoverhack
but it fails with

/bin/sh: 1: /usr/local/bin/arm-none-eabi-gcc: not found
make: * [build/stm32f1xx_hal_adc.o] Error 127

I do not want to install new gcc compilers on my vserver.
All the other Makefiles from the added repos that originate from the good old Niklas firmware do copmile.

If you can quickly solve the problem and update your repo, the latest version will automaticly downloaded to my online compiler.

Maybe it is only a small issue :-)
But i strongly dislike linux :-(

@RoboDurden
Copy link
Author

Okay i manually modified the Makefile of the copy that will be overwritten when you update your github:

#BINPATH = /usr/local/bin/
BINPATH = 
PREFIX = arm-none-eabi-
CC = $(BINPATH)$(PREFIX)gcc
AS = $(BINPATH)$(PREFIX)gcc -x assembler-with-cpp
CP = $(BINPATH)$(PREFIX)objcopy
AR = $(BINPATH)$(PREFIX)ar
SZ = $(BINPATH)$(PREFIX)size

Problem was your binpath :-(
So i set it to nothing and changed $(BINPATH)/$(PREFIX) to $(BINPATH)$(PREFIX)

You also changed TARGET = hover to TARGET = hoverboard
and
st-flash write build/hover.bin 0x8000000 to st-flash write build/hoverboard.bin 0x8000000

I fixed that in my online compiler code by scanning the build folder for *.hex and *.bin

So you can keep with your hoverbaord.
But if it does not kill your compiler, it would be nice if you remove your absolute path to the gcc compiler

greetings from Germany
www.robo4future.de

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

1 participant