summaryrefslogtreecommitdiff
path: root/Demo/ColdFire_MCF52259_CodeWarrior/cfg
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/ColdFire_MCF52259_CodeWarrior/cfg')
-rw-r--r--Demo/ColdFire_MCF52259_CodeWarrior/cfg/MCF52259_INTERNAL_FLASH.cfg14
-rw-r--r--Demo/ColdFire_MCF52259_CodeWarrior/cfg/MCF52259_INTERNAL_FLASH.mem31
-rw-r--r--Demo/ColdFire_MCF52259_CodeWarrior/cfg/MCF52259_INTFLASH.xml48
-rw-r--r--Demo/ColdFire_MCF52259_CodeWarrior/cfg/mcf5225xEVB_PnE.cfg14
4 files changed, 107 insertions, 0 deletions
diff --git a/Demo/ColdFire_MCF52259_CodeWarrior/cfg/MCF52259_INTERNAL_FLASH.cfg b/Demo/ColdFire_MCF52259_CodeWarrior/cfg/MCF52259_INTERNAL_FLASH.cfg
new file mode 100644
index 00000000..b4c1de16
--- /dev/null
+++ b/Demo/ColdFire_MCF52259_CodeWarrior/cfg/MCF52259_INTERNAL_FLASH.cfg
@@ -0,0 +1,14 @@
+ResetHalt
+
+; Set VBR to the beginning of what will be SRAM
+; VBR is an absolute CPU register
+writecontrolreg 0x0801 0x20000000
+
+; Set RAMBAR1 (SRAM)
+writecontrolreg 0x0C05 0x20000021
+
+; Set FLASHBAR (Flash)
+writecontrolreg 0x0C04 0x00000061
+
+; Enable PST[3:0] signals
+writemem.b 0x40100074 0x0F
diff --git a/Demo/ColdFire_MCF52259_CodeWarrior/cfg/MCF52259_INTERNAL_FLASH.mem b/Demo/ColdFire_MCF52259_CodeWarrior/cfg/MCF52259_INTERNAL_FLASH.mem
new file mode 100644
index 00000000..b9db30c4
--- /dev/null
+++ b/Demo/ColdFire_MCF52259_CodeWarrior/cfg/MCF52259_INTERNAL_FLASH.mem
@@ -0,0 +1,31 @@
+// Memory Configuration File
+//
+// Description:
+// A memory configuration file contains commands that define the legally accessible
+// areas of memory for your specific board. Useful for example when the debugger
+// tries to display the content of a "char *" variable, that has not yet been initialized.
+// In this case the debugger may try to read from a bogus address, which could cause a
+// bus error.
+//
+// Board:
+// Freescale MCF52259
+//
+// Reference:
+//
+
+
+// All reserved ranges read back 0xBABA...
+reservedchar 0xBA
+
+address IPSBAR_BASE 0x40000000
+
+usederivative "MCF52259"
+
+// Memory Map:
+// ----------------------------------------------------------------------
+range 0x00000000 0x0007FFFF 4 Read // 512 KByte Internal Flash Memory
+reserved 0x00080000 0x1FFFFFFF
+range 0x20000000 0x2000FFFF 4 ReadWrite // 64 Kbytes Internal SRAM
+reserved 0x20010000 0x3FFFFFFF
+// $IPSBAR_BASE $IPSBAR_BASE + 0x1FFFFF // Memory Mapped Registers
+reserved $IPSBAR_BASE + 0x200000 0xFFFFFFFF
diff --git a/Demo/ColdFire_MCF52259_CodeWarrior/cfg/MCF52259_INTFLASH.xml b/Demo/ColdFire_MCF52259_CodeWarrior/cfg/MCF52259_INTFLASH.xml
new file mode 100644
index 00000000..729339dd
--- /dev/null
+++ b/Demo/ColdFire_MCF52259_CodeWarrior/cfg/MCF52259_INTFLASH.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
+
+<fpconfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="fp_config.xsd">
+
+ <targetconfwindow>
+ <usecustomsettings>false</usecustomsettings>
+ <targetprocessor>52259</targetprocessor>
+ <connection></connection>
+ <usetargetinit>true</usetargetinit>
+ <targetinitfile>{CodeWarrior}\ColdFire_Support\Initialization_Files\MCF52259.cfg</targetinitfile>
+ <targetmembuffaddr>0x20000000</targetmembuffaddr>
+ <targetmembuffsize>0x00008000</targetmembuffsize>
+ <enablelogging>true</enablelogging>
+ <verifywrites>false</verifywrites>
+ </targetconfwindow>
+
+ <flashconfwindow>
+ <membaseaddr>0x00000000</membaseaddr>
+ <device>CFM_MCF5225X_512</device>
+ <organization>32Kx16x1</organization>
+ <flashstart>0x00000000</flashstart>
+ <flashend>0x0007FFFF</flashend>
+ </flashconfwindow>
+
+ <programverifywindow>
+ <useselectedfile>false</useselectedfile>
+ <projbuildtargetfile>nofile</projbuildtargetfile>
+ <fileiotype>Auto Detect</fileiotype>
+ <restrictaddrrange>false</restrictaddrrange>
+ <restrictaddrrangestart>0x00000000</restrictaddrrangestart>
+ <restrictaddrrangeend>0x0007FFFF</restrictaddrrangeend>
+ <applyaddroffset>false</applyaddroffset>
+ <addroffset>0x00000000</addroffset>
+ </programverifywindow>
+
+ <eraseblankcheckwindow>
+ <eraseallsectors>true</eraseallsectors>
+ <sector/>
+ <processsectorsindividually>false</processsectorsindividually>
+ </eraseblankcheckwindow>
+
+ <checksumwindow>
+ <computechecksumover>FileOnTarg</computechecksumover>
+ <addrstart>0x00000000</addrstart>
+ <addrsize>0x0000FFFF</addrsize>
+ </checksumwindow>
+
+</fpconfig>
diff --git a/Demo/ColdFire_MCF52259_CodeWarrior/cfg/mcf5225xEVB_PnE.cfg b/Demo/ColdFire_MCF52259_CodeWarrior/cfg/mcf5225xEVB_PnE.cfg
new file mode 100644
index 00000000..b4c1de16
--- /dev/null
+++ b/Demo/ColdFire_MCF52259_CodeWarrior/cfg/mcf5225xEVB_PnE.cfg
@@ -0,0 +1,14 @@
+ResetHalt
+
+; Set VBR to the beginning of what will be SRAM
+; VBR is an absolute CPU register
+writecontrolreg 0x0801 0x20000000
+
+; Set RAMBAR1 (SRAM)
+writecontrolreg 0x0C05 0x20000021
+
+; Set FLASHBAR (Flash)
+writecontrolreg 0x0C04 0x00000061
+
+; Enable PST[3:0] signals
+writemem.b 0x40100074 0x0F