I am not very good at running a compiler. My initial problems were caused during project creation, the program in both versions wanted the .c file to be called main.c. I had to remove that file from the project after importing the desired.c file.
Here are the changes that I made, I desired to remove the both of the blinky modes so I could get to the battcheck easier.
// Hidden modes are before the lowest (moon) mode, and should be specified
// in reverse order. So, to go backward from moon to turbo to strobe to
// battcheck, use BATTCHECK,STROBE,TURBO .
#define NUM_HIDDEN 2
#define HIDDENMODES BATTCHECK,TURBO
#define HIDDENMODES_PWM PHASE,PHASE
#define HIDDENMODES_ALT 0,0 // Zeroes, same length as NUM_HIDDEN
#define TURBO 255 // Convenience code for turbo mode
#define BATTCHECK 254 // Convenience code for battery check mode
// Uncomment to enable tactical strobe mode
//#define STROBE 253 // Convenience code for strobe mode
// Uncomment to unable a 2-level stutter beacon instead of a tactical strobe
//#define BIKING_STROBE 252 // Convenience code for biking strobe mode
// comment out to use minimal version instead (smaller)
//#define FULL_BIKING_STROBE
Hey! Also gained some space on the CPU.
Studio 7 output log!!!
——— Build started: Project: BLF-A6_no_blink, Configuration: Debug AVR ———
Build started.
Project “BLF-A6_no_blink.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 “E:\AVRdude\BLF-A6_no_blink\BLF-A6_no_blink\BLF-A6_no_blink.cproj” (target “Build” depends on it):
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
Building file: …/./blf-a6.c
Invoking: AVR/GNU C Compiler : 4.9.2
“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.0.68\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.0.68\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”
Finished building: …/./blf-a6.c
Building target: BLF-A6_no_blink.elf
Invoking: AVR/GNU Linker : 4.9.2
“C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe” -o BLF-A6_no_blink.elf blf-a6.o -Wl,-Map=“BLF-A6_no_blink.map” -Wl,—start-group -Wl,-lm -Wl,—end-group -Wl,—gc-sections -mmcu=attiny13a -B “C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.0.68\gcc\dev\attiny13a”
Finished building target: BLF-A6_no_blink.elf
“C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe” -O ihex -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures “BLF-A6_no_blink.elf” “BLF-A6_no_blink.hex”
“C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe” -j .eeprom —set-section-flags=.eeprom=alloc,load —change-section-lma .eeprom=0 —no-change-warnings -O ihex “BLF-A6_no_blink.elf” “BLF-A6_no_blink.eep” || exit 0
“C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objdump.exe” -h -S “BLF-A6_no_blink.elf” > “BLF-A6_no_blink.lss”
“C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe” -O srec -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures “BLF-A6_no_blink.elf” “BLF-A6_no_blink.srec”
“C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-size.exe” “BLF-A6_no_blink.elf”
text data bss dec hex filename
920 0 13 933 3a5 BLF-A6_no_blink.elf
Done executing task “RunCompilerTask”.
Using “RunOutputFileVerifyTask” task from assembly “C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application\AvrGCC.dll”.
Task “RunOutputFileVerifyTask”
Program Memory Usage : 920 bytes 89.8 % Full
Data Memory Usage : 13 bytes 20.3 % Full
Done executing task “RunOutputFileVerifyTask”.
Done building target “CoreBuild” in project “BLF-A6_no_blink.cproj”.
Target “PostBuildEvent” skipped, due to false condition; (’$(PostBuildEvent)’ != ’‘) was evaluated as (’’ != ’’).
Target “Build” in file “C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Avr.common.targets” from project “E:\AVRdude\BLF-A6_no_blink\BLF-A6_no_blink\BLF-A6_no_blink.cproj” (entry point):
Done building target “Build” in project “BLF-A6_no_blink.cproj”.
Done building project “BLF-A6_no_blink.cproj”.
Build succeeded.
Build: 1 succeeded or up-to-date, 0 failed, 0 skipped