## update scripts for latest version of testprogram. ## Raspberry (RPi) tranprant box. Get's IP via DHCP. User pi@raspberry ## ISP-programmer. Blue box. Connected to RPi USB ## RPi powered over micro-USB and AC-dapter ## Connect board to be programmed ## Connect ISP programmer. 2*3 pin header. Red mark to the right. ## Connect serial interface. 1*6 pin header. Black mark to the left ## Note! Green power jumper J100 for board power must be installed. ## Main work is done by script. Run: sudo ./Program-sensor.sh Check LED after 5 sec. Both should be blinking for OK. Example output: avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1ea802 avrdude: erasing chip avrdude: reading input file "stk500boot_v2_mega256rfr2.hex" avrdude: input file stk500boot_v2_mega256rfr2.hex auto detected as Intel Hex avrdude: writing flash (256056 bytes): Writing | ################################################## | 100% 0.00s avrdude: 256056 bytes of flash written avrdude: verifying flash memory against stk500boot_v2_mega256rfr2.hex: avrdude: load data flash data from input file stk500boot_v2_mega256rfr2.hex: avrdude: input file stk500boot_v2_mega256rfr2.hex auto detected as Intel Hex avrdude: input file stk500boot_v2_mega256rfr2.hex contains 256056 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 256056 bytes of flash verified avrdude: safemode: Fuses OK (E:FE, H:98, L:46) avrdude done. Thank you. avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1ea802 avrdude: reading input file "0x98" avrdude: writing hfuse (1 bytes): Writing | ################################################## | 100% 0.00s avrdude: 1 bytes of hfuse written avrdude: verifying hfuse memory against 0x98: avrdude: load data hfuse data from input file 0x98: avrdude: input file 0x98 contains 1 bytes avrdude: reading on-chip hfuse data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of hfuse verified avrdude: reading input file "0x46" avrdude: writing lfuse (1 bytes): Writing | ################################################## | 100% 0.00s avrdude: 1 bytes of lfuse written avrdude: verifying lfuse memory against 0x46: avrdude: load data lfuse data from input file 0x46: avrdude: input file 0x46 contains 1 bytes avrdude: reading on-chip lfuse data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 1 bytes of lfuse verified avrdude: reading input file "0xfe" avrdude: writing efuse (1 bytes): Writing | ################################################## | 100% 0.00s avrdude: 1 bytes of efuse written avrdude: verifying efuse memory against 0xfe: avrdude: load data efuse data from input file 0xfe: avrdude: input file 0xfe contains 1 bytes avrdude: reading on-chip efuse data: Reading | ################################################## | 100% 0.01s avrdude: verifying ... avrdude: 1 bytes of efuse verified avrdude: safemode: Fuses OK (E:FE, H:98, L:46) avrdude done. Thank you. avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1ea802 avrdude: reading input file "0xEF" avrdude: writing lock (1 bytes): Writing | | 0% 0.00s ***failed; Writing | ################################################## | 100% 0.06s avrdude: 1 bytes of lock written avrdude: verifying lock memory against 0xEF: avrdude: load data lock data from input file 0xEF: avrdude: input file 0xEF contains 1 bytes avrdude: reading on-chip lock data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: verification error, first mismatch at byte 0x0000 0x2f != 0xef avrdude: verification error; content mismatch avrdude: safemode: Fuses OK (E:FE, H:98, L:46) avrdude done. Thank you. avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.02s avrdude: Device signature = 0x1ea802 avrdude: erasing chip avrdude: reading input file "rss2-test.avr-rss2" avrdude: input file rss2-test.avr-rss2 auto detected as ELF avrdude: writing flash (57476 bytes): Writing | ################################################## | 100% 20.54s avrdude: 57476 bytes of flash written avrdude: verifying flash memory against rss2-test.avr-rss2: avrdude: load data flash data from input file rss2-test.avr-rss2: avrdude: input file rss2-test.avr-rss2 auto detected as ELF avrdude: input file rss2-test.avr-rss2 contains 57476 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 17.72s avrdude: verifying ... avrdude: 57476 bytes of flash verified avrdude: safemode: Fuses OK (E:46, H:98, L:46) avrdude done. Thank you.