myapp
プロジェクトをここを参考に追加してnuttx
をビルドしました。最後のリンク時に以下のようなエラーが出ます。
どうもRAMサイズオーバーと言っているようですが、わたしはてっきりFlash8MBにfirmwareは書き込まれると思っていました。回避方法はありますか?
Spresense-nuttx: v1.5.0
Spresense SDK: v1.5.0
Host OS: WSL1.0 on Windows10
Toolchain: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
エラー個所のみ抜粋:
echo "LD: nuttx"
LD: nuttx
arm-none-eabi-ld --entry=__start -nostartfiles -nodefaultlibs -g -Map=/home/norio/ws/firmware/spresense/sdk/nuttx.map --cref --defsym __stack=_vectors+1572864 -T/home/norio/ws/firmware/spresense/sdk/bsp/scripts/ramconfig.ld -L"/home/norio/ws/firmware/spresense/sdk/lib" -L"/home/norio/ws/firmware/spresense/sdk/bsp/board" \
-o "/home/norio/ws/firmware/spresense/sdk/nuttx" \
--start-group -lbsp -lsystem -lextdrivers -lexamples -lmyapps -lsched -ldrivers -lconfigs -lc -lmm -larch -lcxx -lapps -lnet -lfs -lbinfmt -lgraphics -lnx -lcxx -lboard "/usr/local/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard/libm.a" "/usr/local/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/libgcc.a" --end-group
arm-none-eabi-ld: /home/norio/ws/firmware/spresense/sdk/nuttx section `.bss' will not fit in region `ram'
arm-none-eabi-ld: region `ram' overflowed by 31052 bytes
Makefile:188: recipe for target 'nuttx' failed
make[1]: *** [nuttx] Error 1
make[1]: Leaving directory '/home/norio/ws/firmware/spresense/sdk/bsp'
Makefile:182: recipe for target 'nuttx' failed
make: *** [nuttx] Error 2