-
Notifications
You must be signed in to change notification settings - Fork 139
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
Add AVR-EB parts #1491
Add AVR-EB parts #1491
Conversation
The new fuse
Two-byte fuses are a novelty for AVRDUDE.
|
With this many differences compared to the AVR-EA series we might need a sample chip or two before this can be merged. Bare chips can't be purchased from authorized distributors yet, but perhaps @xedbg has a chip that can be borrowed? Microchip has only published information about the AVR16EB chips, but their AVR-EB product brief page reviles that there will be 8 and 32 kiB versions as well. I'll assume all we need to know would be their 3-byte signature. |
@MCUdude Export / shipping compliance is something that we can't take lightly these days, so even though its 'around the corner' we are subject to the same regulations, so a sample is not something I can do at this stage, I'm afraid. (not sure a CNANO connected to a personal minecraft server with VPN access token would be worth the effort?) |
This PR is what I call predictive programming, ie, going with the published info we have (.atdf), which will require most of the changes here. Maybe @xedbg can test whether this PR can cope with the @xedbg: Is the use and behaviour of the Here the memory info from the .atdf
BTW, I am guessing the IO memory will have the size 0x1040 not 0x103F. This is probably wrong in all AVR-Dx and AVR-Ex .atdf's. Any chance to get someone to correct this? I still don't know how to submit an issue such as this one. |
@stefanrueger - bootrow is a single page which is only accessible (from the MCU) to code running in the boot area. When the device is unlocked, UPDI has full read/write access, but when the device is locked UPDI has no access (unlike userrow there is no 'special' way to re-write it from UPDI) |
@xedbg Thanks - vvv useful. I have updated the documentation. @MCUdude I was wondering whether you could eyeball the changes in this PR against regression and perhaps test whether UPDI programming still works with other modern chips. I would then merge this PR as the structural changes in AVRDUDE would defo be needed for 16 fuses (not 10) and for the I imagine the actual UPDI progamming will be a relatively simple change in serialupdi.c when someone has the part. |
Simple test under Windows.
|
Simple regression tests using AVR64EA48.-- no regression compared to git main.
|
I think this PR can be merged. We can always carry out real tests when demo boards are available. |
Fixes #1489
This is a quick shot at adding the
bootrow
memory andpdicfg
fuse. Needs a careful review. @MCUdude?It is not clear how the
bootrow
memory should be read using serial updi.I don't have the data sheets. @dbuchwald?Here is an idea how to add
bootrow
for the various jtagXX_updi programmers:Is that a sensible approach, @MCUdude? Would need to be done dozen times.