cancel
Showing results for 
Search instead for 
Did you mean: 

download code to stm32f429

mikkel nielsen
Associate II
Posted on July 10, 2018 at 16:49

How to download the code to the microcontroller?

I am a beginner in stm32f429 and I don't understand that how to download the code to the microcontroller.

i am using eclipse(the IDE) on windows. i hope you can help because i am new a this

https://community.st.com/tags♯/?tags=quadrature%20encoder%20stm32f429

#stm32 #quadrature-encoder-stm32f429 #stm32f429
5 REPLIES 5
Posted on July 10, 2018 at 21:13

On a truly 'Integrated' Development Environment you'd press a button and it would download and run/debug?

People usually download to the chip via a JTAG/SWD debug pod.

Is your STM32F429 on a Nucleo or Discovery board? Those have an on-board ST-LINK.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
AvaTar
Lead
Posted on July 12, 2018 at 09:47

I would suggest to start with a free version of Keil uVision, IAR WB, or Atollic TrueStudio. They support the MCU and the discovery board out of the box, and you don't need to struggle with things like toolchain and debug pod integration.

Atollic is Eclipse based as well, and available for free since bought up by ST.

Battling with too many issues at once will only yield frustration.

Posted on July 12, 2018 at 08:38

It is a Discovery board i have 

Posted on July 12, 2018 at 09:11

You should be able to configure the debugger being used (ST-LINK via OpenOCD I'd presume, sorry using Keil here)

The alternate method to download .HEX and .BIN files is the ST-LINK Utilities.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on July 12, 2018 at 10:31

Hello Mikkel,

The debug / download of your code is done by the STLinkV2 integrated into your STM32F429 Discovery.

You must therefore connect a mini USB cable to the CN1 mini USB

As described in the UM1670 (link below)

https://www.st.com/resource/en/user_manual/dm00093903.pdf

I advise you to test the connection between your PC and your target using the STM32-STLink Utility software that you can download in the link:

https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stsw-link004.html

This will allow you to read the memory of your card and program it too.

Then assuming you use Atollic (Eclipse IDE for STM32) you can find tutorial videos for debugging here.

http://info.atollic.com/resources/video-tutorials

BR

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.