Spark Logic

[SOLVED] Warning!: FW upgrade broke ST-Link v2 dongle

STM32F103C8T6 LQFP48 Pinout

Hi,
today I’ve installed on a Win7 machine the last version (v4.2.0.0) of the STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog ST-LINKST-LINKModules, instruments and finished devices…ot add the serial usb device… suspect flashing failed…. Do I need to debrick it with st-link ? (which I don’t have lol) BennehBoy Mon Jan 23, 2017 8:11 pm NM managed to rescue it…View in hardware catalog Utility to use my ST-LINKST-LINKModules, instruments and finished devices…ot add the serial usb device… suspect flashing failed…. Do I need to debrick it with st-link ? (which I don’t have lol) BennehBoy Mon Jan 23, 2017 8:11 pm NM managed to rescue it…View in hardware catalog v2 clone.
The dongle worked well until I had the bed idea to upgrade the FW:
ST-LINKST-LINKModules, instruments and finished devices…ot add the serial usb device… suspect flashing failed…. Do I need to debrick it with st-link ? (which I don’t have lol) BennehBoy Mon Jan 23, 2017 8:11 pm NM managed to rescue it…View in hardware catalog _2.jpg
ST-LINKST-LINKModules, instruments and finished devices…ot add the serial usb device… suspect flashing failed…. Do I need to debrick it with st-link ? (which I don’t have lol) BennehBoy Mon Jan 23, 2017 8:11 pm NM managed to rescue it…View in hardware catalog _2.jpg (57.25 KiB) Viewed 4283 times

Replies11

Thu May 17, 2018 3:17 pm

Thank you ;)

Thu May 17, 2018 3:51 pm

I did the same using STM32CubeProgrammer and could upgrade ST-LINKST-LINKModules, instruments and finished devices…ot add the serial usb device… suspect flashing failed…. Do I need to debrick it with st-link ? (which I don’t have lol) BennehBoy Mon Jan 23, 2017 8:11 pm NM managed to rescue it…View in hardware catalog stick clone (one of those colorful sticks available on ebay) to V2.J29.S7 with no issues: the device is correctly working.
Did you unplug and re-plug it after upgrade?

Cheers, E.

Thu May 17, 2018 6:40 pm

Would be good to know if the clone that failed had an 101 or 103 MCU, in case the latest FW makes it incompatible with the 101s.

Thu May 17, 2018 7:29 pm

Another data point:

I used the stsw-link007 application on my ubuntu 16.04LTS os successfully with my stlink v2 clone with an STM32F101STM32F101Microcontrollers and processors…F1 series are fairly similar and I managed to run code on a STLink dongle which is a STM32F101 BTW. I read that PDF and all I could find was a link to a hacked version of the old…View in hardware catalog chip. My previous firmware was at V2J27S7 before I did the upgrade. I’ve had no problem using it to program a bluepill the first time or any of the multiple times I tried it after.

Here is what it looks like after I upgraded:

screenshot.png
screenshot.png (71.64 KiB) Viewed 4249 times

Thu May 17, 2018 7:59 pm

V2J30S7 is the latest… no difference in use with the old V2J24S4

Fri May 18, 2018 9:06 am

Ok folks, after a good breakfast I think to have solved the mystery…. :D

It seems that the V2.J29.S7 FW behaves differently from the V2J24S4 (and 2J25 too) when used with the STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog ST-LINKST-LINKModules, instruments and finished devices…ot add the serial usb device… suspect flashing failed…. Do I need to debrick it with st-link ? (which I don’t have lol) BennehBoy Mon Jan 23, 2017 8:11 pm NM managed to rescue it…View in hardware catalog Utility.
If there isn’t any target MCU when the “Settings” button is pressed on the STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog ST-LINKST-LINKModules, instruments and finished devices…ot add the serial usb device… suspect flashing failed…. Do I need to debrick it with st-link ? (which I don’t have lol) BennehBoy Mon Jan 23, 2017 8:11 pm NM managed to rescue it…View in hardware catalog Utility, it appears the previous error (USB communications error).
But if there is a connected target MCU it works as expected.

This is not true with the older FW versions. In this case when a target MCU is not connected the ST-LINKST-LINKModules, instruments and finished devices…ot add the serial usb device… suspect flashing failed…. Do I need to debrick it with st-link ? (which I don’t have lol) BennehBoy Mon Jan 23, 2017 8:11 pm NM managed to rescue it…View in hardware catalog dongle is correctly detected.

BTW: I’ve also tested the STM32CubeProgrammer utility with success and then upgraded to V2J30S7 FW using the current STLinkUpgrade utility as stated by Slammer.

Anyway, because I’ve a couple of ST-LINKST-LINKModules, instruments and finished devices…ot add the serial usb device… suspect flashing failed…. Do I need to debrick it with st-link ? (which I don’t have lol) BennehBoy Mon Jan 23, 2017 8:11 pm NM managed to rescue it…View in hardware catalog v2 dongle, I’ve left one with the V2J24S4 FW, just in case… :lol:

Fri May 18, 2018 11:55 pm

There are versions of the unencrypted update files kicking around on the internet and also code to extract and decrypt the update files from the updater, so it would be possible to reflash one of your STLinks using the other one, and load an older version of firmware.

In fact it may be possible to flash the STLink dongle with a completely different version of the STLink firmware designed for a NucleoNucleoDevelopment and computing boards…o have this dev board for BlueNRG at a pretty hefty price tag though, hopefully the ‘ nucleo ’ & common dev board versions would be out soon Laughing … 007v1.html oops/oh found an…View in hardware catalog board, which also has the Serial comms and potentially the USB mass storage upload option as well.

However I am not sure if the STLink software will let you upload beyond the 64k boundary if it detects that the dongle only has 64k flash, even though the flash from 64k to 128k is probably functional in the MCU ( like it is in th BluePill)

I think JLink can do this, and there is firmware to turn a BluePill into a Jlink OBD

Mon May 21, 2018 4:21 pm

Thanks Roger,
I’m using the ST-LINKST-LINKModules, instruments and finished devices…ot add the serial usb device… suspect flashing failed…. Do I need to debrick it with st-link ? (which I don’t have lol) BennehBoy Mon Jan 23, 2017 8:11 pm NM managed to rescue it…View in hardware catalog just to burn the bootloader on my custom boards.

BTW: JLink seems interesting… I’ll give it a look…

Mon May 21, 2018 10:04 pm

[Just4Fun – Mon May 21, 2018 4:21 pm] –
Thanks Roger,
I’m using the ST-LINKST-LINKModules, instruments and finished devices…ot add the serial usb device… suspect flashing failed…. Do I need to debrick it with st-link ? (which I don’t have lol) BennehBoy Mon Jan 23, 2017 8:11 pm NM managed to rescue it…View in hardware catalog just to burn the bootloader on my custom boards.

BTW: JLink seems interesting… I’ll give it a look…

I forget where it is exactly, but on GitHub someone has done a PCB layout and also has the firmware for a Jlink ODB board using a STM32F103C8STM32F103C8Microcontrollers and processors…017 8:28 am I am trying to get Phono’s library working on a MCP2551 and a blue pill ( STM32F103C8 ), I have it connected to a active CANBUS, and I have successfully received and s…View in hardware catalog

I remember trying the firmware on a BP and realised that to use it, I need to connect 2 pins together via a 100 ohm resistor
I can’t remember which 2 pins it is, it could be A5 and A7, they are SWDout and SWDin which are combined on a lot of MCUs

If you look at the schematic on GitHub you can work out which pins to join, and now I think about it, I am sure I posted about the “jlink odb” ages ago, so it may be worthwhile looking for that post

Wed May 23, 2018 10:04 pm

[zoomx – Wed May 23, 2018 7:57 pm] –
Roger, I think that you are speaking about this post
viewtopic.php?t=2493#p33353

Yes..

Thanks

Post a reply

Optional · up to 10 MiB