STM32 learning one: getting started

Starting today, I will share my experience of learning STM32 on the blog, and also share some of the problems and solutions that I am facing in the learning process. Share and discuss with you to learn from each other.In addition, because of my own limited level, in this process It is inevitable that some mistakes will be made, and everyone is welcome to point out.

1. Enter the pit STM32

I wrote a software major when I filled out my volunteers, but unfortunately my score and ranking were not enough, and then I was successfully transferred to the second major. The computer majors have filled it out. Before starting to study, there is no concept of single chip microcomputer. , Sophomore began to contact S3C2440, STM32F104, STM32F407. The following begins to introduce how to start learning STM32

2. Environment construction

Keil5 is used to write, burn, and debug code throughout the learning process.
1. Software download and installation
Keil5 has many online download resources. Baidu or open source electronics and other places have download places. After the download is complete, install the software. The downloaded content comes with an installation tutorial (in fact, the installation is very simple, generally the next step is ok), and finally the software has a code code size limit of 32K, and there are crack tutorials available on the Internet. Yes!
2. For the first time using Keil5,
Keil5 interface
we will learn how to use Keil5 by creating the first own project:
(1) Create a project
Select Project-> New μVision Project-> Create a new project storage folder and set the project name -> save -> select master chip model (you can buy F103C8T6 core board from a treasure) STM32F103C8-> confirm
(2) set the project
in general will project engineering documents, program source code, libraries and other storage group, here we add Users, Core, Hardware folder, you can set according to their preferences Engineering Group(3) the project configuration
first to create a main.c, write main Adding Users to the number of stored packets, is added to the file system and the startup file Core packet File configuration(4) simulator
we use here ST-Link V2 simulator, of course, be used with a serial port for programming code on .ST-Link Two 5.0V, 3.3V and GND pins, we only need one 3.3V and GND as well as SWCLK and SWDIO, connect these 4 pins to the corresponding four pins on the core board with DuPont line, remember to install the driver, and finally After Keil5 is configured as ST-Link Debug,
ST-Link Debug
Flash Config
all configurations are completed, the preliminary preparation work results, and the code program will be written and burned later

Published an original article · Like1 · Visits7

Guess you like

Origin blog.csdn.net/q1394466592/article/details/105468073