-
Notifications
You must be signed in to change notification settings - Fork 139
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
Missing TPI, JTAG and UPDI support for the STK600 #1047
Comments
It looks like PDI and TPI are implemented through the I'm not sure if the STK600 us using the jtagmkii or jtag3/EDBG protocol for its JTAG implementation. |
From the command line we can see avrdude only supports STK600 in three modes (ISP, HVSP and PP), that should include TPI as well. So only JTAG, PDI and uPDI are not supported yet.
|
This line can be found in the Line 3747 in affe4cb
|
@MCUdude |
As per AVR079. All AVR8 jtag commands start with CMD_JTAG_AVR (0x90) |
AVR079 was published in April 2008 so it does not document uPDI support. I tend to think you are right. |
UPDI certainly not, as nobody knew about it by the time the STK600 was introduced (when I wrote that implementation). I thought JTAG were supported, but offhand, I'm not sure. I do own an STK600 (and a number of target and routing boards) so I could look at that. |
It would be interesting to know how which protocol they used (extended/undocumented jtagmkii, edbg/jtag3) to achieve UPDI support! AVR079 has not been updated and the online docs regarding the STK600 reveals very few details.
I was thinking about getting one for testing purposes, but I figured it was way too expensive to justify it for such a limited use. Also, the cards that sits on top also cost an arm and a leg, so even if I had an STK600 I would probably only use it as a programmer for other, external targets. |
Agreed. As neat as the idea with these various routing and socket boards was, the overall price of all that prevented the STK600 from becoming a success as the STK500 turned out to be. Bottom line, I think it's a niche only anyway. |
Guess what, I have an STK600 now!
|
I can get JTAG to work (once) with Xmegas, but I'm not able to figure out how to make the STK600 speak JTAG with "classic" AVRs. ATmega2560 connected to STK600 using JTAG:
|
I can confirm that the STK600 can't be used to program over JTAG using Avrdude:
However, it works with PDI:
|
I decided to briefly look into this again. It appears that Avrdude supports STK600 TPI programming, even though the documentation doesn't explicitly state that TPI programming works. I've not succeeded in connecting an external TPI device to my STK600 (I only own an STK600 + an ATmega2560 board), and the official documentation states that it's not recommended to use it as a dedicated TPI programmer because it outputs 12V on the reset line. @dl8dtl since you have various routing cards and adapter boards, can you check whenever the Avrdude supports TPI programming using the STK600 if you're using an on-board socket like the
It would be great if you could look into this. According to the docs (here and here, It's using the JTAGmkII protocol, but (let me quote):
|
@dl8dtl do you think you have time to look at this issue before Avrdude v7.2 is ready to be released? UPDI support isn't that important, but it would be great to get JTAG and TPI to work. |
FYI, I saw a Chinese company started to produce an STK600 clone (only the programmer portion). So I have ordered it and hopefully it would work (to arrive in about one month's time). |
@mcuee do you have a link? |
Not so sure if you have used Taobao or not. You may have to use Google Translate. STK600 without High Voltage programming. |
The shop has some other interesting stuff. |
Never judge a book by the cover, but the bottom pic just looks like an AVRISP mkII does, doesn't it? |
Plastic tooling is expensive, so they reuse the same housing for everything: stk500v2 clone, JTAG ICE 1 clone, AVRISP mkIi clone and now STK600 clone. |
USB type B 2.0 in 2024? |
Haha, we are talking about clones of legacy tools in reality here. An electronics engineer will have to have all kinds of USB cables in reality. In fact for testing avrdude, I have different types of USB cables, including some non-stanard ones. I use a USB Type C to 4-ports USB Type A hub with my laptop for testing.
Then for other Open Source projects, I have more.
|
~~I don't own an STK600 board, so I can't confirm this.
But from the looks of it, the STK600 can only be used in ISP, HVPP or HVSP mode with Avrdude.
The STK600 itself also supports TPI, PDI, and UPDI. I'm not sure it supports high-voltage UPDI though...~~
Avrdude should already support TPI and JTAG programming, but I have not been able to get TPI programming working with my STK600 board, and JTAG only works when connected to XMEGA targets. UPDI support was never added to Avrdude
The text was updated successfully, but these errors were encountered: