cancel
Showing results for 
Search instead for 
Did you mean: 

Arduine IDE cannot program through Cube Programmer

RuhunaGr1
Associate

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 3

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.

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

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