external flash programming with CME-0555

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

external flash programming with CME-0555

2,298 Views
xiaoZhang
Contributor I
hello,i get a problem when i am trying to download my program into external flash device AM29LV200B using flash programmer.
I download program into AM29LV200B,remove the BDM and power on,It does not run;But when i run the program from AM29LV200B using BDM in codewarrior,it works.i really do not know why!
I use the following development tools and configurations:
1、AXIOM's development board CME-0555 for MPC555
2、codewarrior 8.1 for MPC555
3、P&E Microcomputer BDM debug tool for MPC555
4、use CS0 to select the external flash AM29LV200B,mapping address 0x0-0x7ffff
5、config_switch 2、4 is on,others are all off
6、.cfg file, .lcf file and flash programmer configurations see below
Labels (1)
0 Kudos
3 Replies

526 Views
xiaoZhang
Contributor I
.lcf file
MEMORY { rom : org = 0x00000000 len = 0x80000     // mapping internal flash address ram : org = 0x003F9800 len = 0x6800      // internal RAM}/* We use FORCEACTIVE so that the linker will not deadstrip   the exception table gExceptionTable. */FORCEACTIVE { gExceptionTable }SECTIONS { .reset : {} > rom .init  : {} > rom GROUP : {  .text (TEXT) : {}  .rodata (CONST) : {   *(.rdata)   *(.rodata)  }  .ctors : {}  .dtors : {}  extab : {}  extabindex : {} } > rom GROUP : {  .data : {}  .sdata : {}  .sbss : {}  .sdata2 :{}  .sbss2 : {}  .bss : {}  .PPC.EMB.sdata0 : {}  .PPC.EMB.sbss0 : {} } > ram}
0 Kudos

526 Views
xiaoZhang
Contributor I
flash programmer settings:
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
- <fpconfig>
- <targetconfwindow>
 <usecustomsettings>true</usecustomsettings>
 <targetprocessor>555</targetprocessor>
 <connection>P&E BDM</connection>
 <usetargetinit>true</usetargetinit>
 <targetinitfile>D:\codewarrior projects\signals download\AXIOM_555debug_init.cfg</targetinitfile>
 <targetmembuffaddr>0x003F9800</targetmembuffaddr>
 <targetmembuffsize>0x00004500</targetmembuffsize>
 <enablelogging>true</enablelogging>
 <verifywrites>false</verifywrites>
 </targetconfwindow>
- <flashconfwindow>
 <membaseaddr>0x00000000</membaseaddr>
 <device>AM29LV200B</device>
 <organization>128Kx16x2</organization>
 <flashstart>0x00000000</flashstart>
 <flashend>0x0007FFFF</flashend>
 </flashconfwindow>
- <programverifywindow>
 <useselectedfile>true</useselectedfile>
 <projbuildtargetfile>D:\codewarrior projects\signals download\Bin\ExternalFlash.elf</projbuildtargetfile>
 <fileiotype>Elf Format</fileiotype>
 <restrictaddrrange>true</restrictaddrrange>
 <restrictaddrrangestart>0x00000000</restrictaddrrangestart>
 <restrictaddrrangeend>0x0007FFFF</restrictaddrrangeend>
 <applyaddroffset>false</applyaddroffset>
 <addroffset>0x00800000</addroffset>
 </programverifywindow>
- <eraseblankcheckwindow>
 <eraseallsectors>true</eraseallsectors>
 <sector />
 <processsectorsindividually>true</processsectorsindividually>
 </eraseblankcheckwindow>
- <checksumwindow>
 <computechecksumover>FileOnTarg</computechecksumover>
 <addrstart>0x00800000</addrstart>
 <addrsize>0x00100000</addrsize>
 </checksumwindow>
 </fpconfig>
0 Kudos

526 Views
xiaoZhang
Contributor I
.cfg file
;----------------------------------------------------------------------; Standard Initialization Code for AXIOM CME-555 Evaluation Board; version for DEBUG (execution in external );----------------------------------------------------------------------writereg MSR  0x00003002  ;RI=1, IP=0, ME=1, FP=1writereg SRR1  0x00003002writereg IMMR  0xFFF00000  ;FLEN=0 (internal Flash disabled)writereg BBCMCR  0x00000000  ;ETRE=0writereg ICTRL  0x00000007  ;normal not serialized modewritemem.l 0x2fc000 0x00000000 ;SIUMCRwritemem.l 0x2fc004 0xFFFFFF88 ;SYPCR (disable watchdog, bus monitor enable)writemem.l 0x2fc100 0x00000003 ;BR0 -at 0x00000000 - 0x0007FFFF), 512KByteswritemem.l 0x2fc104 0xFFF80022 ;OR0writemem.l 0x2fc108 0x00400003 ;BR1 -at 0x00400000 - 0x0047FFFF), 512KByteswritemem.l 0x2fc10c 0xFFF80022 ;OR1writemem.l 0x2fc110 0x00800003 ;BR2 -at 0x00800000 - 0x0087FFFF), 512KByteswritemem.l 0x2fc114 0xFFF80022 ;OR2writemem.l 0x2fc140 0x00000000      ;DMBRwritemem.l 0x2fc144 0x00000000 ;DMORwritemem.w 0x300000 0x0000  ;DPTMCRwritemem.w 0x300004 0xFFA0  ;RAMBARwritemem.w 0x305014 0x0000  ;PORTQSwritemem.w 0x305016 0x0000  ;PQSPAR/DDRQSwritemem.w 0x306100 0x0000  ;MPIOSMDRwritemem.w 0x306102 0x0000  ;MPIOSMDDRwritemem.w 0x306800 0x0000  ;MIOS1TPCRwritemem.l 0x380000 0x00000000 ;SRAMMCRwritemem.l 0x2fc024 0x00000000 ;SGPIODT1writemem.l 0x2fc028 0x00000000 ;SGPIODT2writemem.l 0x2fc02c 0x00000000 ;SGPIOCRwritemem.l 0x2fc030 0x00000000 ;EMCR;writemem.l 0x307f80 0x00000000 ;UMCRwritemem.l 0x2fc384 0x55ccaa33  ;PLPRCRK, open keywritemem.l 0x2fc284 0x00900000  ;PLPRCR, 40MHz;writemem.l 0x2fc380 0x55ccaa33  ;SCCRK, open key;writemem.l 0x2fc280 0x00010000  ;SCCR#-------------------------------------------------------------------# The debugger sets the DER register based on the EPPC Exceptions# preference panel after running this initialization file, this# this value will be overwritten.  We only put it in here because# the flash programmer uses this file also.#--------------------------------------------------------------------writereg DER  0x73e67c0f  ;DER
0 Kudos