Error while creating linker script

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Error while creating linker script

ソリューションへジャンプ
207件の閲覧回数
ping1
Contributor V

Dear all

I am recently updated to MCUXpresso v11.10.0, and use SDK 2.15 for RT1024 EVK, I am tried to reconfigure FlexRAM to be difference sizes and get rid of external RAM, however, it comes with an error like attached image. I am trying to follow the link https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs-Knowledge/Reallocating-the-FlexRAM/ta-p/1117649, and it worked for me with previous version on SDK 2.12 and IDE v11.8. is anything changed that resulted it not working any more?

Regards!

Ping

 
 

 

0 件の賞賛
返信
1 解決策
53件の閲覧回数
mayliu1
NXP Employee
NXP Employee

Hi @ping1 ,

 

Thanks for your updated information.

I am sorry, but according to  NXP's latest policy, I can't send the code directly to the customer.

I suggest you can refer to the NXP AN 12077 and https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs-Knowledge/Reallocating-the-FlexRAM/ta-p/1117649.

I think your first question is about Error while creating linker script, and now you can compile successfully, and you want continue develop your project, right?

Please check your project really use external SRAM, Please develop your project based on your HW design.

As for Board_ConfigMPU config, I just did a test for you, I did not config MPU. Please config MPU based on your real project, you can  refer to links which I post to you.

 

Best Regards
MayLiu

元の投稿で解決策を見る

0 件の賞賛
返信
13 返答(返信)
187件の閲覧回数
mayliu1
NXP Employee
NXP Employee

Hi @ping1 ,

 

Thank you so much for your interest in our products and for using our community.

I suggest you check if your MCUXpresso IDE and SDK versions are compatible.

For example:

Please import a SDK demo,  for example "evkmimxrt1024_hello_world"

Open readme.md, in this file, you can see detail information.

Fig1.png

Wish it helps you.
If you still have question about it, please kindly let me know.

Wish you a nice day!

Best Regards
MayLiu

0 件の賞賛
返信
185件の閲覧回数
ping1
Contributor V

Hi, May

Thanks for reply.

I am developing new product and would like to use new SDK & IDE versions. Just installed v2.15 SDK, I thought minimum IDE for it is v11.8, and anything above should work with that as it is backwards compatible. is that right?

Regards!

Ping

 

0 件の賞賛
返信
204件の閲覧回数
edwin678
Contributor I

Hello,

Yes, it's very likely that changes between MCUXpresso IDE versions (11.8 to 11.10) and SDK versions (2.12 to 2.15) have introduced incompatibilities or modified the behavior of FlexRAM configuration. Let's break down the potential causes and how to troubleshoot them:

1. SDK Changes (2.12 to 2.15):

FlexRAM Driver Updates: The SDK's FlexRAM driver (if it exists as a separate module) might have been updated. This could involve changes in register definitions, configuration APIs, or how the driver interacts with the hardware.
Memory Map Changes: The overall memory map of the RT1024 might have been adjusted in the newer SDK. This could affect the address ranges expected by the FlexRAM configuration tool.
BootROM/System Initialization: Changes in the boot ROM or the system initialization code might be interfering with your FlexRAM configuration.
Peripheral Driver Dependencies: The FlexRAM configuration might rely on other peripheral drivers. Changes in those drivers could indirectly impact FlexRAM.
2. MCUXpresso IDE Changes (11.8 to 11.10):

Configuration Tool Updates: The MCUXpresso IDE's FlexRAM configuration tool itself might have been modified. This could lead to different code generation or validation behavior.
Linker Script Changes: The IDE's default linker scripts for the RT1024 might have been updated. This could cause conflicts with your custom FlexRAM configuration.
Compiler/Toolchain Updates: The underlying compiler and toolchain might have been updated. This could lead to different code generation or optimization behavior that affects FlexRAM initialization.
Debug Configuration: Changes in the debug configuration settings could affect how the FlexRAM is initialized during debugging.

0 件の賞賛
返信
167件の閲覧回数
ping1
Contributor V

Hi, May

I am trying to use SDKv2.15, what IDE version shall I use for that please?

Regards!

Ping

0 件の賞賛
返信
159件の閲覧回数
ping1
Contributor V

Hi, May

I rolled back to old version of SDK(2.12) and IDE(11.6) according to the readme file, the problem remains, I am running out of my wit to the issue, it worked before with my other projects earlier stages with probably earlier version of IDE & SDK . Whatever it changed later causes the bug maybe, one thing I also changed is that, I am now trying to use freeRTOS.

BTW, with IDE v11.10 and SDK 2.16 for RT1064, it works! But for now, I have to use RT1024.

Regards!

Ping

0 件の賞賛
返信
141件の閲覧回数
mayliu1
NXP Employee
NXP Employee

Hi @ping1 ,

Thanks for your updated information.

I suggest you can updated your MCUXPresso IDE and SDK version to the latest version(V24.12).

https://www.nxpic.org.cn/module/forum/thread-619452-1-1.html

You can also refer to this Link, it is similar to RT1024.

I suggest you check whether your RT1024_connect.scp file is compatible with your modification.

Fig1.png

Wish it helps you.
If you still have question about it, please kindly let me know.

Wish you a nice day!

Best Regards
MayLiu

0 件の賞賛
返信
139件の閲覧回数
ping1
Contributor V

I initially done that and was told there was issues with v24.xx, so rolled back to v11.10. BTW, where can I find the RT1024_connect.scp please?

Ping

0 件の賞賛
返信
133件の閲覧回数
mayliu1
NXP Employee
NXP Employee

Hi @ping1 ,

 

Thanks for your updated information.

I just did a test for you.

MCUXPresso IDE version is MCUXpresso IDE v24.12

SDK version : 24.12.00

I use MIMXRT1024-EVK board and SDK demo"evkmimxrt1024_freertos_hello",

I also reconfigure FlexRAM to be difference sizes.

I refer to this link https://www.nxpic.org.cn/module/forum/thread-619452-1-1.html

 

Fig3.png

My demo runs Ok, no errors.

Regarding "where can I find the RT1024_connect.scp please?"

Please refer to next link.

Fig4.png

 

Please check the difference, If you still have problems, Please create a new works space, and try again.

 

Wish you a nice day!

Best Regards
MayLiu

0 件の賞賛
返信
128件の閲覧回数
ping1
Contributor V

Thanks, May

I have several versions of IDE installed, when try to use linker script, not sure which one to use when it load, also, how can I know it is compatible?

Will try IDEv24 & SDK v24 as well.

Ping 

タグ(1)
0 件の賞賛
返信
111件の閲覧回数
ping1
Contributor V

Hi, May

Downloaded and installed just as you did - both v24.12, it works with Hello freertos example just as you said, but when I do the same to lwip_mqtt_freertos example, same error appeared again.

urgent help is needed pls

Regards!

Ping

0 件の賞賛
返信
90件の閲覧回数
mayliu1
NXP Employee
NXP Employee

Hi @ping1 ,

As for your case, I did a test again for you.

MCUXPresso IDE version is MCUXpresso IDE v24.12

SDK version : 24.12.00

I use MIMXRT1024-EVK board, I import SDK demo "evkmimxrt1024_lwip_mqtt_freertos", I  also reconfigure FlexRAM to be difference sizes follow the previous post link .

I can compile and run the demo, no errors.

Fig1.png

 

Wish it helps you.
If you still have question about it, please kindly let me know.

Wish you a nice day!

Best Regards
MayLiu

0 件の賞賛
返信
80件の閲覧回数
ping1
Contributor V

Hi, May

In addition to reconfigure FlexRAM size, I also removed external SRAM as my target board don't have that, will that causes issue? That was what I did before without issues ~3 years ago. I noticed external RAM is being used mainly, and I later I moved it down, so internal ones are used instead. that seems OK for now, but I haven't tried to reconfigure the DTC size to 128K yet. I have to modify Board_ConfigMPU() to do that, did you do that too? it will be idea if you can send me your modified project, so I can check what I did wrong.

Regards!

Ping

0 件の賞賛
返信
54件の閲覧回数
mayliu1
NXP Employee
NXP Employee

Hi @ping1 ,

 

Thanks for your updated information.

I am sorry, but according to  NXP's latest policy, I can't send the code directly to the customer.

I suggest you can refer to the NXP AN 12077 and https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs-Knowledge/Reallocating-the-FlexRAM/ta-p/1117649.

I think your first question is about Error while creating linker script, and now you can compile successfully, and you want continue develop your project, right?

Please check your project really use external SRAM, Please develop your project based on your HW design.

As for Board_ConfigMPU config, I just did a test for you, I did not config MPU. Please config MPU based on your real project, you can  refer to links which I post to you.

 

Best Regards
MayLiu

0 件の賞賛
返信