你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

IAR 下载中报verify error at address错误

[复制链接]
power568 发布时间:2019-1-24 12:29
本帖最后由 power568 于 2019-1-24 12:29 编辑
6 _' ^) r, s8 R% `
( g" u/ w6 @: X$ O% V       最近将一个IAR下的M4的程序移植到M7上,移植之前M4的程序因为没有硬件没有验证过,当修改为所有的参数,编译都正确后仿真时,在下载过程中报了好多的警告——地址数据校验错误,错误如下:
  1. Thu Jan 24, 2019 07:33:44: Verify error at address 0x000080D1, target byte: 0x40, byte in file: 0x30 ; {$ Z- A( O- c% q( V) O
  2. Thu Jan 24, 2019 07:33:44: Warning:  
    " n! T+ b" w5 d1 E& G' f. \
  3. Thu Jan 24, 2019 07:33:44: Verify error at address 0x000080D2, target byte: 0x00, byte in file: 0xDF
    ' \, d8 i/ N1 B4 u
  4. Thu Jan 24, 2019 07:33:44: Warning:  
    4 {: V! C; D, W0 e: z
  5. Thu Jan 24, 2019 07:33:44: Verify error at address 0x000080D3, target byte: 0x80, byte in file: 0xF8
    / s7 g7 b5 s: _0 Y/ c. J- b
  6. Thu Jan 24, 2019 07:33:44: Warning: Too many verify errors, only the first 200 are displayed
    5 [; q( I# c, ~( G5 ?8 w! S
  7. Thu Jan 24, 2019 07:34:13: Warning: There were warnings during download, see Log Window * V0 i2 Q5 C  h+ c. r
  8. Thu Jan 24, 2019 07:34:13: Loaded debugee: D:\Test\pri\iar\STM32746G-EVAL2\Exe\OS3.out % c# q' \+ S/ M: d# G. `
  9. Thu Jan 24, 2019 07:34:13: Hardware reset with strategy 0 was performed
    * y0 v2 U- n1 t# S1 N* R
  10. Thu Jan 24, 2019 07:34:13: Target reset
    . |! }1 P2 }* \9 ^  I4 r
  11. Thu Jan 24, 2019 07:34:14: Failed to enable illegal breakpoint definition '{D:\Test\pri\app_main.c}.211.5'
    - S) y7 Y1 {, m: G- d* h4 C3 d
  12. Thu Jan 24, 2019 07:34:14: Failed to enable illegal breakpoint definition '{D:\Test\pri\app_main.c}.180.5'
    . [5 n6 Z7 @1 f/ Q, O, o. i
  13. Thu Jan 24, 2019 07:34:14: Failed to enable illegal breakpoint definition '{D:\Test\pri\IAR\os_cpu_a.asm}.188.1'
    . {" S* p0 a9 `. o% L
  14. Thu Jan 24, 2019 07:34:14: One or more breakpoints could not be set and have been disabled. , X2 R* e" c. i" h0 t
  15. Thu Jan 24, 2019 07:34:43: There were 2 warnings during the initialization of the debugging session.
    7 D! l3 }, n# _4 [
  16. Thu Jan 24, 2019 07:36:00: HardFault exception.
    ) [# E9 `$ e  F2 y- q8 y- U
  17. Thu Jan 24, 2019 07:36:00: The processor has escalated a configurable-priority exception to HardFault. " \7 D% a% ?) ?& r* l! b
  18. Thu Jan 24, 2019 07:36:00:    A bus fault has occurred on an instruction prefetch. # |' K  j: [! M
  19. Thu Jan 24, 2019 07:36:00:  
    , f! L1 H  G' r  }
  20. Thu Jan 24, 2019 07:36:00: Exception occured at: 0x0 4 r1 R7 [# Z6 X
  21. Thu Jan 24, 2019 07:36:00:  - @* h5 y) e0 L4 z9 @2 H9 B. ]
  22. Thu Jan 24, 2019 07:36:00: See the call stack for more information.
复制代码
      然后IAR就报错:; e6 C! W) s$ U
       11.PNG 5 U& `' z0 E" A
       一开始还以为没问题,点击OK继续执行,结果是程序直接跑飞了:
+ S& S, {% Y5 x! B5 x/ r! Q       13.PNG * Y1 ]9 C, `6 ^5 ]# `8 F$ I
       卡在了某个位置。然后问度娘,大概的意思是工程的配置不对,但是试了几个方法都没有凑效。于是自己使用STM32CubeMx新建了一个可以运行的工程,然后比较工程配置,最终发现是因为options->linker->config下的linker configuration file没设置flash的icf文件导致的,见下图:
. L! K% Q4 A9 o, \/ q$ Y       441.jpg , Z. m% `& K* v1 v5 N" e5 T
       选择正确的flash的icf后程序运行正常。
( x" _) z5 |7 u4 E0 S' h* P* l9 X7 F+ G6 i
收藏 评论3 发布时间:2019-1-24 12:29

举报

3个回答
zoomdy 回答时间:2019-1-24 14:25:25
watershade 回答时间:2019-1-25 10:17:58
学习一下。- }: B% c2 W" M5 B, S1 @
顺便想问一下,你见M4工程的时候上选择这个地方了吗?你是怎么移植的?是不是在原来的工程是直接修改而得。而不是将工程中的核心文件放到新建的IAR工程里面?
power568 回答时间:2019-3-17 10:33:16
watershade 发表于 2019-1-25 10:172 `+ o- u0 j" H
学习一下。5 S$ [& ]' k' `! x% g" \1 ~! W
顺便想问一下,你见M4工程的时候上选择这个地方了吗?你是怎么移植的?是不是在原来的工程是直 ...
; K# W  G$ w6 c+ w+ G2 O
将M4工程里的相关文件更换为M7的即可,当然会遇到不少的问题,哈哈哈...

所属标签

相似分享

关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新和工艺
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版