MCUXpresso Memory placement Error

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

MCUXpresso Memory placement Error

1,879 Views
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 Kudos
Reply
9 Replies

1,630 Views
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 Kudos
Reply

1,498 Views
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 Kudos
Reply

1,490 Views
remibusseuil
Contributor II
Thanks!
0 Kudos
Reply

1,470 Views
Habib_MS
NXP Employee
NXP Employee

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

0 Kudos
Reply

1,463 Views
remibusseuil
Contributor II
Hi No it is still a big issue
0 Kudos
Reply

1,280 Views
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 Kudos
Reply

1,868 Views
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 Kudos
Reply

1,778 Views
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 Kudos
Reply

1,876 Views
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 Kudos
Reply