Hello
Today i try to flashing my ATMEGA644p with the following line:
xc3sprog -c FT2232H -v -p 1 ATMEGATEST.hex:w
as an responce comes:
Using built-in device list
Using cablelist.txt
Cable FT2232H type ftdi VID 0x1e7c PID 0x000b dbus data 00 enable 0b cbus data 00 data 00
Could not open FTDI device (using libftdi): device not found
FTD2XX/WIN: Can't set VID/PID to 1e7c:000b. Expect failure
Using FTD2XX, Using JTAG frequency 7.500 MHz from undivided clock
JTAG chainpos: 1 Device IDCODE = 0x6960a03f Desc: ATMEGA644p
Unknown device
USB transactions: Write 8 read 5 retries 0
But the ATMEGA644p is in the built in device list.
Is this an Bug or an Problem in the Command line?
P.S. The FPGA and the Config Flash in the same JTAG-Chain can programm without problems.
Use "javr" for programming AVR.
wow that was fast responce...
ok i try this:
javr -c FT2232H -v -p 1 ATMEGATEST.hex
and i get this:
*Allocated flash buffer of 128K
Reading Flash Data from ATMEGA_TEST.hex
:10E000000C943E700C945B700C945B700C945B7081
Invalid flash data
Error Opening Eeprom File: ATMEGATEST or ATMEGATEST.eep
Release $Rev: 707 $
Please provide feedback on success/failure/enhancement requests! Check Sourceforge SVN!
Cable FT2232H type ftdi VID 0x1e7c PID 0x000b dbus data 00 enable 0b cbus data 00 data 00
Could not open FTDI device (using libftdi): device not found
FTD2XX/WIN: Can't set VID/PID to 1e7c:000b. Expect failure
Using FTD2XX, Using JTAG frequency 3750000 from undivided clock
Using built-in device list
IDCODE: 0xd5046093 Desc: XCF04S IR length: 8
IDCODE: 0x6960a03f Desc: ATMEGA644p IR length: 4
IDCODE: 0x11c1a093 Desc: XC3S250E IR length: 6
ATMEL Unknown, Rev G with 0K Flash, 0 Bytes EEPROM and 0 Bytes RAM
Supported devices: ATMega128 ,ATMega64 ,ATMega32 ,ATMega16 ,ATM............*
Any Ideas?
A, I never Had a ATMEAGA644, so it is not supported. Probably no big deal to add...
That would be nice, because in the Devicelist it already stands as a supported device.
And what does "Invalid flashdata" mean?
Must the data for the Flash have a specific format?
Devicelist mean decode the JTAG list. But not implement the flash algo. I don't use the AVR any longer, so JAVR is in maintainance mode. I accept resonable patches, but don't work any longer without own need. Have a look at javr.h and the lists there. It should be no big deal to add the 644. I don't have that part, so I also refrain to write code without any possibility to tets.