MPC 8280

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决
1,912 次查看
monalihaware
Contributor III

I am using cw 8.8 with MPC 8280. I want to run my application from Flash. What steps are to be followed for it? Is 'ROM version' required for this purpose?

标签 (1)
0 项奖励
回复
1 解答
1,442 次查看
addiyi
NXP Employee
NXP Employee

Please make sure you followed the steps from 8280_AM_README.txt:

"NOTE: ROM Version target

------------------------

The ROM version target creates a bootable image for the application at 0xFFF00000.

To boot the ROM image you must assure first that the Hard Configuration Word (HCW)

stored in the first flash sector is set to boot-high. To change the value of the

HCW you should follow the next steps:

    1. Save First Flash Sector to a binary file

    2. Modify using a hex-editor the HCW in the above file from 0x0A068700

       to 0x08040700 (to set boot high, move the exception vectors to

       0xFFFn_nnnn and set an initial IMMR value of 0xF0000000)

    3. Erase the first flash sector using the Flash Programmer

    4. Re-flash the first sector with the modified binary file

    5. Reset the board.

After writing to flash the ROM image of the default application, the board should

output "Welcome to CodeWarrior!" on the serial monitor port (SMC1) after reset.

IMPORTANT NOTE !!!

------------------

If the board is set to boot-high you must use 8280_AM_Rattler_init_high.cfg and

8280_AM_Rattler_init_ROM_high.cfg as debugger and Flash Programmer target initialization

files.

Both files can be found in <CodeWarrior>\PowerPC_EABI_Support\Initialization_Files\Jtag

folder."

Adrian

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,442 次查看
addiyi
NXP Employee
NXP Employee

Hi,

To download an application in flash memory, you should use ROM version for Build Configurations option.

Adrian

0 项奖励
回复
1,442 次查看
monalihaware
Contributor III

HI Adrian,

I tried doing that. I even wrote an LCF file also.

Actually i have an application with prints a statement through serial port(using SCM uart). NOw when the application is run in 'Debug' version, i see the output in the hyperterminal. So debug version has no problem. But whereas when i go for ROM version, and after dumping the program in FLASH, On power up, hyoerterminal comes blank. Seems that code is not burned properly in Flash. How to find regarding where the mistake is?

Thanks & Regards

Monali Haware

TO

Corporate R&D

Electronic Corporation of India Ltd(ECIL)

A Government of India Enterprise(Department of Atomic Energy)

ECIL Post, Hyderabad, A.P (India)-500062

Ph No: +91-40-27186812,Fax No: +91-40-27121318

Mail id:monali@ecil.co.in

URL:www.ecil.co.in

-- Original Message --

From: Adrian-Mihai Stoica <admin@community.freescale.com>

To: monali haware <monali@ecil.co.in>

Date: Tue, 21 Jan 2014 02:38:55 -0700

Subject: Re: - MPC 8280

MPC 8280

reply from <https://community.freescale.com/people/addiyi?et=watches.email.thread>Adrian-Mihai Stoica in Classic/Legacy CodeWarrior - <https://community.freescale.com/message/374772?et=watches.email.thread#374772>View the full discussion

Hi,

To download an application in flash memory, you should use ROM version for Build Configurations option.

Adrian

Reply to this message by replying to this email, or <https://community.freescale.com/message/374772?et=watches.email.thread#374772>go to the message on Freescale Community

Start a new discussion in Classic/Legacy CodeWarrior by <discussions-community-codewarrior-classic@freescale.hosted.jivesoftware.com>email or at <https://community.freescale.com/choose-container.jspa?contentType=1&amp;containerType=14&amp;container=2031&amp;et=watches.email.thread>Freescale Community

Following <https://community.freescale.com/message/374772?et=watches.email.thread#374772>MPC 8280 in these streams: Inbox

::DISCLAIMER::

0 项奖励
回复
1,442 次查看
addiyi
NXP Employee
NXP Employee

Did you use init_file for ROM (should be something like: 8280_init_ROM.cfg), when you download the application to target board? Also, please take a look in 8280_AM_README.txt (available in PowerPC_EABI_Support\Documentation\PQ2\), ROM Version target section.

Adrian

0 项奖励
回复
1,441 次查看
monalihaware
Contributor III

Hi Adrian,

I am using it indeed. sending you 1 copy.

Flash base address is 0x00000000

SDRAM base address is 0x20000000.

This same file i had been using with 'debug version'.

Regards,

Monali

-- Original Message --

From: Adrian-Mihai Stoica <admin@community.freescale.com>

To: monali haware <monali@ecil.co.in>

Date: Tue, 21 Jan 2014 03:27:55 -0700

Subject: Re: - MPC 8280

MPC 8280

reply from <https://community.freescale.com/people/addiyi?et=watches.email.thread>Adrian-Mihai Stoica in Classic/Legacy CodeWarrior - <https://community.freescale.com/message/374776?et=watches.email.thread#374776>View the full discussion

Did you use init_file for ROM (should be something like: 8280_init_ROM.cfg), when you download the application to target board?

Adrian

Reply to this message by replying to this email, or <https://community.freescale.com/message/374776?et=watches.email.thread#374776>go to the message on Freescale Community

Start a new discussion in Classic/Legacy CodeWarrior by <discussions-community-codewarrior-classic@freescale.hosted.jivesoftware.com>email or at <https://community.freescale.com/choose-container.jspa?contentType=1&amp;containerType=14&amp;container=2031&amp;et=watches.email.thread>Freescale Community

Following <https://community.freescale.com/message/374776?et=watches.email.thread#374776>MPC 8280 in these streams: Inbox

::DISCLAIMER::

0 项奖励
回复
1,443 次查看
addiyi
NXP Employee
NXP Employee

Please make sure you followed the steps from 8280_AM_README.txt:

"NOTE: ROM Version target

------------------------

The ROM version target creates a bootable image for the application at 0xFFF00000.

To boot the ROM image you must assure first that the Hard Configuration Word (HCW)

stored in the first flash sector is set to boot-high. To change the value of the

HCW you should follow the next steps:

    1. Save First Flash Sector to a binary file

    2. Modify using a hex-editor the HCW in the above file from 0x0A068700

       to 0x08040700 (to set boot high, move the exception vectors to

       0xFFFn_nnnn and set an initial IMMR value of 0xF0000000)

    3. Erase the first flash sector using the Flash Programmer

    4. Re-flash the first sector with the modified binary file

    5. Reset the board.

After writing to flash the ROM image of the default application, the board should

output "Welcome to CodeWarrior!" on the serial monitor port (SMC1) after reset.

IMPORTANT NOTE !!!

------------------

If the board is set to boot-high you must use 8280_AM_Rattler_init_high.cfg and

8280_AM_Rattler_init_ROM_high.cfg as debugger and Flash Programmer target initialization

files.

Both files can be found in <CodeWarrior>\PowerPC_EABI_Support\Initialization_Files\Jtag

folder."

Adrian

0 项奖励
回复