-
Notifications
You must be signed in to change notification settings - Fork 73
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
Cannot write fuses at all #61
Comments
Steps to reproduce: pyupdi.py -d tiny1617 -c /dev/ttyUSB0 -fs 128:0x2a |
Mark, I also had the problem, so I tried your version. It did not give the python error anymore, but failed to program the fuse. It turns out that device.fuses_address is added twice. Once in updi/application.py write_fuse_v0() and also in updi/nvm.py write_fuse(). Removing one of them fixed it. My command line: |
First - sorry for all the mess :/ I have had little spare time to work on this lately (a busy summer) and added 24-bit DA support in haste (still has to be implemented properly) and forgot that fuse programming had been added. |
@mraardvark can you give a example of pymcuprog? I am trying to use my raspi0w as the tool. my pyupdi works for
|
Yupp, its a tad confusing since "pyupdi" is embedded and thus the "tool" is "uart" with -u specifying which port: |
@mraardvark Thanks for the fast reply looks like my chip isn't in the supported list
Anything I can add to fix this? |
Oh dear. |
@mraardvark anyway to import the config that pyupdi uses since 3216 is supported there? |
No unfortunately the format is very different. |
so in my .local/lib/python3.7/site-packages/device/device.py
That looks like 3216 is already set for something. I don't see a 3217.py anywhere nor does `sudo find / -name 3217' return anything. I also looked for a site package in /usr/lib but those were all dist packages EDIT: I think I found it |
How does this look? I just changed the device ID. I hope it doesn't brick my chip..
|
Should only need a new ID, correct. |
Well? Do you have a brick? :| |
@mraardvark No! I am brick free! I am able to read and write fuses. I am still using pyupdi for writing the flash though. it seems like this pymcuprog is capable of writing flash also, any reason I should switch or stay with pyupdi? pros, cons? Thanks for the very timely support today it was much appreciated. |
Good to hear! I would use pymcuprog, but it has its drawbacks. Here are some arguments: |
I have some things I ran into with pymcuprog. Should I move over to https://github.com/mraardvark/pymcuprog/issues ? |
Sure. Its not quite the right place, but a good enough place to start 👍 |
Hello, I submitted a pull request that fixed the fuse setting problem with pyupdi, at least for the tiny1606/7 devices, which is all I have to test against. Hopefully it works for everyone. -Jeff |
Super! Thanks @Jeff384 |
Hi,
The -fs option appears broken, at least for attiny 1-series devices,
The text was updated successfully, but these errors were encountered: