MPC8360 reset configuration word

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

MPC8360 reset configuration word

2,267 Views
admin
Specialist II
Hi,
We design a MPC8360 ver. 2.0 PPC board. The configuration words to be read via local bus from the FLASH memory. On board we have a blank Flash memory.
How we can via Codewarrior can write the configuration word into the Flash memory?
Naftali
Labels (1)
0 Kudos
Reply
1 Reply

529 Views
Black
Contributor I

If you are using a custom board, as a first step you must to be able to debug a project using a board-specific init.cfg file. Furthermore, "Verify Memory Writes" must be checked in the project's EPPC Debugger Settings panel. Once the debugger can step and run through the main code on the board with Verify Memory Writes on, you can build the ROM version of the project and program the flash.

You can specify a hardware reset configuration word (HRCW) for debug purposes in project settings Remote debugging->CodeWarrior USB TAP (or CodeWarrior Ethernet TAP)->Edit Connection->Use JTAG configuration file, with examples and guidelines in the CodeWarrior installation folder>\PowerPC_EABI_Support\Initialization_Files\jtag_chains. Please use the 8360_rev2_HRCW_jtag.txt file from this folder as an example.

You can program the binary file containing the HRCW with the CodeWarrior Flash Programmer.

To change the value of an existing HRCW (you can use your evaluation board for this procedure) you should follow the next steps:

    1. Save the Flash Sector containing the HRCW to a binary file (usually the first sector)
    2. Modify using a hex-editor the HRCW in the above file to the desired value

    3. Erase that flash sector using the Flash Programmer
    4. Re-flash the flash sector with the modified binary file
    5. Reset the board

I hope this helps.

0 Kudos
Reply