当前位置:网站首页>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 .
边栏推荐
- Encyclopedia of scala operators
- 卸载重装最新版mysql数据库亲测有效
- Ice - resources
- R language ggmap visual cluster
- DOM parsing of XML file case code sentence by sentence analysis
- 逆波兰表达式求值<难度系数>
- "Three routines" of digital collection market
- MMR rearrangement (similarity is calculated by editing distance and repeatability)
- Flutter realizes the function of "shake"
- Top 25 most popular articles on vivo Internet technology in 2021
猜你喜欢

golang gin框架进行分块传输

Section VII starting principle and configuration of zynq

Kubelet garbage collection (exiting containers and unused images) source code analysis

Modifying MySQL user name root under Linux

Path alias specified in vite2.9

以动态规划的方式求解最长回文子串

Kubernetes cluster lossless upgrade practice

Recommended system series (Lecture 5): Optimization Practice of sorting model

kubelet垃圾(退出的容器和未使用的镜像)回收源码分析

Section 5: zynq interrupt
随机推荐
Section VII starting principle and configuration of zynq
XML serialization backward compatible
R language Kolmogorov Smirnov tests whether the two samples follow the same distribution.
7-1 懂的都懂
MySQL installation steps - installing MySQL on Linux (3)
Force buckle 515 Find the maximum value in each tree row
实时数据库 - 笔记
R 语言 ggmap 可视化集群
ES6 use of return in arrow function
Modifying MySQL user name root under Linux
Resizing node of rediscluster cluster cluster mode
数字藏品市场“三大套路”
Practice and exploration of vivo live broadcast application technology
HJ成绩排序
Redis implements distributed locks
XML序列化向后兼容
Spark 离线开发框架设计与实现
同花顺网上开户安全吗
HTTP Caching Protocol practice
8 figures | analyze Eureka's first synchronization registry