[STM32F0] 大家注意了!!!STM32F0 IAP升级程序

[复制链接]
14304|17
 楼主| wangzhihai1986 发表于 2014-10-28 17:15 | 显示全部楼层 |阅读模式
本帖最后由 wangzhihai1986 于 2014-10-28 17:17 编辑

ST提供的STM32F0xx_AN4065_FW_V1.0.0例程,用串口进行IAP升级的。其中有部分代码是错误的。如下 :
/* Relocate by software the vector table to the internal SRAM at 0x20000000 ***/  

  /* Copy the vector table from the Flash (mapped at the base of the application
     load address 0x08003000) to the base address of the SRAM at 0x20000000. */
  for(i = 0; i < 48; i++)
  {
    VectorTable = *(__IO uint32_t*)(APPLICATION_ADDRESS + (i<<2));
  }

  /* Enable the SYSCFG peripheral clock*/
RCC_APB2PeriphResetCmd(RCC_APB2Periph_SYSCFG, ENABLE);
  /* Remap SRAM at 0x00000000 */
  SYSCFG_MemoryRemapConfig(SYSCFG_MemoryRemap_SRAM);

应改为:RCC_APB2PeriphClockCmd
(RCC_APB2Periph_SYSCFG, ENABLE);
FAQ 发表于 2014-10-28 17:59 | 显示全部楼层
关注下。
gxliu08 发表于 2014-10-28 19:47 | 显示全部楼层
谢谢提醒!
 楼主| wangzhihai1986 发表于 2014-10-28 20:03 | 显示全部楼层
如果IAP程序是操作系统,也要看下CONTROL寄存器的1位。
huangfeng33 发表于 2014-10-30 13:48 | 显示全部楼层
谢谢分享啊,希望是修改后的源码可以直接使用。
Marco-Marco 发表于 2014-12-3 10:05 | 显示全部楼层
确实是被坑过一次。
yyxlmq1314 发表于 2014-12-5 21:49 | 显示全部楼层
这几天在研究这个东西,看看是不是有问题
realmcu 发表于 2015-2-27 14:14 | 显示全部楼层
你好,请问你下载的IAP程序 有没有出现以下问题呢?
Error: L6971E: bspcfg.o(.data) type RW incompatible with main.o(.ARM.__AT_0x20000000) type ZI in er RW_IRAM1.

我现在遇到如下的问题。
realmcu 发表于 2015-2-27 14:14 | 显示全部楼层
你好,请问你下载的IAP程序 有没有出现以下问题呢?
Error: L6971E: bspcfg.o(.data) type RW incompatible with main.o(.ARM.__AT_0x20000000) type ZI in er RW_IRAM1.

我现在遇到如下的问题。
realmcu 发表于 2015-2-27 14:16 | 显示全部楼层
你好,请问你下载的IAP程序 有没有出现以下问题呢?
Error: L6971E: bspcfg.o(.data) type RW incompatible with main.o(.ARM.__AT_0x20000000) type ZI in er RW_IRAM1.

我现在遇到如下的问题。
搞IT的 发表于 2015-2-28 16:46 | 显示全部楼层
关注下,谢谢提醒啦
 楼主| wangzhihai1986 发表于 2015-3-6 17:28 | 显示全部楼层
realmcu 发表于 2015-2-27 14:14
你好,请问你下载的IAP程序 有没有出现以下问题呢?
Error: L6971E: bspcfg.o(.data) type RW incompatibl ...

不太清楚。
wenlong0601 发表于 2015-7-14 14:41 | 显示全部楼层
realmcu 发表于 2015-2-27 14:16
你好,请问你下载的IAP程序 有没有出现以下问题呢?
Error: L6971E: bspcfg.o(.data) type RW incompatibl ...

iarm起始地址改下就不会出错了。
wenlong0601 发表于 2015-7-14 14:50 | 显示全部楼层
请问,哪位大神搞定m0的iap了啊?我按照官网的,搞了好久,进来app,串口没输出,也没中断,led灯控制倒是会闪。
wenlong0601 发表于 2015-7-16 10:22 | 显示全部楼层
楼主,我改了这个语句还是不行啊。https://bbs.21ic.com/icview-1002816-1-1.html
putron09 发表于 2015-9-9 13:49 | 显示全部楼层
赶紧收藏
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:熟练掌握STM32F系列芯片,USB和以太网都可以做,要外包的可以联系我(QQ:594378180)。

21

主题

333

帖子

2

粉丝
快速回复 在线客服 返回列表 返回顶部