AnsweredAssumed Answered

MPC5764F .text code section allocate to external memory

Question asked by juntae kim on Sep 19, 2019
Latest reply on Oct 21, 2019 by Dominic Coulson

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.

Outcomes