cancel
Showing results for 
Search instead for 
Did you mean: 

Flash hex file to stm32f412 with stlink using stm32cubeprogrammer

Vaishnavi
Associate II

Tried flashing stm32f412 custom controller using uart but facing error while going to boot mode.

Tried flashing using stlink, connected but failed to erase memory and application exiting automatically.

 

16 REPLIES 16

Hello @SofLit 

I have attached the schematic,

This is using stlink to flash my hex file to stm32f412, PA13-SWDIO and PA14-SWCLK

Where is the schematic? This is a picture of the error, you established this in your initial post. The thread is trying to establish WHY this is happening, not to dispute that you're seeing an issue.

The failure is more indicative of a power (charge) issue as electrons are being redeployed

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Here i have attached my schematic

Vaishnavi_0-1728551203719.png

 

I have removed green and blue LED's which are connected to PA10 and PA9 pins, and connected those pins to Tx and Rx of usb-to-uart adapter.

That's not a complete schematic - it's just the STM32 and a load of signal names.

You need to show the schematic - how everything is connected.

 


@Vaishnavi wrote:

I have removed green and blue LED's which are connected to PA10 and PA9 pins, and connected those pins to Tx and Rx of usb-to-uart adapter.


Show the actual schematic as it now stands.

Show POWER SUPPLY connections.

Answer VCAP question. Double check placed components. 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

The important thing here is the power supply part of the MCU.

For help efficiency and to avoid unnecessary ping pongs, please share all the schematics you have.

Thank you for your understanding.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hello @SofLit 

As I shared in previous schematic, UART1 pins are connected to GPS(PA15 and PB3) will it make any difference?

Power supply, I have connected external supply to board i.e., 5v 

I couldn't able to flash through PA9 and PA10 pins

While reading in serial debugger I'm receiving FF continuously.