fpoussin / QStlink2

Cross-platform STLink v2 GUI
Other
187 stars 72 forks source link

Upload fails with STLink2 firmware >= 2.28.18 #33

Open FlYnN91 opened 7 years ago

FlYnN91 commented 7 years ago

Hi,

I have found that the qstlink2 (v1.2.3) fails to upload binaries if the STLink2-1 version is 2.28.16. I've noticed that there is a closed ticket already and I did use the ppa to install the 1.2.3 but I believe the issue is still there. qstlink2 works fine (with the same binary file) if STLink2-1 version is 2.23.9. Also the STM32-Utility uploads the binary file with no problem if the STLink2-1 version is 2.28.16.

I was able to mitigate the issue by downgrading STLink2-1 to 2.23.9.

For future sake, I've attached my binary (blinky) for STM32F429ZI-Nucleo. Dummy_Blinky.zip

fpoussin commented 7 years ago

I'll run some tests, they probably changed the protocol somehow.

jano2358 commented 7 years ago

I come to say the same, for version 2.28.18. An I made used the same 'solution' but with the version 2.27.15, and I saved a copy of this firmware on my github: https://github.com/jano2358/STM32Workout

f-izzo commented 7 years ago

Hi, After flashing an stm32f401-nucleo and stm32f469-disco (resp STLinkv2 and STLink v2-1) with qstlink2 (1.30) the mbed virtual drive functionality appears to be broken, in fact when a file is dragged to the drive, it is not flashed to the board.

The only way I found to restore arm mbed functionality is to flash a binary of choice with the stm32 utility for windows, that while flashing reports a read-protection activated.

fpoussin commented 7 years ago

1.3.0 is not released yet. Retry with 1.2.3

fpoussin commented 7 years ago

I moved 1.3.x code to the dev branch since people were assuming it's stable.

fpoussin commented 7 years ago

Was able to test 2.28.18, seems like the main loader loop does no run.

f-izzo commented 7 years ago

I can confirm that version 1.2.3 works with both stm32f401-nucleo(2.27.15) and stm32f469-disco(2.27.15). Thanks for moving the unstable code to a new branch, this way the AUR package in Arch Linux installs a working version. Also I found that STLINK firmware upgrade inside stm32 Utility says 2.27.15 is the latest version, while the standalone firmware update written in java says that 2.28.x is the latest.

fpoussin commented 7 years ago

Still working on it, they might have deprecated some functions from the V1 API.

diond31 commented 7 years ago

@fpoussin I confirmed issue with ST-LINK/V2-1 version 2.28.17 on Nucleo64-F091RC. This issues was also found on the Mastering STM32 Forum (link) and provides a link to a downgraded version 2.24.11 of the the ST-LINK/V2-1 firmware (dropbox link).

Downgrading to ST-LINK/V2-1 2.24.11 on Nucleo64-F091RC fixed issue and allowed .bin uploads to Nucleo64-F091RC. It would be nice for others to share links to more recent versions of ST-LINK/V2-1 firmware that are proven to work, until a fix for the most recent firmware is completed, as ST doesn't provide links to older version of ST-LINK/V2-1 firmware on their website.

diond31 commented 7 years ago

@jano2358 Thanks for providing (link) to downgraded ST-LINK/V2-1 firmware version 2.27.15. I confirmed that ST-LINK/V2-1 version 2.27.15 works on Nucleo64-F091RC and uploads without issue.

fpoussin commented 7 years ago

Thanks @diond31.

jorgemzz commented 6 years ago

Thanks @diond31. I was unable to flash an STM32f411 on Ubuntu virtual machine using STLink2-1 version 2.29, although there was not such issue on macOS. Now everything works alright on virtual environment using STLink2-1 2.24.11.

wencelewski commented 6 years ago

Hi, I'm trying to upload a .bin file to my STM32F401 but i'm unable due the fact it stays at 0%. I'm using STLink2-1 2.24.11 and I alse tried to use the QStlink2 from the dev branch. It worked one time only, right after I've downgraded the STLink2-1 firmware to 2.24.11. But after that it returned to the same problem. STlink2-1 Firmware Version 2.24.11 Board: STM32F401RE Nucleo

denisn73 commented 6 years ago

Hi, freind! I can't help solve this problem, it is better to ask for help to the original source (https://github.com/fpoussin/QStlink2) In my project, I implement the firmware download to Russian microcontrollers MDR32

Пятница, 2 февраля 2018, 23:08 +07:00 от Mauro Wencelewski notifications@github.com:

Hi, I'm trying to upload a .bin file to my STM32F401 but i'm unable due the fact it stays at 0%. I'm using STLink2-1 2.24.11 and I alse tried to use the QStlink2 from the dev branch. It worked one time only, right after I've downgraded the STLink2-1 firmware to 2.24.11. But after that it returned to the same problem. STlink2-1 Firmware Version 2.24.11 Board: STM32F401RE Nucleo — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or mute the thread .

-- Силиванов Денис