当前位置:网站首页>Porting ucosiii to stm32f429
Porting ucosiii to stm32f429
2022-06-28 07:36:00 【youbin2013】
- Create folder : Select a bare metal project , stay user Create the following folder under the folder ,APP Folder , Represents the system application layer folder ,BSP The folder represents the board level support package folder ,uc-cpu Folder representation and cpu Relevant documents ,uc-lib Represents the library file of the system ,ucos-iii Express ucos Source folder for , Pictured 1.

chart 1 Migration folder creation
- A copy of a document ,
Copy some files to APP Under the folder , Open the downloaded official migration folder and go to the folder Micrium_STM32F429II-SK_OS3\Micrium\Examples\ST\STM32F429II-SK\OS3, Then copy the selected file in the figure to APP Under the folder , Pictured 2;

chart 2 APP A copy of a document
Copy some files to BSP Under the folder , Open the downloaded official migration folder and go to the folder Micrium_STM32F429II-SK_OS3\Micrium\Examples\ST\STM32F429II-SK\BSP, Then copy the selected file in the figure to BSP Under the folder , Pictured 3;

chart 3 BSP A copy of a document
Copy some files to uc-cpu Under the folder , Open the downloaded official migration folder and go to the folder Micrium_STM32F429II-SK_OS3\Micrium\Software\uC-CPU, Then copy the selected file in the figure to uc-cpu Under the folder , Pictured 4;

chart 4 uc-cpu A copy of a document
Copy some files to uc-lib Under the folder , Open the downloaded official migration folder and go to the folder Micrium_STM32F429II-SK_OS3\Micrium\Software\uC-LIB, Then copy the selected file in the figure to uc-lib Under the folder , Pictured 5;

chart 5 uc-lib A copy of a document
Copy some files to ucos-iii Under the folder , Open the downloaded official migration folder and go to the folder Micrium_STM32F429II-SK_OS3\Micrium\Software\ucos-iii, Then copy the selected file in the figure to ucos-iii Under the folder , Pictured 6;

chart 5 ucos-iii A copy of a document
Delete main.c file .
- Open the project , Remove the obsolete file first , Then click engineering structure in the toolbar ( Three square pieces ), Establish corresponding folder engineering structure , Add the following five folders (APP,BSP,UC-CPU,UC-BSP,UCOS-III) Pictured 6 Shown .

chart 6 Establish a file structure
Then add the corresponding project file to the corresponding file , stay APP Add under the folder corresponding to User\APP All under folder .c file , Pictured 7 Shown .

chart 7 add to APP File structure
stay BSP Add under the folder corresponding to User\BSP All under folder .c file 、User\BSP\Key All under the folder .c file ,User\BSP\Led All under the folder .c file ,User\BSP\usart All under the folder .c file , Pictured 8 Shown .

chart 8 add to BSP File structure
stay uc-cpu Add the corresponding file under the folder , add to User\uC-CPU All under the folder .c file 、 add to User\uC-CPU\ARM-Cortex-M4\RealView All under the folder .c and .asm file , Pictured 9 Shown .

chart 9 add to uc-cpu File structure
stay uc-lib Add the corresponding file under the folder , add to User\uC-LIB All under the folder .c file 、 add to User\uC-LIB\Ports\ARM-Cortex-M4\RealView All under the folder .c and .asm file , Pictured 10 Shown .

chart 10 add to uc-lib File structure
stay ucos-iii Add the corresponding file under the folder , add to User\uCOS-III\Source All under the folder .c file 、 add to User\uCOS-III\Ports\ARM-Cortex-M4\Generic\RealView All under the folder .c and .asm file , Pictured 11 Shown .

chart 11 add to ucos-iii File structure
Click... After adding OK.
- Add the corresponding folder header file path to the project , Click the compile Properties menu in the toolbar ( Magic wand ), And then choose C/C++ That column , stay include paths Add the corresponding header file directory in , Pictured 12 Shown .

chart 12 Add header Directory
Click... After adding OK.
- modify startup_stm32f429_439xx.s file , Modify... In the startup file PendSV_Handler and SysTick_Handler Change the distribution to OS_CPU_PendSV_Handler and OS_CPU_SysTickHandler. Pictured 13 Shown .


chart 12 modify PendSV_Handler And SysTick_Handler
I'm jumping in main After that, add a floating-point running function , Pictured 13 Shown .

chart 13 Add floating point operation processing
- modify bsp.h and bsp.c file , First modify bsp.h file , Header file modification , Add header file in board level support package , And keep the three function declarations , Others can be deleted , Pictured 14 Shown .


chart 14 bsp.h File modification
Revise bsp.c file , Delete ucos-iii Self contained STM32 Macro definition of onboard driver , Delete uc-iii Self contained STM32 On board drive function , Clear all definitions of onboard initialization function , Use bare metal driver functions instead , Delete other irrelevant code , Pictured 15 Shown .

chart 15 modify bsp.c file
7, modify app.c file , Mainly to increase their own tasks .
边栏推荐
- Principle and practice of bytecode reference detection
- 云原生(待更新)
- MySQL installation steps - installing MySQL on Linux (3)
- Code submission specification
- 分析 NFT 项目的 5 个指标
- ice - 资源
- Analyze 5 indicators of NFT project
- Section VII starting principle and configuration of zynq
- [thanos source code analysis series]thanos query component source code analysis
- kubelet驱逐机制的源码分析
猜你喜欢

Jetpack - defects of livedata component and Countermeasures

腾讯下半年继续裁员,所有事业群至少缩减 10%,对此你怎么看?关注者

The practice of traffic and data isolation in vivo Reviews

Cloud native (to be updated)

A gadget can write crawlers faster

ACM笔记

The practice of event driven architecture in vivo content platform

Spark 离线开发框架设计与实现

Vivo browser rapid development platform practice - Overview

Leetcode learning records
随机推荐
NDK cross compilation
MySQL installation steps - Linux configuration file JDK installation (II)
mysql57 zip文件安装
The practice of event driven architecture in vivo content platform
Sword finger offer II 091 Paint the house
Application of XOR. (extract the rightmost 1 in the number, which is often used in interviews)
安全培训是员工最大的福利!2022新员工入职安全培训全员篇
DOM parsing of XML file case code sentence by sentence analysis
Understanding of OPC protocol
R language hitters data analysis
本周二晚19:00战码先锋第8期直播丨如何多方位参与OpenHarmony开源贡献
kubernetes删除pod的流程的源码简析
[ thanos源码分析系列 ]thanos query组件源码简析
ice - 资源
Flutter realizes the function of "shake"
Redis implements distributed locks
R language Kolmogorov Smirnov tests whether the two samples follow the same distribution.
Design and implementation of spark offline development framework
Code submission specification
R语言绘制 ggplot2 季节性图