金牌会员
- 积分
- 1107
- 金钱
- 1107
- 注册时间
- 2016-3-25
- 在线时间
- 359 小时
|
目标:在STM32F103C8T6最小系统核心板成功移植UCOSIII,并建立两个任务LED1 一秒闪状态转换一次 ;LED2 五秒状态转换一次。
开发板:STM32F103C8T6最小系统核心板
硬件配置:LED1 ----- GPIOB_8
LED2-------GPIOB_12
编译信息如下:
*** Using Compiler 'V5.05 update 2 (build 169)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target '多任务切换 LED'
assembling startup_stm32f10x_hd.s...
compiling core_cm3.c...
compiling system_stm32f10x.c...
compiling misc.c...
compiling stm32f10x_adc.c...
compiling stm32f10x_bkp.c...
compiling stm32f10x_can.c...
compiling stm32f10x_cec.c...
compiling stm32f10x_crc.c...
compiling stm32f10x_dac.c...
compiling stm32f10x_dbgmcu.c...
compiling stm32f10x_dma.c...
compiling stm32f10x_exti.c...
compiling stm32f10x_flash.c...
compiling stm32f10x_fsmc.c...
compiling stm32f10x_gpio.c...
compiling stm32f10x_i2c.c...
compiling stm32f10x_iwdg.c...
compiling stm32f10x_pwr.c...
compiling stm32f10x_rcc.c...
compiling stm32f10x_rtc.c...
compiling stm32f10x_sdio.c...
compiling stm32f10x_spi.c...
compiling stm32f10x_tim.c...
compiling stm32f10x_usart.c...
compiling stm32f10x_wwdg.c...
compiling stm32f10x_it.c...
compiling app.c...
compiling os_app_hooks.c...
compiling bsp.c...
compiling bsp_led.c...
compiling cpu_core.c...
assembling cpu_a.asm...
compiling cpu_c.c...
compiling lib_ascii.c...
compiling lib_math.c...
compiling lib_mem.c...
compiling lib_str.c...
assembling lib_mem_a.asm...
compiling os_cfg_app.c...
compiling os_core.c...
compiling os_dbg.c...
compiling os_flag.c...
compiling os_int.c...
compiling os_mem.c...
compiling os_msg.c...
compiling os_mutex.c...
compiling os_pend_multi.c...
compiling os_prio.c...
compiling os_q.c...
compiling os_sem.c...
compiling os_stat.c...
compiling os_task.c...
compiling os_tick.c...
compiling os_time.c...
compiling os_tmr.c...
compiling os_var.c...
assembling os_cpu_a.s...
compiling os_cpu_c.c...
linking...
Program Size: Code=19828 RO-data=864 RW-data=268 ZI-data=18100
".\Objects\ISO-STM32.axf" - 0 Error(s), 0 Warning(s).
Build Time Elapsed: 00:00:18
Load "C:\\Users\\Administrator\\Desktop\\uCOSIII(STM32F103C8移植模板)\\Project\\RVMDK(uv5)\\Objects\\ISO-STM32.axf"
Erase Done.
Programming Done.
Verify OK.
Flash Load finished at 01:05:25
开发板图:看附件
移植过程参考了F407上移植ucosiii,遇到过很多问题,花了几个小时 还是移植成功 了。
附件为移植好的HEX文件。感兴趣的朋友可以下载到板子上测试一下,板子如上图。只要在两引脚接一个LED灯即可。
|
|