Embedded introductory exercise-2
Installation of mdk5 and installation of stm32 package
1. After finding the mdk5 resource, run the executable file directly to install the mdk5 main body.
2. Since only the keil5 body is installed, if you want to build the stm32 related program project and compile the program, you also need to install the stm32 series package
keil5 download and install the program compilation and simulation test
1. About the basic operation steps of writing stm32 C program in keil5,
first create the project
and then select the components you need for simulation. (Note: If the stm32 package is not installed here, there is no chip to choose from)
and then create the file, write the C program,
and then save the file Save it as a .c suffix, and add the file to the project, and
finally compile and run
Carry out a 51 program design on keil5 and simulate on proteus
The topic is LED control based on 51 single-chip microcomputer
. Compile the 51C program on keil4.
Create the project first, select 51 single-chip microcomputer, and add the file to the project and run
it. Connect the simulation diagram on proteus and
find that the suffix will be generated after the C program runs. This file is used as a guide file for circuit operation.
Right-click the microcontroller, select edit, and select program file. Select the file
just generated
and run the circuit in protuse. The results are as follows