How can I set a cmm file for flashing two elf files?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How can I set a cmm file for flashing two elf files?

2,641件の閲覧回数
limheesun
Contributor II

Hi. 

I made two projects of MPC5744P for bootloader.

One is a application project and the other is a bootloader project.

And I tried to flash two elf files of these projects.

But there is an error.

So, I want to know that how can I make it?

I attached my cmm file.

I hope your help and I'll appreciate it.

Thanks. 

Original Attachment has been moved to: MPC5744p_FLASH.cmm.zip

0 件の賞賛
返信
3 返答(返信)

2,227件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hi,

I have check your cmm file and it looks OK. There is no issue.

You should look at you *elf files generated by compiler. I expect issue there.

Maybe overlapping regions, or you are trying load code into incorrect memory locations. There could be lot of possible issues.

Peter

0 件の賞賛
返信

2,227件の閲覧回数
limheesun
Contributor II

Thank you for your answer. 

But I can't solve this problem yet.

When I don't use this cmm file, flashing is well done. 

In this case, I used commands of Trace32. 

Just.

Sys.Reset

Sys.up

FLASH. ReProgram Erase

FLASH. ReProgram ALL

data.load.elf "D:\MPC5744_Application\Debug\MPC5744_Application.elf"
data.load.elf "D:\MPC5744_Bootloader\Debug\MPC5744_Bootloader.elf"
FLASH.ReProgram.off

And then I can check the result of flashing  in the flash memory. 

But when I use cmm file, bus error is occured.

The error comment is "bus error generated by cpu" when the command__data.load.elf "D:\MPC5744_Application\Debug\MPC5744_Application.elf"__ is read.

So, I think this cmm file has something wrong.

What am I miss?TT

Thanks.

0 件の賞賛
返信

2,227件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hi,

I have used your script for loading mine example code and I have no issue.

Try to use for example:

Data.LOAD.auto ../ghs/core0.elf

Instead of:

data.load.elf "D:\MPC5744_Application\Debug\MPC5744_Application.elf"

But I still see no issue here. Maybe your PC has some restrictions in accessing to this files on your HDD.

You can also see more details if you click on "view" -> message area.

Peter

0 件の賞賛
返信