Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug #43811] Writing a hex file using a ft2232H programmer fails when poll after a page write does not come back as expected. #364

Closed
avrs-admin opened this issue Dec 10, 2021 · 6 comments
Labels
invalid This doesn't seem right

Comments

@avrs-admin
Copy link

Jack Gassett jack.gassett@gadgetfactory.net
Sat 13 Dec 2014 08:13:32 AM UTC

I found this message that describes exactly the error that I am experiencing:
https://lists.nongnu.org/archive/html/avrdude-dev/2012-05/msg00013.html

I looked for a patch for this issue but was not able to find one. Has the patch been published anywhere?

file #32658: avrdude-poll-failure.txt

This issue was migrated from https://savannah.nongnu.org/bugs/?43811

@mcuee
Copy link
Collaborator

mcuee commented Jun 5, 2022

Not so sure if this is still relevant or not.

List mail link:
https://lists.nongnu.org/archive/html/avrdude-dev/2012-05/msg00013.html


From: Hannes Weisbach
Subject: Re: [avrdude-dev] FT2232 issues - ident yes, program no
Date: Thu, 10 May 2012 13:48:30 +0200

I believe the issue is related to the polling following a page write - the
software reads the last byte of the page, until it is read back correctly, thus
the page is programmed and we can continue to program the next page (or finish
up). There are multiple problems with this code:
a) a page may not be programmed up until the last byte
b) a value 0xff is indistinguishable from un-programmed flash

I have worked on the page write code for a while now and my changes include a
fix for both problems and I tested the code for a while now. I actually wanted
to rework the flash read routine too and submit all changes together. However,
I could submit a patch just fixing the write routine, if necessary.
To check, if this really is your problem you can compile avrdude with debug
symbols and check in gdb. If I'm correct, a loop located in avrftdi.c:917 will
never be left.

Best regards,
Hannes Weisbach

@mcuee
Copy link
Collaborator

mcuee commented Jun 5, 2022

Maybe the patch in the following issue can fix this.

@mcuee
Copy link
Collaborator

mcuee commented Jun 8, 2022

I can not write to my ATmega2560 either with the FT2232H based Jtagkey-2. Maybe I will check if it is because of this or becauses of #474.

@mcuee
Copy link
Collaborator

mcuee commented Jun 8, 2022

I can confirm that my issue is with #474. The patch there fixed my issues with both read and write of ATmega2560 using FT2232H based JTAGKey-2.

@mcuee mcuee added the unconfirmed Maybe a bug, needs to be reproduced by someone else label Jun 20, 2022
@mcuee
Copy link
Collaborator

mcuee commented Jun 25, 2022

Most likely this issue has been fixed and no longer valid.

@mcuee mcuee added invalid This doesn't seem right and removed unconfirmed Maybe a bug, needs to be reproduced by someone else labels Jul 10, 2022
@mcuee
Copy link
Collaborator

mcuee commented Jul 10, 2022

I will close this as invalid for now. Please re-open when the issue occurs.

@mcuee mcuee closed this as completed Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants