MCUXpresso Memory placement Error

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

MCUXpresso Memory placement Error

1,886 次查看
remibusseuil
Contributor II

Hi All

 

I am having an issue with the memory mapping in MCUXpresso. I am using an LPC4088 and external flash and external RAM.

I am following the instructions of the MCUXPresso manual :

Setting the memory allocation and flash drivers

remibusseuil_0-1736797039455.png

remibusseuil_1-1736797107300.png

I declare my RAM  using __DATA(RAM3)

remibusseuil_2-1736797137884.png

And my External flash using __TEXT(EXT_FLASH)

remibusseuil_3-1736797228363.png

Somehow when I compile the program the linker puts the data of the external RAM in the external RAM AND in the internal flash...

remibusseuil_4-1736797449511.png

I am out of ideas on why it happens... Is this a bug? is this memory allocation actually working in the first place? 

Thanks for your help

 

Remi

 

 

 

 

0 项奖励
回复
9 回复数

1,637 次查看
Habib_MS
NXP Employee
NXP Employee

Hello @remibusseuil,

I still working in this issue, but I cannot solve it. However, if you import an LPCopen example you can configure more memory sections without problems.

BR
Habib

0 项奖励
回复

1,505 次查看
Habib_MS
NXP Employee
NXP Employee

Hello @remibusseuil,

Could you try open MCUxpresso as admin in order to see if it solves the issue?

BR
Habib

0 项奖励
回复

1,497 次查看
remibusseuil
Contributor II
Thanks!
0 项奖励
回复

1,477 次查看
Habib_MS
NXP Employee
NXP Employee

Hello @remibusseuil,
Did you solve the issue?
BR
Habib

0 项奖励
回复

1,470 次查看
remibusseuil
Contributor II
Hi No it is still a big issue
0 项奖励
回复

1,287 次查看
Habib_MS
NXP Employee
NXP Employee

Hello @remibusseuil,

In order to add new FLASH, you can follow two ways:

1. Via MCU settings:

Create a new RAM/FLASH in MCU settings, properties->C/C++ build->MCU settings:

Habib_MS_1-1742604490921.png

 

 Click on Refresh MCU cache:

Habib_MS_2-1742604517373.png

Click on apply and close:

Habib_MS_3-1742604546729.png

2. Click on Edit memory in Project settings->memory->Edit memory:

Habib_MS_4-1742604654881.png

Add a new FLASH and press OK :

Habib_MS_5-1742604766069.png

Finally, are you currently experiencing any other problems?

If the response is yes, do not hesitate to let me know

BR
Habib.

0 项奖励
回复

1,875 次查看
remibusseuil
Contributor II

additionnally I run into the problem of the memory allocation does not persist after a restart of MCUxpresso:

remibusseuil_0-1736801613895.png

Really what is happening? is this a pre pre alpha release?

0 项奖励
回复

1,785 次查看
Habib_MS
NXP Employee
NXP Employee

Hello @remibusseuil,
I followed the chapter 7 called "Creating New Projects using Pre-Installed Part Support" in the MCUXpresso IDE User Guide, and It works correctly, however I get the same error, when I close the project the memory regions defined disappears, this is because the linker file is not configured with the new regions. I will ask internally in order to obtain more information. Please take in mind that it could be a few days, thank you for your patience.
BR
Habib.

0 项奖励
回复

1,883 次查看
remibusseuil
Contributor II

To make it clear here i set an array bigger than the flash memory but smaller than the external RAM and the program cannot compile because it copies the memory of the RAM in the flash.........

remibusseuil_0-1736797817550.png

 

0 项奖励
回复