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

After updating to the latest version, I can't flash my AVR64DA28 #79

Open
avrnerdz opened this issue Mar 12, 2021 · 3 comments
Open

After updating to the latest version, I can't flash my AVR64DA28 #79

avrnerdz opened this issue Mar 12, 2021 · 3 comments

Comments

@avrnerdz
Copy link

Traceback (most recent call last):
File "/usr/local/bin/pyupdi", line 8, in
sys.exit(_main())
File "/usr/local/lib/python3.8/dist-packages/updi/pyupdi.py", line 111, in _main
if not _process(nvm, args):
File "/usr/local/lib/python3.8/dist-packages/updi/pyupdi.py", line 136, in _process
return _flash_file(nvm, args.flash)
File "/usr/local/lib/python3.8/dist-packages/updi/pyupdi.py", line 151, in _flash_file
nvm.write_flash(start_address, data)
File "/usr/local/lib/python3.8/dist-packages/updi/nvm.py", line 111, in write_flash
return self._write_mem(address, data, self.device.flash_pagesize, use_word_access=True)
File "/usr/local/lib/python3.8/dist-packages/updi/nvm.py", line 133, in _write_mem
self.application.write_nvm(address, page, use_word_access=use_word_access)
TypeError: write_nvm_v1() got an unexpected keyword argument 'use_word_access'
INFO:phy Closing port '/dev/ttyUSB0'
make: *** [makefile:18: upload] Error 1

@mraardvark
Copy link
Owner

...a symptom of having no test setup and too much avr-diversity.
Any chance you could use pymcuprog instead?

@avrnerdz
Copy link
Author

avrnerdz commented Mar 12, 2021

I've tried pymcuprog, but I've had strange issues with that (appeared no not be cleaning flashing updated code, perhaps I need to issue a separate erase command?) I'll give it another try.
EDIT: I issued a separate erase command before uploading updated code with pymcuprog and that's working fine now.

@mraardvark
Copy link
Owner

Good :)
Erase before write is a much discussed feature...

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