Relocating particular objects into RAM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Relocating particular objects into RAM

跳至解决方案
1,371 次查看
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 项奖励
1 解答
1,297 次查看
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 项奖励
3 回复数
1,298 次查看
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 项奖励
1,283 次查看
lpcxpresso_supp
NXP Employee
NXP Employee

Hi,

We'll update the doc to avoid this confusion.

Regards,

MCUXpresso IDE Support

0 项奖励
1,339 次查看
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 项奖励