MPC5764F .text code section allocate to external memory

cancel
Showing results for 
Search instead for 
Did you mean: 

MPC5764F .text code section allocate to external memory

172 Views
Contributor I

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.

Labels (1)
0 Kudos
3 Replies

1 View
NXP Employee
NXP Employee

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

0 Kudos

1 View
Contributor I

Thank you for your answer Stan :smileyhappy:

I'll check this!

best regards.

Juntae.kim

0 Kudos

1 View
Contributor I

Exactly what I needed! You just saved me several hours. Thanks! myprepaidcenter

0 Kudos