Menu

#21 Flashing ATMEGA644p at JTAG Position 1

Error
open
nobody
None
5
2017-03-30
2017-03-30
No

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.

Discussion

  • Uwe Bonnes

    Uwe Bonnes - 2017-03-30

    Use "javr" for programming AVR.

     
  • Daniel Mothes

    Daniel Mothes - 2017-03-30

    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?

     
  • Uwe Bonnes

    Uwe Bonnes - 2017-03-30

    A, I never Had a ATMEAGA644, so it is not supported. Probably no big deal to add...

     
  • Daniel Mothes

    Daniel Mothes - 2017-03-30

    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?

     
  • Uwe Bonnes

    Uwe Bonnes - 2017-03-30

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.