LPC54606 Undeclared memory region

cancel
Showing results for 
Search instead for 
Did you mean: 

LPC54606 Undeclared memory region

Jump to solution
242 Views
j3ll3
Contributor I

Hello all,

When using the MCUXpresso SDK 2.5 with arm embedded GCC compiler I believe there is a bug in the LPC54606 linker file. 

The following memory areas are declared:

/* Specify the memory areas */
MEMORY
{
m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400
m_text (RX) : ORIGIN = 0x00000400, LENGTH = 0x0007FC00
m_data (RW) : ORIGIN = 0x20000000, LENGTH = 0x00028000
m_sramx (RW) : ORIGIN = 0x04000000, LENGTH = 0x00008000
m_usb_sram (RW) : ORIGIN = 0x40100000, LENGTH = 0x00002000
}

But there is a mapping to the memory area "m_data_3" that does not exist:

/* Initializes stack on the end of block */
__StackTop = ORIGIN(m_data_3) + LENGTH(m_data_3);
__StackLimit = __StackTop - STACK_SIZE;
PROVIDE(__stack = __StackTop);

This results in the following GCC linker warning:

LPC54606J512_flash.ld:183: warning: memory region `m_data_3' not declared

The code does not work since the stack is now undefined. As workaround I use the LPC54608J512 linker file which works but it is not the best solution.

0 Kudos
1 Solution
143 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Jelle,

This defect will be fixed in next release.

Thank you for bringing the problem to our attention.


Have a great day,
Jun Zhang

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
144 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Jelle,

This defect will be fixed in next release.

Thank you for bringing the problem to our attention.


Have a great day,
Jun Zhang

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
143 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Jelle,

I will contact designer for this issue. I will keep you informed.

Have a nice day,

Jun Zhang

0 Kudos