.phy文件的地址超出全局地址

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.phy文件的地址超出全局地址

3,205 Views
liukaifreedom
Contributor I


芯片MC9S12G128

 

 

S224027FA0.............................................................

S224027FC0.............................................................

S21B027FE0............................................................

S224288000..............................................................

S224288020..............................................................

S224288040..............................................................

S224288060................................................................

Labels (1)
0 Kudos
Reply
7 Replies

2,999 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

hello liu kai,

.phy file is used in P&E programming tool while Freescale Codewarrior use .s19 instead. Codewarrior can also generate .phy file which is for user's convenience to use it directly on P&E programming tools.

.phy file use physical address which is different as .s19 paged address. in burner.bbl, we can see the corresponding address relationship between these two format. please take a look at your burner.bbl file in your project folder.

for example, see burner.bbl:  See my comments:

origin = 0x088000                 /* s19 file address */

destination = 0x020000        /* corresponding phy file address  */

len = 0x4000

SENDBYTE 1 "%ABS_FILE%"

......

origin = 0x0A8000            /* s19 file address */

destination = 0x028000     /* corresponding phy file address  */

len = 0x4000

SENDBYTE 1 "%ABS_FILE%"

does this clarify the issue?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

2,999 Views
liukaifreedom
Contributor I

ZhangJennie:

你好,非常感谢你的回复!

在回复中,你谈到的在.bbl文件关于物理地址和逻辑地址的对应关系,分别对应于.phy文件和 .S19文件的下载地址。我还有一个问题不是很明白,想请教一下。

问题是:我们使用飞思卡尔的CodeWarrior编译的.phy文件的地址应该对应的物理地址,对应的全局地址范围应该是0---0x3FFFF,但是我们查看.phy文件,却发现地址到0x027FE0,后面接着的地址就是0x288000开始增加的,我们下载到开发板后,查看Ture-Time调试工具的memory时,发现.phy文件0x288000之后地址的数据和memory中0xa8000之后地址的数据(即对应0x28000地址)是相同的。所以比较困惑,不知是什么原因造成的?

希望得到你的帮助,谢谢!

0 Kudos
Reply

2,999 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

phy 文件用的是physical address. P&E公司的开发工具基本上都用phy格式的地址。

phy用的地址和你所说的global memory address 还是不同的。

用phy文件, 地址参考bbl文件里的对应关系就行了。

does this answer your question? please click the Correct Answer button. Thank you!


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

2,999 Views
liukaifreedom
Contributor I

ZhangJennie: 您好!不好意思,下班时间还打扰您。 有一个关于flash读的问题,请教你一下!根据mc9s12的数据手册,每次可以读四个word数据,但对于这四个数据,我怎么读取,怎么与FCCOB寄存器关联(读的数据用于校验写入的数据是否与下载文件的数据一致。)?

0 Kudos
Reply

2,999 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

this is  a new question about flash reading. can you please post it in MCU 16bit block, better in English. thus more engineers can read it. thanks!
Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

2,999 Views
liukaifreedom
Contributor I

你好!公司要我写个Bootloader程序,更新程序需要用到phy文件的物理地址,我的主管让我搞清楚为什么会出现0x288000这个地址,而在bbl文件中,这个地址是超出范围的。

0 Kudos
Reply

2,999 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

so did I answer your original question so far?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply