当前位置:网站首页>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 .
边栏推荐
- 7-1 懂的都懂
- Evaluation of inverse Polish expression < difficulty coefficient >
- 推荐系统系列精讲(第五讲): 排序模型的调优实践
- Kubernetes cluster lossless upgrade practice
- mysql57 zip文件安装
- Sword finger offer|: linked list (simple)
- R 语言绘制 动画气泡图
- OPC 协议认识
- GoLand IDE and delve debug Go programs in kubernetes cluster
- Is it safe to open an account on Dongfang fortune
猜你喜欢

Leetcode+ 66 - 70 high precision, two sub topics

What should I do if the version is incompatible with the jar package conflict?

Section VII starting principle and configuration of zynq

Redis implements distributed locks

goland IDE和delve调试位于kubernetes集群中的go程序

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

Section VI UART of zynq

8 张图 | 剖析 Eureka 的首次同步注册表

es6箭头函数中return的用法

扩展Prometheus的解决方案thanos的简介和几个月使用心得
随机推荐
东方财富上开户是安全的吗
Construction and exploration of vivo database and storage platform
安全培训是员工最大的福利!2022新员工入职安全培训全员篇
Hash slot of rediscluster cluster cluster implementation principle
8 figures | analyze Eureka's first synchronization registry
Principle and practice of bytecode reference detection
SQL statement optimization steps (1)
分析 NFT 项目的 5 个指标
Sword finger offer|: linked list (simple)
7-1 understand everything
R language hitters data analysis
R language drawing ggplot2 seasonal graph
Recommended system series (Lecture 5): Optimization Practice of sorting model
Sword finger offer II 091 Paint the house
Mysql8.0 and mysql5.0 accessing JDBC connections
Is it safe to open an account on Dongfang fortune
Implementation of commit message standardized control in large projects
大型项目中的Commit Message规范化控制实现
Mysql8.0和Mysql5.0访问jdbc连接
Practice of traffic recording and playback in vivo