Date:2011-03-11 20:24:49 (8 years 8 months ago)
Author:Werner Almesberger
Commit:f87bdce41f2b24efa3de561ecaa1ff2fcbe78906
Message:atusb/fw/Makefile: added auxiliary Flash programming target (for development)

- Makefile (prog-app): flash the application, without the boot loader
- Makefile (prog-read): retrieve the Flash content
Files: atusb/fw/Makefile (2 diffs)

Change Details

atusb/fw/Makefile
126126# Note: when trying to program 0xef, we get back 0x2f, failing
127127# verification. So we just program 0x2f.
128128
129prog-app:
130        ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_atusb -e \
131          -U flash:w:atusb.bin:r \
132          -U lfuse:w:0x60:m
133
129134prog:
130135        ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_atusb -e \
131136          -U flash:w:boot.hex:i \
...... 
133138          -U hfuse:w:0xd8:m \
134139          -U lock:w:0x2f:m
135140
141prog-read:
142        ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_atusb \
143          -U flash:r:mcu.bin:r
144
136145on:
137146        ssh $(HOST) poke 0x10010318 4
138147

Archive Download the corresponding diff file



interactive