;bdiGDB configuration file for programming MPC5534 internal flash ; --------------------------------------------------------------- ; ; ; WTLB : ; ; The parameter defines the effective page number, space, size and WIMG flags (MAS1/MAS2): ; ; +--------------------+----+--+------+ ; | EPN |SIZE|PS|VWIMGE| P = IPROT ; +--------------------+----+--+------+ S = TS ; 20 4 2 6 ; ; The parameter defines the real page number and access rights (MAS3): ; ; +--------------------+--+----+------+ ; | RPN |--|UUUU|XXWWRR| ; +--------------------+--+----+------+ ; 22 4 6 ; ; [INIT] ; WTLB 0xFFF0058A 0xFFF0003F ;Bridge B: 0xfff00000 -> 0xfff00000, 1MB, --I-G- WTLB 0xC3F0058A 0xC3F0003F ;Bridge A: 0xc3f00000 -> 0xc3f00000, 1MB, --I-G- WTLB 0x4000048A 0x4000003F ;Int.SRAM: 0x40000000 -> 0x40000000, 256KB, --I-G- WTLB 0x0000078A 0x0000003F ;Flash : 0x00000000 -> 0x00000000, 16MB, --I-G- ; FILL 0x40000000 0x10000 ;init ECC-SRAM ; ; Speed-up system clock WM32 0xC3F80000 0x01000000 ;FMPLL_SYNCR: MFD=2,RFD=0 -> fsys = 48MHz ; ; Lock/Unlock Flash Blocks for Erase/Programming WM32 0xC3F88004 0xA1A11111 ; FLASH_LMLR : unlock register WM32 0xC3F88004 0x001CFFFF ; FLASH_LMLR : lock/unlock blocks WM32 0xC3F8800C 0xC3C33333 ; FLASH_SLMLR: unlock register WM32 0xC3F8800C 0x001CFFFF ; FLASH_SLMLR: lock/unlock blocks WM32 0xC3F88008 0xB2B22222 ; FLASH_HLR : unlock register WM32 0xC3F88008 0x0FFFFFF0 ; FLASH_HLR : lock/unlock blocks ; [TARGET] CPUTYPE 5534 ;the used target CPU type ;JTAGCLOCK 1 ;BDI2000: use 8 MHz JTAG clock JTAGCLOCK 3 ;BDI3000: use 8 MHz JTAG clock POWERUP 2000 ;start delay after power-up detected in ms WAKEUP 100 ;give reset time to complete STARTUP HALT BREAKMODE HARD ;SOFT or HARD, HARD uses PPC hardware breakpoint STEPMODE HWBP ;JTAG or HWBP, HWPB uses one or two hardware breakpoints MEMACCESS NEXUS ;select ONCE or NEXUS memory access mode [HOST] IP 151.120.25.112 ;Windows host PROMPT PROG5534> [FLASH] WORKSPACE 0x40001000 ;workspace at 0x40001000 CHIPTYPE H7F ;MPC5534 internal flash FILE E:/temp/dump512k.bin FORMAT BIN 0x00040000 ERASE 0x00000003 MID ;erase 2 blocks in Mid Space ERASE 0x0000000F HIGH ;erase 4 blocks in High Space [REGS] FILE $reg5534.def