Skip to main content
Visitor II
December 9, 2024
Question

Arduine IDE cannot program through Cube Programmer

  • December 9, 2024
  • 3 replies
  • 871 views

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.   

3 replies

Andrew Neil
Super User
December 9, 2024

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
December 9, 2024

>>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 VenmoUp vote any posts that you find helpful, it shows what's working..
ST Employee
March 28, 2025

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.