External ram debugging, please help!!!
"pablo_r_c" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Hi to everybody, i´m Pablo from Spain.
I want to set up codewarrior to debug programs in external SRAM. My
hardware consist of PB555 Axion board (no external memory included)
and a memory expansion board that i designed. The expansion board
has a bank of 512kbytes that can be setted up the start adrress (at
0x00100000, 0x0020000, 0x0040000 and 0x0080000) and the chip select
( CS0, CS1, CS2).
By now i´m able to run my programs in internal flash (including
interrupts). For save Flash burns, i would like to debug my
aplication in external ram but i have some doubts about how to
configure the .lcf Codewarrior linker file.
With this configuration:
512Kbytes -> 128Kx32 External SRAM
CS0
BR0=0x00400003
OR0=0xFFF8002
BaseAddress 0x00400000,Size 0x00080000 32bits port size,bust inhibit
What i have to write in the .lcf file to configure it correctly for
run the same program that it´s working in internal flash.?
Do i have to disable the internal flash? If this is right, and the
internal memory map of the mpc555 ends at 0x03ffffff. If the
internal memory is disabled the new start address correspond to
0x04000000?
I would be so thankfull if someone can help me.
My linker command file is:
_flash_source = 0x00; // **NOTE: MUST match RAM buffer
address
// setting in linker preference panel
MEMORY {
ram : org = 0x003fa000, len = 0x4000
rom : org = 0x00000000 // ROM address (boot address for 555)
}
FORCEACTIVE { gInterruptVectorTable, __reset }
SECTIONS {
.reset : {} > rom
.init : {} > rom
GROUP : {
.text (TEXT) ALIGN(0x1000) : {}
.rodata (CONST) : {
*(.rdata)
*(.rodata)
}
.ctors : {}
.dtors : {}
extab : {}
extabindex : {}
} > rom
GROUP : {
.data : {}
.sdata : {}
.sbss : {}
.sdata2 : {}
.sbss2 : {}
.bss : {}
.PPC.EMB.sdata0 : {}
.PPC.EMB.sbss0 : {}
} > ram
}
-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MPC500/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/