在MCUXpresso IDE环境下:在mcu 为LPC54606的开发板上面增加USB1的 host_msd_command_bm sample验证usb1口的u-disk时(USB1有接出来usb A口),出现stack overflow如下:
我有尝试着在Managed Linker Script选项中将stack的Default size(4KB)改为0xA000(40KB),但是在build project时又会报错sram_upper overflow,如下截图:
还请高手指教是什么原因造成的?我该如何修改,不胜感激!!
注:开发板没有外接SDRAM,只有内部128KB的SRAM可用。
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
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
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