i 关于IAREWSTM8 HEX文件-嵌入式MCU技术-电子人社区 -

电子人社区

 找回密码
 立即注册
今日 : 0|主题 : 4177|排名 : 314 
打印 上一主题 下一主题

关于IAREWSTM8 HEX文件

发表于 2019-1-13 12:28:45 | 112650 只看该作者 回帖奖励 |倒序浏览 |阅读模式

[复制链接]
发表于 2019-1-13 12:28:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
电子人社区网讯:   研究了一下BIN与HEX的关系,发现由BIN转到HEX比较简单,但是由BIN转到HEX就觉得多了一行东西。
  本文引用地址: http://www.21ic.com/app/mcu/201812/781936.htm
  上图看一下:

  用别人写的代码也是一样多出来。
  上网找了一下发现也有人跟我遇到相同的问题:http://bbs.21ic.com/icview-187817-1-1.html
  并且给出了答案
  以":0400000508004ABDE8"为例子。
  其中的地址是0x08004ABD,当下载代码到芯片里后(不勾选 run to main),程序恰好停在 0x08004ABD,对应于标号: __iar_program_start
  维基百科是这么说:
  http://en.wikipedia.org/wiki/Intel_HEX
  05,Start Linear Address Record. The address field is 0000, the byte count is 04. The 4 data bytes represent the 32-bit value loaded into the EIP register of the 80386 and higher CPU.
  根据http://en.wikipedia.org/wiki/X86_assembly_language
  Theinstruction pointeris called ip in 16-bit mode, eip in 32-bit mode, and rip in 64-bit mode. The instruction pointer register points to the memory address which the processor will next attempt to execute
  实际上 EIP 寄存器就是 STM8或者ARM芯片的PC指针。
  可见,上面维基百科的描述是对的:类型05后面跟的是4字节地址,将赋给(STM8或者ARM芯片的)PC指针。

来源:网络转载

 

                                                   转载请注明:电子人社区

0条回复
跳转到指定楼层

发表回复

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

本版积分规则

QQ|电子人物联网  

Copyright 2013 最新最精彩-社区论坛 版权所有 All Rights Reserved.

QQ|电子人物联网  

GMT+8, 2024-5-1 23:50 , Processed in 0.101528 second(s), 31 queries.

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