2024-03-26 09:51 AM
Good afternoon community. I've been dealing with this problem for days and I can't find a solution. It turns out that I migrated to Ubuntu and had to install the STM32CubeIDE Software again. The error appears when I want to communicate to my STM32f072B board. It gives me two errors 1) "ST-LINK is not in DFU mode" and 2) "Unexpected flash size for ST.micro". As I was investigating, I cannot update the ST-LINK Firmware, it does not allow me. I have tried it on another computer, and the updates are done automatically by clicking on "update". But it doesn't allow me. I tried plugging it in with the RESET button pressed, but that didn't fix it either. I don't know where else to look to resolve this error that doesn't allow me to move forward. I hope someone from the community can help me. Thank you so much.
Solved! Go to Solution.
2024-03-26 09:57 AM
Hi,
to which version did you update ? 1.15. ? -> then read here...
2024-03-26 09:57 AM
Hi,
to which version did you update ? 1.15. ? -> then read here...
2024-03-26 10:05 AM
Hi. I have the latest version 1.15.0. I had seen that several users also had this problem, but it was because they were using a "ST-Link/V2" clone. Now I'll follow the thread to see if it gets resolved. Thank you very much for the information. Regards.
2024-03-26 10:53 AM
I just found the solution. Costi suggested installing the firmware from CubeProgramer, and that's how I succeeded. I installed the latest version and updated the firmware from there. I had to unplug the board and plug it in with the reset button on. That was it. And when I tried STMCubeIDE, it suggested updating and I said No. And voila, it worked perfectly
2024-03-26 10:59 AM
This is the way .
:)
2025-02-10 06:34 AM
1. Have the latest STM32CubeProgrammer installed.
2. Check your USB cable is functioning (some cheaper versions don't implement data lines and their sole purpose is charging!)
3. Disconnect your USB cable from the target board, press and hold reset, keeping reset held connect the target board to the USB cable.
3.1 Keeping reset held
4. Open the STM32CubeProgrammer, Click Firmware Upgrade
5. Select "Open in Update Mode", ..go from there.
This worked for me.