Troubleshooting PX4 Firmware Build Failure Due to Flash Memory Overflow on the Hardware
Description
If you are using the default PX4 board build target file, such as
cubepilot_cubeorange_default
, the build might fail due to
flash memory overflow on the hardware with the following error message.
The reason for this issue is because the source code size increases with PX4 firmware v1.14. If all modules are enabled for build, it might result in flash memory overflow on the hardware.
Action
To troubleshoot the issue disable some modules from the default px4 board build target file. For example, if you are designing a Multicopter, consider removing fixed-wing controller modules and vice versa.
For some autopilots, the Multicopter, fixed-wing, and VTOL controllers are already selectively disabled, and variants of the default PX4 board build target files are available. If there is a Multicopter or fixed-wing variant of the PX4 board build target file for the PX4 autopilot you are using, choose that file instead of the default one.
For example, if you are using Cube Orange and facing build failure due to flash
memory overflow on the hardware with the
cubepilot_cubeorange_default
PX4 board build target file, consider
using cubepilot_cubeorange_multicopter
for designing
multicopter, cubepilot_cubeorange_fixedwing
for -wing and
cubepilot_cubeorange _VTOL
for VTOL airframe.
If no Multicopter, fixed-wing, or VTOL variants exist for the autopilot you are using, manually create them by editing the default PX4 board build target file. For more information, see Disabling Modules in PX4board Build Target File.
See Also
Troubleshooting Deploy to Hardware Issues | Troubleshooting Running Out of File Descriptor Issues | Troubleshooting USB Issues with Cube Orange on Windows