OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 3583|回复: 2

STM32L162移植UCOSIII错误求解

[复制链接]

2

主题

6

帖子

0

精华

新手上路

积分
45
金钱
45
注册时间
2016-7-4
在线时间
23 小时
发表于 2016-7-5 14:13:27 | 显示全部楼层 |阅读模式
1金钱
keil版本:5.17.0.0
UCOSIII:3.03.01
CPU:STM32L162


移植错误如下:
*** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'UCOSIII-LED'
assembling startup_stm32l1xx_hd.s...
compiling os_app_hooks.c...
compiling stm32l1xx_it.c...
compiling app.c...
..\APP\app.c(92): warning:  #223-D: function "CPU_IntDisMeasMaxCurReset" declared implicitly
                  CPU_IntDisMeasMaxCurReset();
..\APP\app.c(53): warning:  #177-D: variable "AppTaskStartTCB" was declared but never referenced
  static  OS_TCB   AppTaskStartTCB;
..\APP\app.c(54): warning:  #177-D: variable "AppTaskStartStk" was declared but never referenced
  static  CPU_STK  AppTaskStartStk[APP_CFG_TASK_START_STK_SIZE];
..\APP\app.c(156): warning:  #177-D: function "AppTaskStart" was declared but never referenced
  static  void  AppTaskStart (void *p_arg)
..\APP\app.c: 4 warnings, 0 errors
compiling bsp.c...
compiling misc.c...
compiling stm32l1xx_aes.c...
compiling stm32l1xx_adc.c...
compiling stm32l1xx_comp.c...
compiling stm32l1xx_aes_util.c...
compiling stm32l1xx_crc.c...
compiling stm32l1xx_dma.c...
compiling stm32l1xx_dac.c...
compiling stm32l1xx_dbgmcu.c...
compiling stm32l1xx_flash.c...
..\Libraries\STM32L1xx_StdPeriph_Driver\src\stm32l1xx_flash.c(1246): error:  #136: struct "<unnamed>" has no field "WRP1213"
        WRP1213_Data = (uint16_t)(((OB_WRP3 &
RP1213_MASK) |
B->WRP1213));
..\Libraries\STM32L1xx_StdPeriph_Driver\src\stm32l1xx_flash.c(1247): error:  #136: struct "<unnamed>" has no field "WRP1415"
        WRP1415_Data = (uint16_t)((((OB_WRP3 &
RP1415_MASK)>>16 |
B->WRP1415)));
..\Libraries\STM32L1xx_StdPeriph_Driver\src\stm32l1xx_flash.c(1249): error:  #136: struct "<unnamed>" has no field "WRP1213"

B->WRP1213 = tmp1;
..\Libraries\STM32L1xx_StdPeriph_Driver\src\stm32l1xx_flash.c(1252): error:  #136: struct "<unnamed>" has no field "WRP1415"

B->WRP1415 = tmp2;      
..\Libraries\STM32L1xx_StdPeriph_Driver\src\stm32l1xx_flash.c(1257): error:  #136: struct "<unnamed>" has no field "WRP1213"
        WRP1213_Data = (uint16_t)(~OB_WRP3 & (
RP1213_MASK &
B->WRP1213));
..\Libraries\STM32L1xx_StdPeriph_Driver\src\stm32l1xx_flash.c(1258): error:  #136: struct "<unnamed>" has no field "WRP1415"
        WRP1415_Data = (uint16_t)((((~OB_WRP3 &
RP1415_MASK)>>16 &
B->WRP1415)));
..\Libraries\STM32L1xx_StdPeriph_Driver\src\stm32l1xx_flash.c(1261): error:  #136: struct "<unnamed>" has no field "WRP1213"

B->WRP1213 = tmp1;
..\Libraries\STM32L1xx_StdPeriph_Driver\src\stm32l1xx_flash.c(1264): error:  #136: struct "<unnamed>" has no field "WRP1415"

B->WRP1415 = tmp2;
..\Libraries\STM32L1xx_StdPeriph_Driver\src\stm32l1xx_flash.c(1692): error:  #136: struct "<unnamed>" has no field "WRPR3"
    return (uint32_t)(
LASH->WRPR3);
..\Libraries\STM32L1xx_StdPeriph_Driver\src\stm32l1xx_flash.c: 0 warnings, 9 errors
compiling stm32l1xx_exti.c...
compiling stm32l1xx_flash_ramfunc.c...
compiling stm32l1xx_gpio.c...
compiling stm32l1xx_fsmc.c...
compiling stm32l1xx_i2c.c...
compiling stm32l1xx_iwdg.c...
compiling stm32l1xx_lcd.c...
compiling stm32l1xx_opamp.c...
compiling stm32l1xx_pwr.c...
compiling stm32l1xx_rcc.c...
compiling stm32l1xx_rtc.c...
compiling stm32l1xx_sdio.c...
compiling stm32l1xx_spi.c...
compiling stm32l1xx_syscfg.c...
compiling stm32l1xx_usart.c...
compiling stm32l1xx_tim.c...
compiling lib_ascii.c...
compiling stm32l1xx_wwdg.c...
compiling system_stm32l1xx.c...
compiling lib_math.c...
assembling lib_mem_a.asm...
compiling lib_str.c...
compiling lib_mem.c...
assembling cpu_a.asm...
compiling cpu_c.c...
compiling cpu_core.c...
compiling os_cfg_app.c...
compiling os_dbg.c...
compiling os_core.c...
compiling os_int.c...
compiling os_flag.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_tick.c...
compiling os_task.c...
compiling os_time.c...
compiling os_var.c...
compiling os_tmr.c...
compiling os_cpu_c.c...
assembling os_cpu_a.s...
".\Objects\UCOSIII-LED.axf" - 9 Error(s), 4 Warning(s).
Target not created.
Build Time Elapsed:  00:00:11


望大神求解

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

2

主题

6

帖子

0

精华

新手上路

积分
45
金钱
45
注册时间
2016-7-4
在线时间
23 小时
 楼主| 发表于 2016-7-5 14:24:58 | 显示全部楼层
怎么没人,原子哥求解???
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165536
金钱
165536
注册时间
2010-12-1
在线时间
2117 小时
发表于 2016-7-6 21:41:43 | 显示全部楼层
根据报错提示修改。
回复

使用道具 举报

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

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-10 13:40

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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