Proteus, keil5 simulation run stm32 program, detailed tutorial of running water lamp

keile5

Regarding the configuration of Keil5, I refer to another blogger’s blog, here is a link
Link: https://www.cnblogs.com/yf4695/p/9158689.html .

1. New construction

1. Click on project

Insert picture description here

2. Name the project

Insert picture description here

3. Select STM32F103XX chip

Insert picture description here

4. Finish

Insert picture description here

2. Writing and configuring libraries and code

Enter keil 5 and select Option for Target, then check Create HEX file to generate a hex file.
Insert picture description here
Add folder
Insert picture description here
Insert picture description here

Three. Compile

Compile and run
Insert picture description here

4). This is the running light program found on the Internet, just compile and run

protues8

1. New construction

1. Click on project

Insert picture description here
Modify project name and location
Insert picture description here

2. Choose to create a schematic (DEFAULT) from the selected template.

Insert picture description here

3. Choose not to create a PCB layout design.

Insert picture description here

4. Select to create a solid state, select the type of microcontroller, and complete the creation

Insert picture description here

5. Add device

Insert picture description here

simulation

This is the effect of our operation
Insert picture description here

to sum up

The blogger introduced the entry method of stm32 this time. For those of us who have a certain 51 series microcontrollers, stm32 has a certain degree of difficulty, but they have a lot in common, so the blogger recommends big We must earnestly lay the foundation and improve our SCM level. In addition, if you have any academic issues to discuss, please pay attention to my personal WeChat public account,WeChat search h life silhouetteLooking forward to your attention, we will make progress together.
Insert picture description here

Guess you like

Origin blog.csdn.net/nsnsnbabsb/article/details/109544554