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

Model prodsig for -c dryrun #1522

Merged
merged 3 commits into from
Oct 17, 2023
Merged

Conversation

stefanrueger
Copy link
Collaborator

The -c dryrun programmer initialises memory to plausible values. This PR models the prodsig memory.

avrdude -qqc dryrun -p avr32da28 -t
avrdude> read prodsig
0000  1e 95 34 ff 54 54 ff ff  ff ff ff ff ff ff ff ff  |..4.TT..........|
0010  55 54 53 52 51 50 4f 4e  4d 4c 4b 4a 49 48 47 46  |UTSRQPONMLKJIHGF|
0020  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0030  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0040  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0050  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0060  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0070  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|

The serial number was set to UTSR... and the tempsense calibration constants set to T.

@mcuee mcuee added the enhancement New feature or request label Oct 16, 2023
@mcuee
Copy link
Collaborator

mcuee commented Oct 16, 2023

This PR should be fine.

PS C:\work\avr\avrdude_test\avrdude_bin> function prompt {$null}
PS> .\avrdude_pr1522 -C .\avrdude_pr1522.conf -c dryrun -p m328pb -qqT "read sigrow"
0000  1e 55 95 ff 16 ff ff ff  ff ff ff ff ff ff ff ff  |.U..............|
0010  ff ff ff ff ff ff ff ff                           |........        |

PS>.\avrdude_pr1522 -C .\avrdude_pr1522.conf -c dryrun -p m4809 -qqT "read prodsig"
0000  1e 96 51 55 54 53 52 51  50 4f 4e 4d 4c ff ff ff  |..QUTSRQPONML...|
0010  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0020  54 54 ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |TT..............|
0030  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0040  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0050  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0060  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0070  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|

PS>.\avrdude_pr1522 -C .\avrdude_pr1522.conf -c dryrun -p t85 -qqT "read prodsig"
avrdude_pr1522 error: (read) prodsig memory type not defined for part ATtiny85

PS>.\avrdude_pr1522 -C .\avrdude_pr1522.conf -c dryrun -p m2560 -qqT "read prodsig"
avrdude_pr1522 error: (read) prodsig memory type not defined for part ATmega2560

PS>.\avrdude_pr1522 -C .\avrdude_pr1522.conf -c dryrun -p t104 -qqT "read prodsig"
0000  1e 55 90 ff 0b ff ff ff  ff ff ff ff ff ff ff ff  |.U.. ...........|

@stefanrueger
Copy link
Collaborator Author

Now the position of osccal (o) and oscerr (e) memories are also visible within prodsig

$ avrdude -qqc dryrun -p atmega4808 -T"d prodsig"
0000  1e 96 50 55 54 53 52 51  50 4f 4e 4d 4c ff ff ff  |..PUTSRQPONML...|
0010  ff ff ff ff ff ff ff ff  6f 6f 4f 4f ff ff ff ff  |........ooOO....|
0020  54 54 65 65 45 45 ff ff  ff ff ff ff ff ff ff ff  |TTeeEE..........|
0030  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0040  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0050  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0060  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0070  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|

@stefanrueger stefanrueger merged commit f8b5137 into avrdudes:main Oct 17, 2023
10 checks passed
@stefanrueger stefanrueger deleted the prodsig-dryrun branch October 17, 2023 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants