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

avr_isp: add read calibration byte decoder. Add poll RDY/nBSY flag decoder. #113

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

atoomnetmarc
Copy link
Contributor

Hi!

I added decoding of the calibration byte read and the polling of the RDY/nBSY flag to the avr_isp decoder.

@@ -223,6 +242,10 @@ def handle_command(self, cmd, ret):
self.handle_cmd_read_fuse_high_bits(cmd, ret)
elif cmd[:3] == [0x50, 0x08, 0x00]:
self.handle_cmd_read_extended_fuse_bits(cmd, ret)
elif cmd[:3] == [0x38, 0x00, 0x00]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand how this set of if/elif is sorted (by... alphabetical function name ?) but it doesn't look like your additions quite fit where they should

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a commit that sorts the 'elif cmd[:3]' based on the 3-byte value.

@fenugrec
Copy link
Contributor

fenugrec commented Mar 4, 2024

as stated in IRC, needs corresponding PR in tests

@atoomnetmarc
Copy link
Contributor Author

as stated in IRC, needs corresponding PR in tests

Give me some time and I will try to figure out how to make a test.

atoomnetmarc added a commit to atoomnetmarc/sigrok-dumps that referenced this pull request Mar 5, 2024
atoomnetmarc added a commit to atoomnetmarc/sigrok-test that referenced this pull request Mar 5, 2024
@atoomnetmarc
Copy link
Contributor Author

as stated in IRC, needs corresponding PR in tests

Well, I think I got a test running with a new dump.

[marc@domotica sigrok-test]$ LD_LIBRARY_PATH=/usr/local/lib ./decoder/pdtest -r -v -r avr_isp
...
avr_isp/atmega48/annotation ................................................ OK

How did I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants