Skip to content
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

Upload fails with STLink2 firmware >= 2.28.18 #33

Open
FlYnN91 opened this issue Dec 7, 2016 · 14 comments
Open

Upload fails with STLink2 firmware >= 2.28.18 #33

FlYnN91 opened this issue Dec 7, 2016 · 14 comments
Assignees
Labels
Milestone

Comments

@FlYnN91
Copy link

FlYnN91 commented Dec 7, 2016

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 fpoussin self-assigned this Dec 7, 2016
@fpoussin fpoussin added the bug label Dec 7, 2016
@fpoussin
Copy link
Owner

fpoussin commented Jan 9, 2017

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

@jano2358
Copy link

jano2358 commented Jan 9, 2017

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

@Nimayer
Copy link

Nimayer commented Jan 14, 2017

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
Copy link
Owner

1.3.0 is not released yet.
Retry with 1.2.3

@fpoussin
Copy link
Owner

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

@fpoussin
Copy link
Owner

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

@Nimayer
Copy link

Nimayer commented Jan 17, 2017

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 fpoussin changed the title Fail to upload binary via STLink2-1 Nucleo Debuger Upload fails with STLink2 firmware >= 2.28.18 Jan 18, 2017
@fpoussin
Copy link
Owner

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

@fpoussin fpoussin added this to the 1.3.0 milestone Mar 5, 2017
@diond31
Copy link
Contributor

diond31 commented Jun 27, 2017

@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
Copy link
Contributor

diond31 commented Jun 27, 2017

@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
Copy link
Owner

Thanks @diond31.

@jorgemzz
Copy link

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
Copy link

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
Copy link

denisn73 commented Feb 3, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants