-
Notifications
You must be signed in to change notification settings - Fork 91
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
Add XTW100 support #47
Conversation
Good job! This is the working patch for XTW100. I've tested on some off-board flash chips and in-system programming on some boards. |
how to flash hex file into mcu? need short any pins? |
Does it can flash i2c eeprom chip? |
Just got myself a XTW100, but the new one has 5 ISP pins instead of 4. The pins are labeled as (from the one closest to the lever) N, E, T, R, G. EDIT: I'm able to find some hints. However, I still need to dig deeper to figure out what I need to get this one working, or look for the variant that can already do SWD... |
Say does Googling about that error returns a good amount of issues regarding it (such as this and this). With the latest st-flash built from git master it mentioned some details about the error ( It seems the MCU on this board is a bit different as with earlier Will keep investigating. Maybe I should look for a way to upgrade the ST-Link itself as I don't know which firmware version it's on yet... |
You need to do mass erase/unprotect mcu first, st-flash often behaves strangely when protection is enabled I guess maybe openocd can do it with |
Yeah, it's indeed protected. I ended up hooking it on a Windows machine and disabled it using the official ST-Link utility. After disabling the protection I'm able to properly flash it. It's working now. |
Board pictures and PDF
Would it be better to create
xtw100.c
and place all the hooks there withvserprog.c
having weak functions? Or is current version enough for vserprog?In any case it works reliably, was testing it for past week (read/write/erase)
Used
make BOARD=xtw100 flash-stlink
with success to flash stm32f103Personally I would not recommend this dongle, because it powers target chip/board through GPIO, which can easily end badly for the stm32f103
Tested mostly with W25Q128FVSIG, MX25L25635F