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

Writing to a non zero address results in verify errors #80

Open
bitli opened this issue Mar 13, 2021 · 1 comment
Open

Writing to a non zero address results in verify errors #80

bitli opened this issue Mar 13, 2021 · 1 comment

Comments

@bitli
Copy link
Contributor

bitli commented Mar 13, 2021

Writing an hex file with a non zero base (example 0x200, as produced by the Arduino IDE) on Attiny814 results in verify errors, as it is read back from (0x8000), the base address of the flash (pyupdi:154), not the offset address passed as parameter and calculated at nvm:217
Changing the line pyupdy:154 to
readback = nvm.read_flash(start_address, len(data))
solves the problem apparently.

@mraardvark
Copy link
Owner

Thanks @bitli
Unfortunately I don't have a test setup for pyupdi to verify this. Ah I see you have a PR :)
FYI: If you are interested, pymcuprog is a tested and maintained package that incorporates pyupdi 'backend'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants