New attiny404 unprogrammable (RSP_ILLEGAL_MCU_STATE) #1666
-
I have a new attiny404 which I've tried programming with both a HV UPDI programmer and a DIY/arduino version, but both encounter the same error message: I've been able to program attiny404s in the past, so my suspicion is that this particular one is in some way broken. On the PCB 5V is shared with the MCU and two low power LEDs, so I doubt that's relevant. I've tried avrdude -c jtag2updi -P COM4 -b 115200 -p t404 -e -vvvv
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
ElTangas/jtag2updi#66 (comment)
|
Beta Was this translation helpful? Give feedback.
-
Thanks, I missed that before. I've modified the make.bat file and built the latest version of jtag2updi with DISABLE_HOST_TIMEOUT defined. Unfortunately, after updating the arduino UPDI programmer I get the same response as before. As a sanity check I tried re-programming a known working attiny404 and there were no issues. Is it weird that I get the same error regardless of the commands entered? (programming, erasing, terminal, etc.) |
Beta Was this translation helpful? Give feedback.
-
Problem solving tips
For JTAG2UPDI, this error and an additional status 0x00 pair are output from:
This system_status is obtained directly from ATtiny404 at the beginning of the "JTAG2::enter_progmode" function.
Under normal circumstances, this value will never be zero. There are several possible reasons for this.
|
Beta Was this translation helpful? Give feedback.
-
I can only think that the chip is fried. But you can try the HV UPDI method mentioned by @askn37. If still not working, then the chip is probably damaged. I will close this issue now. Please re-open if you find that there is an issue with avrdude later. BTW, other than jtag2updi, you can also try serialupdi. |
Beta Was this translation helpful? Give feedback.
-
Brilliant analysis @askn37 - Thank you |
Beta Was this translation helpful? Give feedback.
-
Thank you for such a thorough answer. Since I've already tried the high voltage option I'm going to assume it's simply broken. |
Beta Was this translation helpful? Give feedback.
-
Convert to Q&A first. Later will update Wiki to show users how to troubleshoot jtag2updi and updi related issues. Later we may add serialupdi too. |
Beta Was this translation helpful? Give feedback.
-
Added this to Wiki FAQ page. |
Beta Was this translation helpful? Give feedback.
Problem solving tips
For JTAG2UPDI, this error and an additional status 0x00 pair are output from:
https://github.com/ElTangas/jtag2updi/blob/07be876105e0b9cfedf2723b0ac88780bcae50d8/source/JTAG2.cpp#L249-L251
This system_status is obtained directly from ATtiny404 at the beginnin…