可以加载到主板上的代码量受到其具有的闪存量的限制。 当添加其他模块或代码时,添加可能会超过闪存。 这将导致 "闪存溢出"。
若要解决此问题,请使用较新的硬件或从生成中删除对您的用例不重要的模块。 配置存储 here。 要删除模块,只需将其注释掉: The upstream version will always build, but depending on what a developer adds it might overflow locally.
region `flash' overflowed by 12456 bytes
To remedy it, either use more recent hardware or remove modules from the build which are not essential to your use case. The configuration is stored in /PX4-Autopilot/boards/px4 (e.g. PX4-Autopilot/boards/px4/fmu-v5/default.cmake). To remove a module, just comment it out:
#drivers/trone
On Ubuntu, uninstall the modem manager:
sudo apt-get remove modemmanager