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 #51497] avrdude not writing high byte using linuxgpio when data byte count is less than 0x10 #458

Closed
avrs-admin opened this issue Dec 11, 2021 · 4 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@avrs-admin
Copy link

Mike Brandon
Tue 18 Jul 2017 03:07:29 PM UTC
Programmer hardware: linuxgpio
Device type: m2560, m12834

Using linuxgpio and tested on m2560 and m1284 chips:

When a line in the hex file has less than 0x10 data bytes, avrdude does not write the high byte at the specified memory location as 0xFF. This in turn results in a verification error.

Attached is a sample hex file that was used to produce this result as well as logic captures when using avrdude and Atmel Studio 7.

Avrdude results in a verification error while Atmel Studio does not. It appears that the difference is that Atmel Studio will write 0xFF to the high byte while avrdude moves on to the next memory location and does not write a high byte.

file #41233: blink-mod-bitbang-read.PNG
file #41232: blink-2560-mod.hex
file #41231: blink-2560-mod-logic-avrisp-write.PNG
file #41230: blink-2560-mod-logic-avrdude-gpio-write.PNG

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

@avrs-admin
Copy link
Author

Mike
Wed 01 Nov 2017 01:30:37 PM UTC

Is this a valid issue that I have described or, due to my general inexperience, am I trying to do something that should not work?

@avrs-admin
Copy link
Author

Joerg Wunsch <joerg_wunsch>
Wed 01 Nov 2017 02:06:54 PM UTC

Quite possible this might be valid.

My guess is that linuxgpio simply isn't used very widely by many people.

@mcuee
Copy link
Collaborator

mcuee commented Jun 20, 2022

I will give this a try once I set up my Raspberry Pi 3B+ to test linux-gpio and linux-spi.

@mcuee mcuee added the unconfirmed Maybe a bug, needs to be reproduced by someone else label Jun 20, 2022
@mcuee mcuee added bug Something isn't working duplicate This issue or pull request already exists 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

This is probably the same as #455 and there is a patch in #455.

I will mark this as a duplicate of #455.

@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
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants