Skip to content

Commit

Permalink
Fix asavr command for asavr 5.50
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed Oct 13, 2023
1 parent 66c6712 commit 7f174f6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ ifeq ($(MCU),t212)
# attiny212 flash 0x0000-0x07ff
CRC16ADDR=0x07fe
DEFSFILE=tn212def.asm
else ifeq ($(MCU),t412)
# attiny412 flash 0x0000-0x0fff
CRC16ADDR=0x0ffe
DEFSFILE=tn412def.asm
else
$(error Unrecognized MCU value)
endif

Expand All @@ -28,7 +23,7 @@ program: $(PROJECT_FLASH).hex $(PROJECT_FUSES).hex

$(PROJECT_FLASH).hex: main.asm
# add -i ".list" before -i ".include '$(DEFSFILE)'" to see it in the listing output
asavr -l -p -w -i ".include '$(DEFSFILE)'" -o $(PROJECT_FLASH) main.asm
asavr -l -p -w -i ".include '$(DEFSFILE)'" $(PROJECT_FLASH) main.asm
aslink -i $(PROJECT_FLASH)
# srec_cat adds crc16 (requires srecord 1.64 or later)
srec_cat $(PROJECT_FLASH).ihx -intel -CRC16_Big_Endian $(CRC16ADDR) -broken -o $(PROJECT_FLASH).hex -intel -line-length=76 -crlf
Expand Down

0 comments on commit 7f174f6

Please sign in to comment.