LPC54606 Undeclared memory region

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

LPC54606 Undeclared memory region

ソリューションへジャンプ
1,142件の閲覧回数
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 件の賞賛
返信
1 解決策
1,043件の閲覧回数
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.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,044件の閲覧回数
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.
-------------------------------------------------------------------------------

0 件の賞賛
返信
1,043件の閲覧回数
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 件の賞賛
返信