Skip to content

New attiny404 unprogrammable (RSP_ILLEGAL_MCU_STATE) #1666

Closed Answered by askn37
nhansendev asked this question in Q&A
Discussion options

You must be logged in to vote

Problem solving tips

Raw message:
0xa5 0x00
Illegal MCU state: Stopped

avrdude jtagmkII_program_enable() [jtagmkII.c:1111] warning: bad response to enter progmode command: RSP_ILLEGAL_MCU_STATE

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

    default:
      // If we're somehow NOT in programming mode now, that's no good - inform host of this unfortunate state of affairs
      set_status(RSP_ILLEGAL_MCU_STATE, system_status); // return whatever system status caused this error

This system_status is obtained directly from ATtiny404 at the beginnin…

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mcuee
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
4 participants
Converted from issue

This discussion was converted from issue #1660 on February 06, 2024 11:39.