I'm trying to rewrite a bootloader without including any arduino headers as it always gets out of range errors.
I was trying to use arduino LCD lib to put notes n the LCD by the bootloader.
Instead, I wanted to use the Davide Gironi i2c and lcd code from his avr_lib_lcdpcf8574_02.zip download.
I just added all the .c and .h files to my project, all in the same directory and corrected the .h references, removing the folders.
And added my code folder as an Include folder.
I get a build for them in the make file, but they all error compiling the.o files.
The only code I want to import is to write to the I2c 4x20 LCD, the rest is just my own USART and midi code.
All the added c files fail, only main compiles.
How do I correctly add his code to my project?
Severity Code Description Project File Line
Error recipe for target 'lcdpcf8574.o' failed GreenbriarBootLoader c:\Users\grnbr\Documents\Atmel Studio\7.0\GreenbriarBootLoader\GreenbriarBootLoader\Debug\Makefile 96
# AVR32/GNU C Compiler
@echo Building file: $<
@echo Invoking: AVR/GNU C Compiler : 5.4.0
$(QUOTE)F:\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -x c -funsigned-char -funsigned-bitfields -DDEBUG -I"F:\Atmel\Studio\7.0\Packs\Atmel\ATmega_DFP\1.3.300\include" -I"C:\Users\grnbr\Documents\Atmel Studio\7.0\GreenbriarBootLoader\GreenbriarBootLoader" -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -mrelax -g2 -Wall -mmcu=atmega2560 -B "F:\Atmel\Studio\7.0\Packs\Atmel\ATmega_DFP\1.3.300\gcc\dev\atmega2560" -c -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -o "$@" "$<"
@echo Finished building: $<