USB-CAN
Jump to navigation
Jump to search
STEP ONE
MProg.exe
use USB_CAN.ept on Desktop
STEP TWO
Atmel parallel programmer (STK200 complient?) C:\Documents and Settings\eche027\Desktop\firm>avrdude -c stk200 -p ATmega162 -U flash:w:firmware_1.07.hex
C:\Documents and Settings\eche027\Desktop\firm>avrdude -c stk200 -p ATmega162 -U flash:w:firmware_1.07.hexavrdude: AVR device initialized and ready to accept instructions
Reading || ################################################## || 100% 0.02s
avrdude: Device signature = 0x1e9404
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 "firmware_1.07.hex"
avrdude: input file firmware_1.07.hex auto detected as Intel Hex
avrdude: writing flash (5178 bytes):
Writing || ################################################## || 100% 2.56s
avrdude: 5178 bytes of flash written
avrdude: verifying flash memory against firmware_1.07.hex:
avrdude: load data flash data from input file firmware_1.07.hex:
avrdude: input file firmware_1.07.hex auto detected as Intel Hex
avrdude: input file firmware_1.07.hex contains 5178 bytes
avrdude: reading on-chip flash data:
Reading || ################################################## || 100% 2.25s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x0c ! 0xff
avrdude: verification error; content mismatch
avrdude: safemode: lfuse changed! Was 62, and is now ff
Would you like this fuse to be changed back? [y/n] n
avrdude: safemode: hfuse changed! Was 99, and is now ff
Would you like this fuse to be changed back? [y/n] n
avrdude: safemode: Fuses OK
avrdude done. Thank you.
C:\Documents and Settings\eche027\Desktop\firm>=
FAULTS
1)
SJA1000 Chip Select (pin4) needs grounding. Using a resistor or direct short to groud works (HW solution). SW solution preferred - output LOW Signal from Atmel PC7
-work our how to compile for atmel (winavr or equiv)
-program the fix.
2)
V1.07 has baud rate irregularity, see http://www.mictronics.de/projects/usb-can-bus/ user comments ~jan2011
-- Main.PhilipCourt - 2011-04-20