cancel
Showing results for 
Search instead for 
Did you mean: 

How to program an STM32 ARM micro controller

Sashvat
Associate II

Hi guys, I have a project where I need to use STM32 ARM processors I want to be able to program a bare chip of STM32's ARM Microcontrollers on my breadboard. I have a ST link V2 as the programmer. I would like to know what software (for free only)/application I need to install on my computer to code and upload it to this bare chip of mine. What are the steps I need to take to successfully write code and dump it on my STM32 ARM Microcontroller.

To basically sum it up, I have a LCD display, and I want to display characters from a sensor's readings, so which software do I use to write and upload code and it should be used with my ST link v2.

Thank you.

15 REPLIES 15
MikeDB
Lead

What is the STM32 model ? From what you describe it's a simple application so if it's a supported model Arduino might be a far easier to use IDE/programmer than STMCube.

Not a problem

But my only worry is will the code he writes, will it be accepted by Keil MDK-ARM? I know both are C and should work, I just wanted to confirm with you. Can I just copy paste the code in the video and upload it on Keil? Will it still work?

And this guy doesn't use STM32CUBEMX, which is to generate code for the register initialisation and GPIO etc, also we can write it by hand right? Isn't that what the guy in the tutorial is essentially doing? Not using auto generated code and typing it out by hand?

May I know what is firmware programming? And how can I upload this via the USB from my comp to the STM32 microprocessor?

Is this a way of uploading code from a comp app to your STM32 chip?

I am looking at seeing all cortex ARM processors from M0 to M7 and program them to find which is best suited.

Yes you right he is not using such file but he is using only startup files file which is sufficient for handling a micro-controller. When you see his all videos then you see that he work with only registers and their bits.

But is the code the same for what he uses? Can I just copy the code and will it be executable? And what about setting up ST Link V2 on Keil?