Hello everyone,
I am encountering an issue when trying to upload firmware to my custom STM32L412KBT board through DFU using PlatformIO. The uploading process starts but never completes; it seems to hang indefinitely without any error message.
Here is the configuration I used in my platformio.ini
file:
[env:programm_stm321412kb]
platform = ststm32
framework = stm32cube
board = nucleo_l412kb
monitor_speed = 115200
upload_protocol = dfu
Even though I have set the board
to nucleo_l412kb
, it is because my custom board is similar to this Nucleo board, but with an STM32L412KBT chip.
The build process completes successfully, and the DFU suffix is added to the firmware binary without issues. However, when it comes to the upload step, it stalls after invoking dfu-util 0.11
and doesn’t proceed further.
Here’s the output from PlatformIO:
I have verified that the board is in DFU mode, and the drivers are up to date. I’ve also tried using a different USB cable and port, to no avail.
Has anyone faced a similar problem or has any suggestions on what else I could try? Any advice would be greatly appreciated!
Thank you in advance.