Hello, I’m unable to build BLF-A6 from source in Atmel studio 7 (this is the first time I’ve tried to build a project myself in a few years now) I’ve searched and found this helpful thread which reminded me to set optimization for size but atlas that wasnt it.
Can someone help please.
——— Build started: Project: BLF A6, Configuration: Debug AVR ———
Build started.
Project “BLF A6.cproj” (default targets):
Target “PreBuildEvent” skipped, due to false condition; (‘$(PreBuildEvent)’!=’‘) was evaluated as (’‘!=’‘).
Target “CoreBuild” in file “C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets” from project “C:\Users\dgost_000\Documents\Atmel Studio\7.0\BLF A6\BLF A6\BLF A6.cproj” (target “Build” depends on it):
Using “RunCompilerTask” task from assembly “C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application\AvrGCC.dll”.
Task “RunCompilerTask”
Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all —jobs 2 —output-sync
Building file: …/./blf-a6.c
Invoking: AVR/GNU C Compiler : 5.4.0
“C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe” -x c -funsigned-char -funsigned-bitfields -DDEBUG -I”C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.3.172\include” -Os -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=attiny13a -B “C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.3.172\gcc\dev\attiny13a” -c -std=gnu99 -MD -MP -MF “blf-a6.d” -MT”blf-a6.d” -MT”blf-a6.o” -o “blf-a6.o” “…/./blf-a6.c”
C:\Users\dgost_000\Documents\Atmel Studio\7.0\BLF A6\BLF A6\Debug\Makefile(76,1): error: recipe for target ’blf-a6.o’ failed
…/./blf-a6.c: In function ‘_delay_ms’:
C:\Users\dgost_000\Documents\Atmel Studio\7.0\BLF A6\BLF A6\blf-a6.c(191,34): error: ‘DELAY_TWEAK’ undeclared (first use in this function)
while(n— > 0) _delay_loop_2(DELAY_TWEAK);
^
C:\Users\dgost_000\Documents\Atmel Studio\7.0\BLF A6\BLF A6\blf-a6.c(191,34): info: each undeclared identifier is reported only once for each function it appears in
…/./blf-a6.c: In function ‘save_state’:
C:\Users\dgost_000\Documents\Atmel Studio\7.0\BLF A6\BLF A6\blf-a6.c(276,26): error: ‘EEPLEN’ undeclared (first use in this function)
eepos = (eepos+1) & (EEPLEN-1); // wear leveling, use next cell
^
…/./blf-a6.c: In function ‘restore_state’:
C:\Users\dgost_000\Documents\Atmel Studio\7.0\BLF A6\BLF A6\blf-a6.c(290,24): error: ‘EEPLEN’ undeclared (first use in this function)
for(eepos=0; eepos<EEPLEN; eepos) {
^
make: * [blf-a6.o] Error 1
Done executing task “RunCompilerTask” — FAILED.
Done building target “CoreBuild” in project “BLF A6.cproj” — FAILED.
Done building project “BLF A6.cproj” — FAILED.
Build FAILED.
Build: 0 succeeded or up-to-date, 1 failed, 0 skipped