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

The error message "Device ID mismatch" seems to be a bug. #1099

Open
berkut0 opened this issue May 10, 2024 · 2 comments
Open

The error message "Device ID mismatch" seems to be a bug. #1099

berkut0 opened this issue May 10, 2024 · 2 comments

Comments

@berkut0
Copy link

berkut0 commented May 10, 2024

The occurrence of this error seems to be a bug, by commenting out part of the code device flashed without any struggle.

in nvmserialupdi.py:

if not self.device_info.get(DeviceInfoKeysAvr.DEVICE_ID) == device_id_read:
    self.logger.warning("ID read ('%06X') does not match expected device id! ('%06X')", device_id_read,
                        self.device_info.get(DeviceInfoKeysAvr.DEVICE_ID))
    # raise ValueError("Device ID does not match")

I got the idea from a message I got when I set the logging level to debug:

WARNING - ID read ('1E9321') does not match expected device id! ('1E9221')

Interestingly, it only differs in one number.

when you have received messages:

Device ID mismatch! Stopping.
Failed programming: uploading error: exit status 1

there might be a workaround, but I think this is the bug

Chip: ATtiny 416

@MX682X
Copy link
Contributor

MX682X commented May 15, 2024

The 1E9321 is the chip signature for the Attiny816. As your selected chip has only less memory and otherwise the same specs, there aren't any complications.
Are you sure you have the correct chip? Where did you order it form? There are cases where chips are getting re-marked, but usually the other way around (marking indicates bigger memory)

@berkut0
Copy link
Author

berkut0 commented May 22, 2024

@MX682X Incredibly, the Chinese factory installed 816 instead of 416. The chip is so small that I didn't check it after receiving the boards. Interesting surprise.

Thanks, that clears things up!

I should point out that the error message is a bit short on detail in such cases.

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

No branches or pull requests

2 participants