Free RTOS simple porting STM32F103ZET6

Free RTOS Learning Chapter 1 Simple Porting

Jesus said, 'It is more blessed to give than to receive. '"

I have been learning MCU for 2 years, and I am ignorant. I have been looking for a quick transplant method when I learn RTOS. There is no error in the optical transplant, and I have taken a lot of detours. Now I record a simple transplant method.

Using the STM32Cube MX configuration tool, it is super easy to configure! ~
insert image description here
Open ,
insert image description here
select the type of chip to create
insert image description here
, find the chip, double-click the target chip,
click Project Management: Project Manager
insert image description here
to enter the configuration
insert image description here
It is important
insert image description here
to return to the first interface, select the required configuration, and configure the LED pins. PC0
insert image description here
insert image description here
insert image description here
insert image description here

The above GPIO settings are over

insert image description here
Select Free RTOS under the Middleware menu and
insert image description here
click the output project and
insert image description here
click to open the project
insert image description here
. After the project is opened, the first compilation is a bit slow. The
insert image description here
compilation is completed without errors.

Write a test lighting program,
insert image description here
insert image description here
insert image description here
insert image description here
compile and download again, the light has been flashing for 1 second, the RTOS porting is over, I will ask you is it simple??

Guess you like

Origin blog.csdn.net/weixin_42839808/article/details/116400475