Stack overflow issue on LPC54606

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

Stack overflow issue on LPC54606

585 Views
mxl2007
Contributor II

在MCUXpresso IDE环境下:在mcu 为LPC54606的开发板上面增加USB1的 host_msd_command_bm sample验证usb1口的u-disk时(USB1有接出来usb A口),出现stack overflow如下:

pastedImage_1.png

我有尝试着在Managed Linker Script选项中将stack的Default size(4KB)改为0xA000(40KB),但是在build project时又会报错sram_upper overflow,如下截图:

pastedImage_2.png

还请高手指教是什么原因造成的?我该如何修改,不胜感激!!

注:开发板没有外接SDRAM,只有内部128KB的SRAM可用。

Labels (1)
0 Kudos
3 Replies

511 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Shawn,

To check your problem, we need reproduce first. please send us your demo project thus we can shoot the trouble directly.

Thanks

Jun Zhang

0 Kudos

511 Views
mxl2007
Contributor II

Hi Jennie,

Thank for your support. There is only one motherboard under development. So it may be later to send the motherboard to you. If possible, Can you give me some ideas or methods to solve this problem?

Best regards

shawn

0 Kudos

511 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Shawn,

You define stack and heap in SRAM_UPPER. from the error message the SRAM_UPPER is not big enough to load them.

you need decrease stack or heap size, or load them in other bigger size SRAM region.

Jun Zhang