Jan 112012
Steps in programming the wireless receiver:
- Connect both USB and the AVR ISP mkII programmer to the board
- Open the Arduino sketch in the Arduino IDE
- Select the “STEIM wireless receiver” from the Board menu
- Compile the code
- This makes a temp directory with the hex file in (e.g. on Linux)
/tmp/buildXXXXX.tmp/wireless_receiver_1_4.cpp.hex - Then use avrdude to burn it to the flash:
avrdude -c avrispmkII -p m328p -P usb -U flash:w:/tmp/build4971464468714801572.tmp/wireless_receiver_1_4.cpp.hex - The output will be something like:
avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e950f 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 "/tmp/build4497645872316412355.tmp/wireless_receiver_1_4.cpp.hex" avrdude: input file /tmp/build4497645872316412355.tmp/wireless_receiver_1_4.cpp.hex auto detected as Intel Hex avrdude: writing flash (8492 bytes): Writing | ################################################## | 100% 2.64s avrdude: 8492 bytes of flash written avrdude: verifying flash memory against /tmp/build4497645872316412355.tmp/wireless_receiver_1_4.cpp.hex: avrdude: load data flash data from input file /tmp/build4497645872316412355.tmp/wireless_receiver_1_4.cpp.hex: avrdude: input file /tmp/build4497645872316412355.tmp/wireless_receiver_1_4.cpp.hex auto detected as Intel Hex avrdude: input file /tmp/build4497645872316412355.tmp/wireless_receiver_1_4.cpp.hex contains 8492 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 2.43s avrdude: verifying ... avrdude: 8492 bytes of flash verified avrdude: safemode: Fuses OK avrdude done. Thank you.