Skip to content

Commit

Permalink
Build using ASxxxx 5.50
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed Oct 13, 2023
1 parent 8831f4a commit 5e94eb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:

- name: Install asxxxx
run: |
wget --no-verbose --content-disposition https://github.com/6502org/6502.org/blob/849e49b56798da9f81d5f0a6c0a40f84668a5d6d/public/tools/asm/asxv5p40_20211216.zip?raw=true
unzip -q asxv5p40_20211216.zip
wget --no-verbose https://github.com/6502org/6502.org/raw/74f5d0c0f9b73d5e353bde7b3b25ea7f43b527a1/public/tools/asm/asxs5p50.zip
unzip -q asxs5p50.zip
make -C asxv5pxx/asxmak/linux/build all
echo "$PWD/asxv5pxx/asxmak/linux/build" >> $GITHUB_PATH
Expand Down
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)'" -o+$(PROJECT_FLASH) $(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 5e94eb3

Please sign in to comment.