-
Notifications
You must be signed in to change notification settings - Fork 145
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
Support jtag2updi -U EEPROM write #1318
Conversation
Yes I will try this over the weekend. |
@MCUdude |
The following simple test shows this PR is good.
Another test
|
@stefanrueger , the patch's good to me. BTW, you also can set page_size = 2/4/8/16 for Dx series to speed up EEPROM writing. |
avrdude.conf tends to describe a part as in the data sheet
Is that a thing? How big is EEPROM and how big is the time saving? If there is a case for speeding up EEPROM write, perhaps best to change the code base and issue a PR? |
It's not in the spec/datasheet, but it does work, I mention it for others to save time. |
| to save time Do you have numbers? Would be interesting to see if the effect is substantial and/or worthwhile |
Default:
With page_size=16:
|
@llinjupt OK, if you want to pursue this here is what needed doing. Test all updi programmers whether they cope with paged EEPROM read/write for DX-parts: $ avrdude -c*/At | grep prog_modes.PM_UPDI
.prog serialupdi prog_modes PM_UPDI
.prog jtag3updi prog_modes PM_UPDI
.prog xplainedpro_updi prog_modes PM_UPDI
.prog xplainedmini_updi prog_modes PM_UPDI
.prog atmelice_updi prog_modes PM_UPDI
.prog powerdebugger_updi prog_modes PM_UPDI
.prog pickit4_updi prog_modes PM_UPDI
.prog snap_updi prog_modes PM_UPDI
.prog pkobn_updi prog_modes PM_UPDI
.prog jtag2updi prog_modes PM_UPDI If so, then identify all the places in the code base where the decision for calling paged vs byte access is made and modify the I have no doubt that setting page_size for DX-part EEPROM memories works in your case but we need to guard against unwanted side effects for other programmers. |
@stefanrueger Further improvements for EEPROM can be dealt with another PR. |
Supposed to fix #1128
@llinjupt @mcuee Could you give this a try?