Skip to main content
Visitor II
Dec 9, 2024 5:44 PM UTC
Question

Arduine IDE cannot program through Cube Programmer

I have installed STM32duino and using Arduino IDE to program STM32F407VG.  I have set the upload method to 'STM32CubeProgrammer(DFU). Arduino IDE fails to program the Board.  However when I download the .bin file created from Arduino IDE using the Cube Programmer, it works fine.  Can somebody help me to set the system so that I can directly program the board using the Arduin IDE.   

This topic has been closed for replies.

3 replies

Andrew Neil
Super User
Dec 9, 2024 6:09 PM UTC

You should probably ask this in the STM32duino forum - that's the official place for STM32duino support:

https://www.stm32duino.com/

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Tesla DeLorean
Guru
Dec 9, 2024 6:14 PM UTC

>>I have set the upload method to 'STM32CubeProgrammer(DFU)..

Sounds like you haven't..

Perhaps you can use an ST-LINK/V2-1 or V3 that permits for a drag-n-drop of the .BIN into a USB MSC drive.

Problems with Arduino IDE, perhaps converse with Arduino, and their forum?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ST Employee
Mar 28, 2025 3:14 PM UTC

Selecting 'STM32CubeProgrammer(DFU)' requires you boot your board in dfu mode. 

See the https://www.st.com/resource/en/application_note/an2606-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf

to know how boot in the correct mode depending of your mcu.

https://github.com/stm32duino