移植uCOS-II到STM32F103平台详细步骤


目录

一、环境

二、移植uCOS-II准备工作

三、移植uCOS-II

四、下载到开发板及实验操作步骤


 

一、环境

软件环境:KEIL-MDK v-5.24a

硬件:NEWLabM3开发板

 

二、移植uCOS-II准备工作

准备好uCOS-II源码、uCOS-II官方移植到STM32F107的Demo、STM32F103裸机Demo

uCOS-II源码下载地址:

(1)百度网盘: http://pan.baidu.com/s/1eRHYeJo                 提取码:d1pj

(2)百度网盘:https://pan.baidu.com/s/1eyU0fEiZf7F_x52fIgVNig       提取码:4yu6 

(3)微信 扫描二维码提取:

         

 

三、移植uCOS-II

1.压缩包解压后如图所示:

2.在裸机代码STM32F103_Demo中添加一个目录uCOS-II(已添加)

3.在uCOS-II目录下新建两个目录Ports和Source(已添加)

(1)Source目录包含 与处理器无关操作系统内核代码

(2)Ports目录包含    与处理器有关需要移植代码

4.将准备目录下的Micrium \ uCOS-II \ Source下除 os_cfg_r.h 和 os_dbg_r.c 全部复制到移植工程 STM32F103_Demo \ uCOS-II 目录的Source下(已存在,建议再次进行替换)

复制后(STM32F103_Demo \ uCOS-II 目录的Source下):

5.将准备目录下 Micrium_uC-Eval-STM32F107_uCOS-II \ Software \ uCOS-II \ Ports \ ARM-Cortex-M3 \ Generic \ RealViem 下的全部文件拷贝到移植工程 STM32F103_Demo \ uCOS-II 目录的Ports下(已存在,建议再次进行替换)

复制后(STM32F103_Demo \ uCOS-II 目录的Ports下):

6.将准备目录下 Micrium_uC-Eval-STM32F107_uCOS-II \ Software \ EvalBoards \ Micrium \ uC-Eval-STM32F107 \ uCOS-II 下的四个文件拷贝到移植工程 STM32F103_Demo 的App目录下

四个文件为:

        app_cfg.h、app_hooks.c、includes.h、os_cfg.h

 

  • 8
    点赞
  • 49
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
\SOFTWARE The main directory from the root where all software-related files are placed. \SOFTWARE\BLOCKS The main directory where all ‘Building Blocks’ are located. With μC/OS-II, I included a ‘building block’ that handles DOS-type compatible functions that are used by the example code. \SOFTWARE\BLOCKS\TO This directory contains the files for the TO utility (see Appendix E, TO). The source file is TO.C and is found in the \SOFTWARE\TO\SOURCE directory. The DOS executable file (TO.EXE) is found in the \SOFTWARE\TO\EXE directory. Note that TO requires a file called TO.TBL which must reside on your root directory. An example of TO.TBL is also found in the \SOFTWARE\TO\EXE directory. You will need to move TO.TBL to the root directory if you are to use TO.EXE. \SOFTWARE\uCOS-II The main directory where all μC/OS-II files are located. \SOFTWARE\uCOS-II\EX1_x86L This directory contains the source code for EXAMPLE #1 (see section 1.07, Example #1) which is intended to run under DOS (or a DOS window under Windows 95). \SOFTWARE\uCOS-II\EX2_x86L This directory contains the source code for EXAMPLE #2 (see section 1.08, Example #2) which is intended to run under DOS (or a DOS window under Windows 95). \SOFTWARE\uCOS-II\EX3_x86L This directory contains the source code for EXAMPLE #3 (see section 1.09, Example #3) which is intended to run under DOS (or a DOS window under Windows 95). \SOFTWARE\uCOS-II\Ix86L This directory contains the source code for the processor dependent code (a.k.a. the port) of μC/OS-II for an 80x86 Real-Mode, Large Model processor. \SOFTWARE\uCOS-II\SOURCE This directory contains the source code for processor independent portion of μC/OS-II. This code is fully portable to other processor architectures.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值