Yet_Another_Bootloader icon indicating copy to clipboard operation
Yet_Another_Bootloader copied to clipboard

Compatibility with STLINKV3-MINIE

Open vincent290587 opened this issue 1 year ago • 5 comments

Hi !

And thanks for the great work, i have managed to use the YAB on a STM32H735G-DK successfully, but when trying to use the STLinkUpgrade.jar exec, I got an error code:

Unexpected device ID for ST-Link micro. Don't know how to upgrade.

Would you consider updating the .jar or giving some information on how to do it ?

vincent290587 avatar Sep 07 '24 19:09 vincent290587

Hi, sorry, I did not touch the App STLinkUpgrade.jar, it comes from ST software tools. I do not know how to......

RadioOperator avatar Sep 08 '24 02:09 RadioOperator

Ok understood, I think maybe they changed the encryption of the f3 files ?

Could you tell me about that part ?

vincent290587 avatar Sep 08 '24 06:09 vincent290587

I'm not sure what happened on your case. I remember, ST-Link programmer/updater/upgrader, already check the device serial no (ID ?) before flashing the IC. If your st-link not from ST orignal, you have to flash a hacked version bin code first, then the upgrade App will work.

RadioOperator avatar Sep 09 '24 04:09 RadioOperator

I am currently upgrading my MINIE from its DFU itself so nothing is hacked there.

Apparently they bumped up security, I managed to get more information:

java -jar STLinkUpgrade.jar -force_prog

Firmware version detected: V3J9M3
Exception in thread "main" java.lang.SecurityException: SHA-256 digest error for com/st/stlinkupgrade/core/f3_1.bin
        at sun.security.util.ManifestEntryVerifier.verify(Unknown Source)
        at java.util.jar.JarVerifier.processEntry(Unknown Source)
        at java.util.jar.JarVerifier.update(Unknown Source)
        at java.util.jar.JarVerifier$VerifierStream.read(Unknown Source)
        at java.io.FilterInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at com.st.stlinkupgrade.core.c.h(SourceFile:984)
        at com.st.stlinkupgrade.app.b.b(SourceFile:277)
        at com.st.stlinkupgrade.app.b.a(SourceFile:136)
        at com.st.stlinkupgrade.app.MainApp.main(SourceFile:16)

It seems it is the f3 files authentication, but I don't know what we can do there...

vincent290587 avatar Sep 09 '24 05:09 vincent290587

Definitely related to this:

https://github.com/RadioOperator/CMSIS-DAP_for_STLINK-V3MINI/issues/1

I don't think there will be a fix anytime soon, I am fine to close this issue

vincent290587 avatar Sep 12 '24 08:09 vincent290587