268

阿木币

0

精华

54 小时

在线时间

老司机

Rank: 2

发表于 2021-11-7 00:30:26 3015 浏览 1 回复

px4固件编译问题

本帖最后由 liuhaicheng 于 2021-11-7 00:35 编辑

hzx@hzx:~/px4-autopilot$ git checkout v1.12.0-beta1


f4/version/libarch_version.a platforms/common/uORB/libuORB.a src/lib/parameters/flashparams/libflashparams.a NuttX/apps/libapps.a src/lib/perf/libperf.a src/lib/parameters/tinybson/libtinybson.a NuttX/nuttx/libs/libxx/libxx.a NuttX/nuttx/libs/libc/libc.a NuttX/nuttx/drivers/libdrivers.a NuttX/nuttx/fs/libfs.a NuttX/nuttx/mm/libmm.a NuttX/nuttx/sched/libsched.a -lgcc msg/libuorb_msgs.a -lm && :
Memory region         Used Size  Region Size  %age Used
           flash:     1032857 B      1008 KB    100.06%
            sram:       25492 B       192 KB     12.97%
          ccsram:          0 GB        64 KB      0.00/opt/gcc-arm-none-eabi-7-2017-q4-major/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld: px4_fmu-v2_default.elf section `.data' will not fit in region `flash'
/opt/gcc-arm-none-eabi-7-2017-q4-major/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld: region `flash' overflowed by 665 bytes
collect2: error: ld returned 1 exit status
%
ninja: build stopped: subcommand failed.
Makefile:219: recipe for target 'px4_fmu-v2_default' failed
make: *** [px4_fmu-v2_default] Error 1

我使用v1.12.0-beta1版本固件修改drivers,添加了光流和激光雷达驱动,编译报错。求教


eason已获得悬赏 3 阿木币

最佳答案

搜索关键词region `flash' overflowed by 665 bytes,可参考下面博客,https://blog.csdn.net/XL__MAX/article/details/105885944

扫一扫浏览分享
回复

使用道具 举报

106

阿木币

1

精华

395 小时

在线时间

技术大V

Rank: 4

发表于 2021-11-8 09:12:40
搜索关键词region `flash' overflowed by 665 bytes,可参考下面博客,https://blog.csdn.net/XL__MAX/article/details/105885944
回复 点赞

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表