メインコンテンツ

Resolve Firmware Build Failure When Using createCustomPX4Parameter

R2026b

Issue

When you manually edit the CMake file and then use the createCustomPX4Parameter function to build PX4 firmware through the Add Parameter Information dialog box, the build might fail and display errors. This occurs because the manual changes to the CMake file can conflict with the build configuration expected by the function.

Possible Solution

Reset the build configuration by repeating Hardware Setup with an unmodified CMake file.

  1. Run Hardware Setup again.

  2. On the Select a PX4 Autopilot and Build Target step, select the correct CMake file for your autopilot.

  3. Complete Hardware Setup.

  4. Use the createCustomPX4Parameter function to add the custom parameter and build the firmware.

See Also

Topics