Skip to content

Instantly share code, notes, and snippets.

@boxysean
Created June 4, 2014 16:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boxysean/e491ba829dff804c65e5 to your computer and use it in GitHub Desktop.
Save boxysean/e491ba829dff804c65e5 to your computer and use it in GitHub Desktop.
"Good looking" run of the make commands for Waterfall Swing
boxysean-mbpr:solenoid-controller boxysean$ avrdude -p m128 -B 50 -P usb -c dragon_isp
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.16s
avrdude: Device signature = 0x1e9702
avrdude: safemode: Fuses OK (E:FD, H:99, L:DE)
avrdude done. Thank you.
boxysean-mbpr:solenoid-controller boxysean$
boxysean-mbpr:solenoid-controller boxysean$
boxysean-mbpr:solenoid-controller boxysean$ ls
Makefile solenoid_controller.elf solenoid_controller.map
solenoid_controller.eep solenoid_controller.hex src
boxysean-mbpr:solenoid-controller boxysean$ vim MAk
boxysean-mbpr:solenoid-controller boxysean$ vim Makefile
boxysean-mbpr:solenoid-controller boxysean$ make fuses
# from http://www.engbedded.com/fusecalc
avrdude -p m128 -B 50 -P usb -c dragon_isp -F -U lfuse:w:0xde:m
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.16s
avrdude: Device signature = 0x1e9702
avrdude: reading input file "0xde"
avrdude: writing lfuse (1 bytes):
Writing | ################################################## | 100% 0.05s
avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0xde:
avrdude: load data lfuse data from input file 0xde:
avrdude: input file 0xde contains 1 bytes
avrdude: reading on-chip lfuse data:
Reading | ################################################## | 100% 0.05s
avrdude: verifying ...
avrdude: 1 bytes of lfuse verified
avrdude: safemode: Fuses OK (E:FD, H:99, L:DE)
avrdude done. Thank you.
avrdude -p m128 -B 50 -P usb -c dragon_isp -F -U hfuse:w:0x09:m
avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2107)
avrdude done. Thank you.
make: *** [fuses] Error 1
boxysean-mbpr:solenoid-controller boxysean$ make program
Compiling: src/boardaddr.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/boardaddr.lst -I./src -std=gnu99 -MD -MP -MF .dep/boardaddr.o.d src/boardaddr.c -o src/boardaddr.o
Compiling: src/buttons.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/buttons.lst -I./src -std=gnu99 -MD -MP -MF .dep/buttons.o.d src/buttons.c -o src/buttons.o
In file included from src/buttons.c:16:0:
src/buttons.h:12:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
src/buttons.h:13:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
In file included from src/buttons.c:17:0:
src/shiftregister.h:22:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
src/buttons.c:25:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
Compiling: src/diagled.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/diagled.lst -I./src -std=gnu99 -MD -MP -MF .dep/diagled.o.d src/diagled.c -o src/diagled.o
Compiling: src/rs485.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/rs485.lst -I./src -std=gnu99 -MD -MP -MF .dep/rs485.o.d src/rs485.c -o src/rs485.o
Compiling: src/shiftregister.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/shiftregister.lst -I./src -std=gnu99 -MD -MP -MF .dep/shiftregister.o.d src/shiftregister.c -o src/shiftregister.o
In file included from src/shiftregister.c:8:0:
src/shiftregister.h:22:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
src/shiftregister.c:30:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]
Compiling: src/waterfallswing.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/waterfallswing.lst -I./src -std=gnu99 -MD -MP -MF .dep/waterfallswing.o.d src/waterfallswing.c -o src/waterfallswing.o
src/waterfallswing.c:8:0: warning: "F_CPU" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
In file included from src/waterfallswing.c:12:0:
src/waterfallswing.h:14:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
src/waterfallswing.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
In file included from src/waterfallswing.c:13:0:
src/shiftregister.h:22:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
In file included from src/waterfallswing.c:15:0:
src/buttons.h:12:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
src/buttons.h:13:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
src/waterfallswing.c:117:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
Linking: solenoid_controller.elf
avr-gcc -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/boardaddr.o -I./src -std=gnu99 -MD -MP -MF .dep/solenoid_controller.elf.d src/boardaddr.o src/buttons.o src/diagled.o src/rs485.o src/shiftregister.o src/waterfallswing.o --output solenoid_controller.elf -Wl,-Map=solenoid_controller.map,--cref -lm
Creating load file for Flash: solenoid_controller.hex
avr-objcopy -O ihex -R .eeprom solenoid_controller.elf solenoid_controller.hex
Creating load file for EEPROM: solenoid_controller.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 -O ihex solenoid_controller.elf solenoid_controller.eep
avr-objcopy: --change-section-lma .eeprom=0x0000000000000000 never used
avrdude -p m128 -B 50 -P usb -c dragon_isp -U flash:w:solenoid_controller.hex
^Cmake: *** [program] Interrupt: 2
boxysean-mbpr:solenoid-controller boxysean$ make clean
-------- begin --------
Cleaning project:
rm -f solenoid_controller.hex
rm -f solenoid_controller.eep
rm -f solenoid_controller.cof
rm -f solenoid_controller.elf
rm -f solenoid_controller.map
rm -f solenoid_controller.sym
rm -f solenoid_controller.lss
rm -f src/boardaddr.o src/buttons.o src/diagled.o src/rs485.o src/shiftregister.o src/waterfallswing.o
rm -f src/boardaddr.lst src/buttons.lst src/diagled.lst src/rs485.lst src/shiftregister.lst src/waterfallswing.lst
rm -f src/boardaddr.s src/buttons.s src/diagled.s src/rs485.s src/shiftregister.s src/waterfallswing.s
rm -f src/boardaddr.d src/buttons.d src/diagled.d src/rs485.d src/shiftregister.d src/waterfallswing.d
rm -f .dep/*
-------- end --------
boxysean-mbpr:solenoid-controller boxysean$ make program
Compiling: src/boardaddr.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/boardaddr.lst -I./src -std=gnu99 -MD -MP -MF .dep/boardaddr.o.d src/boardaddr.c -o src/boardaddr.o
Compiling: src/buttons.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/buttons.lst -I./src -std=gnu99 -MD -MP -MF .dep/buttons.o.d src/buttons.c -o src/buttons.o
In file included from src/buttons.c:16:0:
src/buttons.h:12:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
src/buttons.h:13:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
In file included from src/buttons.c:17:0:
src/shiftregister.h:22:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
src/buttons.c:25:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
Compiling: src/diagled.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/diagled.lst -I./src -std=gnu99 -MD -MP -MF .dep/diagled.o.d src/diagled.c -o src/diagled.o
Compiling: src/rs485.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/rs485.lst -I./src -std=gnu99 -MD -MP -MF .dep/rs485.o.d src/rs485.c -o src/rs485.o
Compiling: src/shiftregister.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/shiftregister.lst -I./src -std=gnu99 -MD -MP -MF .dep/shiftregister.o.d src/shiftregister.c -o src/shiftregister.o
In file included from src/shiftregister.c:8:0:
src/shiftregister.h:22:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
src/shiftregister.c:30:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]
Compiling: src/waterfallswing.c
avr-gcc -c -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/waterfallswing.lst -I./src -std=gnu99 -MD -MP -MF .dep/waterfallswing.o.d src/waterfallswing.c -o src/waterfallswing.o
src/waterfallswing.c:8:0: warning: "F_CPU" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
In file included from src/waterfallswing.c:12:0:
src/waterfallswing.h:14:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
src/waterfallswing.h:15:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
In file included from src/waterfallswing.c:13:0:
src/shiftregister.h:22:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
In file included from src/waterfallswing.c:15:0:
src/buttons.h:12:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
src/buttons.h:13:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
src/waterfallswing.c:117:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
Linking: solenoid_controller.elf
avr-gcc -mmcu=atmega128 -I. -g -DF_CPU=16000000UL -Os -mcall-prologues -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=src/boardaddr.o -I./src -std=gnu99 -MD -MP -MF .dep/solenoid_controller.elf.d src/boardaddr.o src/buttons.o src/diagled.o src/rs485.o src/shiftregister.o src/waterfallswing.o --output solenoid_controller.elf -Wl,-Map=solenoid_controller.map,--cref -lm
Creating load file for Flash: solenoid_controller.hex
avr-objcopy -O ihex -R .eeprom solenoid_controller.elf solenoid_controller.hex
Creating load file for EEPROM: solenoid_controller.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 -O ihex solenoid_controller.elf solenoid_controller.eep
avr-objcopy: --change-section-lma .eeprom=0x0000000000000000 never used
avrdude -p m128 -B 50 -P usb -c dragon_isp -U flash:w:solenoid_controller.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.16s
avrdude: Device signature = 0x1e9702
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "solenoid_controller.hex"
avrdude: input file solenoid_controller.hex auto detected as Intel Hex
avrdude: writing flash (1796 bytes):
Writing | ################################################## | 100% 4.53s
avrdude: 1796 bytes of flash written
avrdude: verifying flash memory against solenoid_controller.hex:
avrdude: load data flash data from input file solenoid_controller.hex:
avrdude: input file solenoid_controller.hex auto detected as Intel Hex
avrdude: input file solenoid_controller.hex contains 1796 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 4.98s
avrdude: verifying ...
avrdude: 1796 bytes of flash verified
avrdude: safemode: Fuses OK (E:FD, H:99, L:DE)
avrdude done. Thank you.
boxysean-mbpr:solenoid-controller boxysean$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment