-
Notifications
You must be signed in to change notification settings - Fork 148
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
Comments
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. |
@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. |
I too came across this bug.
it's expecting the device id from the 412 (1E9223), and complaining when it finds the device id of the 402 (1E9227). What's the recommended fix? Comment out the exception as above? |
@replaysMike try to build for another chip in this line. |
@berkut0 that was the first thing I checked, bought all my stock from DigiKey. It looks like a 402 to me :) EDIT: I see what the issue is - I selected the board as |
@replaysMike I have already written above that there is something wrong with this error message, it lacks verbosity. It would be cool if the developers improved this a bit. |
Please, by all means let me know how I can improve the error message! Like, what could I have changed the messages to that would be clear? I've put a considerable amount of thought into how to make better error messages, because I see so many awful ones every day. But right here sort of illustrates why crap messages exist. The person who wrote the message always writes what they think will be clear, that's why we wrote what we did. But we are also obviously out of touch with reality and with how others think. I am a zealot over crap error messages or absent error messages (there are a lot of things that you can compile and which will never possibly do what you want, that can be determined at compile time; stock core lets this through anyway; my core tries to error on anything where your code attempts to do something is is destined to fail at. h more stuff) all in the name of ensuring that as many problems as possible can be detected and fixed without having to upload to hardware (this includes how on the Arduino IDE, with my core selected (either this or DxC), the warnings menu doesn't let you turn off warnings - that setting is ignored. >90% of warnings come from code that generates incorrect behavior, and it's far harder debug odd behavior on hardware than a compile error with an error message. I'm pretty sure there are people who dislike me for the things I've said about another upload tools error messages, so if my error messages are bad, that is absolutely unacceptable.
So please report bad error messages - and how I can make them less bad Because at present, I cannot determine what was wrong and should be fixed.... I thought that there was no clearer way to say what I said, and have written long screeds about how much I hate the way sig mismatches are handled by avrdude on classic AVRs. I do not consider it acceptable that my messages are found wanting, this must be corrected. |
Hi @SpenceKonde ! It's all right, don't worry. For example. |
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
:I got the idea from a message I got when I set the logging level to debug:
Interestingly, it only differs in one number.
when you have received messages:
there might be a workaround, but I think this is the bug
Chip: ATtiny 416
The text was updated successfully, but these errors were encountered: