These are chat archives for marvell-iot/aws_starter_sdk

22nd
Feb 2016
Sasidhar Movva
@movvas
Feb 22 2016 20:49
C++ projects using new SDK seems to have some memory issues..
I took hello_world_cpp project that came with 3.3 SDK and added a function call to "wm_wlan_start" in the main function.. that is the only change I did (in addition to including wmsdk.h )
i am running into a linker error indicating that there is not enough SRAM to fit the code
[axf] /Users/smovva/exper/wmsdk_bundle-3.3.30/bin/mw300_defconfig/mw300_rd/hello_world_cpp.axf
/usr/local/Cellar/gcc-arm-none-eabi-49/20150609/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld: bin/mw300_defconfig/mw300_rd/hello_world_cpp.axf section .text' will not fit in regionSRAM0'
/usr/local/Cellar/gcc-arm-none-eabi-49/20150609/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld: region `SRAM0' overflowed by 21096 bytes
collect2: error: ld returned 1 exit status
The same change works fine in the hello_world project where everything is in C
I reached out to @kedars with this new issue but if others have suggestions I am more than happy to try out..