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

pyupdi suddenly stops working on arch linux #87

Closed
wimalopaan opened this issue Dec 28, 2021 · 8 comments
Closed

pyupdi suddenly stops working on arch linux #87

wimalopaan opened this issue Dec 28, 2021 · 8 comments

Comments

@wimalopaan
Copy link

I use pyupdi for years on arch linux without problems.

I don't know which update here produces this error, but actually it is broken:

~/.local/bin/pyupdi -d avr128da32 -c /dev/ttyUSB0  -f multiAdapter_01.hex                1  ST 3   master
Device info: {'family': 'AVR', 'nvm': 'P:2', 'ocd': 'D:1', 'osc': '3', 'device_id': '1E9709', 'device_rev': '1.7'}
Traceback (most recent call last):
File "/home/lmeier/.local/bin/pyupdi", line 33, in <module>
sys.exit(load_entry_point('pyupdi==0.0.0', 'console_scripts', 'pyupdi')())
File "/home/lmeier/.local/lib/python3.10/site-packages/updi/pyupdi.py", line 111, in _main
if not _process(nvm, args):
File "/home/lmeier/.local/lib/python3.10/site-packages/updi/pyupdi.py", line 136, in _process
return _flash_file(nvm, args.flash)
File "/home/lmeier/.local/lib/python3.10/site-packages/updi/pyupdi.py", line 151, in _flash_file
nvm.write_flash(start_address, data)
File "/home/lmeier/.local/lib/python3.10/site-packages/updi/nvm.py", line 111, in write_flash
return self._write_mem(address, data, self.device.flash_pagesize, use_word_access=True)
File "/home/lmeier/.local/lib/python3.10/site-packages/updi/nvm.py", line 133, in _write_mem
self.application.write_nvm(address, page, use_word_access=use_word_access)
TypeError: UpdiApplication.write_nvm_v1() got an unexpected keyword argument 'use_word_access'
@mraardvark
Copy link
Owner

@wimalopaan - full support for Dx devices was never added properly before moving over to pymcuprog. Suggest you use that package instead.

@wimalopaan
Copy link
Author

Thank you. Found that project and it works very well!

@mraardvark
Copy link
Owner

Good to hear!

@wimalopaan
Copy link
Author

pymcuprog seems not to work correctly for the DA. It programms only the first time the device corrctly, subsequent flashes do not overwrite existing programs. Strange ...

@wimalopaan
Copy link
Author

To verify I would like to get this piece working again, because it was successful all the time as well with the DA devices.

@wimalopaan
Copy link
Author

Maybe a python-3.10 issue?

@mraardvark
Copy link
Owner

are you using --erase or erasing between writes? (pymcuprog does not erase without being told to)

@mraardvark mraardvark reopened this Dec 28, 2021
@wimalopaan
Copy link
Author

Ok, thanks.
I switch to the pre-release with the --erase flag.

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