-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
'st-info --probe' returns 'unknown device', works with STMCubeProgrammer #1184
Comments
I'm facing the same issue at the difference that I'm using STLink/V2-onboard. Moreover I managed to have both commands to work in the past with the version of the tool stlink-tools v1.6.0. It stopped working and I never managed to reprogram the board using "stlink-tools" on Linux, I had to got back to on windows and program with the STM32CubeIDE/programmer. I have a board
Commandline output: Version v1.7.0
Version v1.6.0
And then I can't erase : using
Expected/description: When It was working in the past (st-flash also worked at this moment).
Hope it helps |
@lucasdietrich Thanks for the input. However the comparison with older versions does not help here due to larger refactoring work and restructuring in the library recently. One would clearly need to review the current state in the |
@lucasdietrich Sorry for the long delay. I finally found some time to review some issues. |
Support for STM32H7 devices was not present before Release v1.7.0. @lucasdietrich Your attempt with the L0 device leads to the same result as with the H7, as it is running through the same routine in the code, but must have a different cause. Need to investigate further which then may reduce efforts for bisecting. |
@lucasdietrich Looking closer at this, I believe you should try to reproduce your case with Release v1.7.0. For users with a STM32L011K4 and/or a STM32H743ZIT6U device and a STLink/v2 programmer (we may extend the testing to the STLink/v3 in a second step): Please proceed as follows:
... and report back the output you receive. |
@Nightwalker-87 sorry about that, i m remote working for a few months and wont have access to the kits until spring. |
@fdelbos Thanks for the quick response. Well never mind... 😐 |
Did the steps you mentionned above, I'm having the following result with a NUCLEO-l011k4 board :
Moreover erasing and programming the chip works for me now 👍 |
@lucasdietrich Oh, that is good news! Thanks for the feedback. 🥇 The |
@EmanueleGiacomini I've noticed in #1249 that you have similar hardware which would qualify for testing here. |
Alternatively: @ronangaillard and/or @benjinne - you may also give it a try, if you fancy. |
I don't remember the exact issue I had, but around Oct 25th, the latest release wasn't working so I built it from the main branch and it started working |
@benjinne Oh well, one may give it a try on the current |
I have tested using a Nucleo H7 A3ZI-Q
However it seems the 1.7.0 release is working just fine. ( have installed 1.7.0)
|
I'm getting the same thing, with 1.7.0 (on Debian Linux sid). I'm using a RobotDyn ST32 MINI Black Pill. STM32CubeProgrammer reports this as an STM32F101/F102/F103, device ID 0x410, Rev X, Cortex-M3. st-info --probe says this:
|
...addendum to the last: after removing the two boot mode jumpers st-info worked fine... and then after reinserting the jumpers it continues to work fine. I have no idea what happened or why, but at least it's working now. |
Very interesting indeed... This sounds as if a temporary GND-disconnect could play a role... |
n/m, I had a bad cable. However, even with the right cable (and right jumper settings) I am having trouble connecting. It'll work fine for an extended period of time and then just stop working. I have noticed that connecting with STM32CubeProgrammer and then disconnecting again will get st-link working again. |
Concluding review: The testing results from @lucasdietrich and @defyingphysics verify that this issue is fixed. In this context we can mark this issue as resolved by Release v1.7.0 and even more precise by #1052. |
Commandline output:
I get a error while flashing a binary.
Same error with the st-flash version 1.6.1. If I'm right the flash type is determined via the chip id.
st-info 1.6.1
st-info 1.7.0
If I run the STM32CubeProgrammer instead I can connect and flash without any issues.
Stlink Firmwareversion: V3J5M2 (updated as suggested in contributing.md)
Device: STM32H7xx
Type: MCU
Device ID: 0x450
Rev: V
Flash Size: 2 MB
CPU: Cortex M7
Bootloaderversion: 0x90
Therefore I guess the hardware is fine. I've tried another board H7 board as well, same issues.
I've checked the procedure with my hardware on a colleagues setup and everything worked fine. (1.6.1 and 1.7.0, Ubuntu20 as well)
The chip id is returned as expected. Flashing works as expected. Do I miss something? Is there additional driver or some setting I've forgot?
The text was updated successfully, but these errors were encountered: