野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5016|回复: 1

UC/OS III移植到F103指南者碰到编译出现错误

[复制链接]
发表于 2017-10-12 09:22:58 | 显示全部楼层 |阅读模式

*** Using Compiler 'V5.05 update 2 (build 169)', folder: 'D:\Keil5\ARM\ARMCC\Bin'
Build target 'Led'
compiling app.c...
..\..\User\BSP\bsp.h(78): error:  #5: cannot open source input file "bsp_os.h": No such file or directory
  #include  <bsp_os.h>
..\..\User\APP\app.c: 0 warnings, 1 error
compiling bsp.c...
..\..\User\BSP\bsp.h(78): error:  #5: cannot open source input file "bsp_os.h": No such file or directory
  #include  <bsp_os.h>
..\..\User\BSP\bsp.c: 0 warnings, 1 error
"..\..\Output\流水灯.axf" - 2 Error(s), 0 Warning(s).
Target not created.

Build Time Elapsed:  00:00:03

如上为KEIL的编译结果,按照火哥书上所述应该是 由于工程没有使用μC/OS-Ⅲ源码中 STM32 的
“stm32f10x_lib.h”总头文件,在这里使用裸机例程里已有的“stm32f10x.h”文件,但是打开了“stm32f10x.h”不知道怎么进行下去了。
说明:正在使用的是野火官方论坛的STM32F103mini(指南者)开发板


教程中描述的这个文件没有找到,烦请大神帮忙指点一下,感激不尽

教程中描述的这个文件没有找到,烦请大神帮忙指点一下,感激不尽
回复

使用道具 举报

发表于 2017-10-12 10:08:21 | 显示全部楼层
直接参考配套的ucos例程
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-9 07:09 , Processed in 0.028778 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表