Relocating particular objects into RAM

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

Relocating particular objects into RAM

Jump to solution
1,461 Views
nickwallis
Senior Contributor I

Hi,

I am following mcuxpresso IDE user guide section 17.15.1 to relocate particular objects into RAM.

I added a linkscripts folder to my project and put 3 linker script templates in their as advised (main_text.ldt, main_rodata.ldt and main_data.ldt)

Clean project and build, but I get a linker error message that says "cannot find main_text.ldt", but the file is definitely there.

Is there some steps missing from the user guide? Or did I miss something else?

I took a look at the flash_component_nor example project and noticed that the files in the linkscripts folder for that have different names (bss.ldt and data.ldt) but the main_text.ldt is the same.

many thanks

-Nick

0 Kudos
1 Solution
1,387 Views
nickwallis
Senior Contributor I

Hi,

In the end, this was a typo in the linker script files.

I followed exactly what is said in the user guide, but it turns out that the 1st line of the examples should not be in the file.

 

Perhaps the documentation could be clearer?

-Nick

 

mcuxpresso linker script files.jpg

View solution in original post

0 Kudos
3 Replies
1,388 Views
nickwallis
Senior Contributor I

Hi,

In the end, this was a typo in the linker script files.

I followed exactly what is said in the user guide, but it turns out that the 1st line of the examples should not be in the file.

 

Perhaps the documentation could be clearer?

-Nick

 

mcuxpresso linker script files.jpg

0 Kudos
1,373 Views
lpcxpresso_supp
NXP Employee
NXP Employee

Hi,

We'll update the doc to avoid this confusion.

Regards,

MCUXpresso IDE Support

0 Kudos
1,429 Views
lpcxpresso_supp
NXP Employee
NXP Employee

Hi,

Simple usage of this feature did not reveal any issue. Can you please let us know:

1. What MCUXpresso IDE version you use

2. What host OS

3. What SDK (device or board target and version)

4. Is your project using linked sources/folders?

5. Is your project physically located within or outside the workspace filepath?

Regards,

MCUXpresso IDE Support

0 Kudos