MPC55xx:How to create my own initialization file?

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

MPC55xx:How to create my own initialization file?

5,692 Views
Ian92
Contributor I
Hi,
   I just setup my USBTAP connected with my board.  Now I am trying to flash my u-boot.bin to the flash but still have trouble until now.  I have added my own flash config and select the PQ27e_init.cfg as the Target Configutaion file.  However, when I begin to erase the flash it ends up with a failure message and below message I dumped from the logfile.
 
======================================================================
=== Target Configuration Settings
=== Connection:      
CodeWarrior USB TAP
=== Target Processor:
8247
=== Target Init File:
/usr/local/Freescale/CodeWarriorIDE/CodeWarrior/PowerPC_EABI_Support/Initialization_Files/PQ2/PQ27e_init.cfg
======================================================================
Connecting...
...Connected

======================================================================
=== Execute:
Erase
=== Timestamp: 
Wed Nov 29 16:48:45 2006
=== Flash Device:        
S29GL256N
=== Flash Organization:  
32Mx8x2
=== Flash Mem Start Addr:
0xFE000000
=== Flash Mem End Addr:  
0xFFFFFFFF
======================================================================
Using Algorithm: amd8x2alt.elf
 
Loading Flash Device Driver at: 0x00000000
Flash Programmer: Can not read target memory at location: 0x00000000.
Please make sure that the chip selects are properly configured.
The CWPP response code is: 0x0.
Timestamp: 
Wed Nov 29 16:48:50 2006
 
I am wondering if I need to create a customized Target Initialization file instead of using the PQ27e_init.cfg.  Is there any help or document I can obtain? Plz help! Thanks.
 
Below is my test environment:
Board: MPC8247, 128MB SDRAM
IDE: CodeWarrior IDE version 5.7.0 build 1917(CW_EPPC_2.6_Build_60213), USBTAP ROHS updated
OS: Fedora Core4
 
 
/Ian
 

Message Edited by CrasyCat on 2007-04-13 11:32 AM

Labels (1)
0 Kudos
Reply
5 Replies

1,518 Views
CrasyCat
Specialist III
Hello
 
Did  you check "Troubleshooting the CodeWarrior Flash Programmer " that you can find in the CodeWarrior EPPC web page
 
CrasyCat
0 Kudos
Reply

1,518 Views
Ian92
Contributor I
Hi,
  Thanks for the reply.  I have looked into the document you mentioned, but I think the problem is raised by the wrong Initialization files.  Since my board is not an evaluation board and I must do some modifications on the example files or create a custom one .
 So my real problem is how this file generated,  how to set those memory register correctly.  Thank you!
 
0 Kudos
Reply

1,518 Views
CrasyCat
Specialist III
Hello
 
Initialization file is not generated automatically. We have some sample initialization file available in {Install}\PowerPC_EABI_Support\Initialization_Files and its sub-directories.
 
If your own board does not match the delivered ones, you have to create your own file.
Syntax of the command in a debug initialization file can be found in Targeting Embedded PowerPC.pdf manual.
Take a look at chapter "Debug Initialization Files"
 
Basically this file should set up all board and on-chip configuration registers to allow you to connect to the board and access the memory.
 
CrasyCat
0 Kudos
Reply

1,518 Views
rosssi
Contributor I
Hi,
 
I have a simillar issue with two of the boards I'm working on. I'm using MPC5554. These two boards (not evaluation boards btw) were working perfectly fine up to couple of hours ago when I tried erasing the whole memory map and reprogramming part of flash. First I tried easing the whole memory map when Flash Programmer Tool got stalled (Erasing ...) and never completed the task. After cancelling the Erase Command I have not been able to neither erase nor reprogramm any one of these two boards.
 
The following is Log mesage which I get everytime I try to Erase:
 
======================================================================
=== Target Configuration Settings
=== Connection:       P&E NEXUS
=== Target Processor: 5554
=== Target Init File: C:\Program Files\Metrowerks\MPC55xx V1.5\bin\Plugins\Support\MPC55XXWizard\DataBase\config\MPC5554DEMO_AXM-0321_ROM.cfg
======================================================================
Connecting......Connected

======================================================================
=== Execute: Erase
=== Timestamp:  Tue Dec  5 15:50:36 2006
=== Flash Device:         MPC5554
=== Flash Organization:   2Mx8x1
=== Flash Mem Start Addr: 0x00000000
=== Flash Mem End Addr:   0x001DFFFF
======================================================================
Using Algorithm: mpc5554.elf
 
Loading Flash Device Driver at: 0x40000000
Flash Programmer: Can not read target memory at location: 0x40001BF8. Please make sure that the chip selects are properly configured. The CWPP response code is: 0x0.
Timestamp:  Tue Dec  5 15:50:41 2006
I am running out of pcb boards and time.
 
Thanks,
 
Ross

Message Edited by CrasyCat on 2007-04-13 11:32 AM

0 Kudos
Reply

1,518 Views
muralee
Contributor I
hi,
        Even i am having the same problem. If anyone have solved it please guide me also. I am using MPC8247 processor with Codewarrior usb tab emulator. I am stuck in the initializtion files only. Any tutorials on "how to make the config files", please send me the link.

Regards,
Muralee.


0 Kudos
Reply