Hello.
I use the MPC5674F MCU.
I want to allocate code section (.text section) to external memory.
Below is part of my 'lcf' Linker file.
MEMORY
{
.
.
.
.
internal_flash: org = 0x00030000, len = 0x003D0000
internal_ram: org = 0x40000000, len = 0x00030000
heap : org = 0x40030000, len = 0x00008000
stack : org = 0x40038000, len = 0x00008000
external_ssram: org = 0x20000000, len = 0x00800000
}
.
.
.
GROUP : {
.text : {}
.text_vle (VLECODE) : {
*(.text)
*(.text_vle)
}
.rodata (CONST) : {
*(.rdata)
*(.rodata)
}
.ctors : {}
.dtors : {}
extab : {}
extabindex : {}
} > internal_flash
When I changed the above " > internal_flash" to " > external_ssram", My MCU doesn't work.
How can I allocate (.text) section to external memory?
Please let me know.
Thank you.
Hello,
you are missing one additional step to switch from internal flash -> external sram.
Debugger launch script shall configure the external memory (EBI registers) before "programming" the binary file into MCU.
Please check this example:
https://community.nxp.com/docs/DOC-344472
hope it helps.
Stan
Thank you for your answer Stan :smileyhappy:
I'll check this!
best regards.
Juntae.kim
Exactly what I needed! You just saved me several hours. Thanks! myprepaidcenter