Redlib in special memory section

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Redlib in special memory section

222 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xpresso_1769 on Tue Jun 04 08:08:01 MST 2013
Hi there,
I'm currently working with Redsuite 4.2.2 and a LPC1768...

I have also included the Redlib.

My question is now, is it possible to link all functions which are included from the redlib into a special memory section? I thought at the section attribute and a spezial linkerscript?!  :confused:

Is that possible?
Thanks in advance!

Oli
0 Kudos
2 Replies

211 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Wed Jun 05 04:32:33 MST 2013
Why do you want to do this?

All code will be placed in the .text section, initialized data in the .data section and uninitialized data in the .bss section. Depending on how code-red compiled their libraries, they may have placed each function into its own section (i.e. .text_function_name) - you would have to look in the link map to find out.

So, you would need to create a linker script that assigns EVERY section to a specific memory region. You would have to update this every time you added/removed a function. A lot of work.

So, again, why do you want to do this?
0 Kudos

211 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xpresso_1769 on Wed Jun 05 04:10:16 MST 2013
Nobody an idea?!
0 Kudos