Need help porting PX4-Autopilot to custom STM32H743VIT6 hardware (PX4 FMU-V6C clone)
-
I’m working on a project to adapt the PX4-Autopilot firmware to my custom flight controller hardware, which uses the STM32H743VIT6 chip. I chose the existing PX4 FMU-V6C board as my base and cloned its configuration for my port.
However, after adding my customized files to the repository (https://github.com/mkeyno/pixeagle), the new hardware target is failing to compile.
I am getting the following error when attempting to build,
Has anyone successfully ported PX4 to this specific microcontroller or encountered a similar compilation issue when cloning a board configuration? I would be grateful for any advice!~/PX4/PX4-Autopilot$ make px4_pixeagle_default menuconfig
[0/1] Re-running CMake…
– PX4_GIT_TAG: v1.16.0-rc1-783-g0c8f5ebc32
– PX4 config file: /home/mehrdad/PX4/PX4-Autopilot/boards/px4/pixeagle/default.px4board
– PLATFORM nuttx
– TOOLCHAIN arm-none-eabi
– ARCHITECTURE cortex-m7
– ROMFSROOT px4fmu_common
– CONSTRAINED_FLASH y
– SERIAL_GPS1 /dev/ttyS2
– SERIAL_TEL1 /dev/ttyS0
– SERIAL_TEL2 /dev/ttyS3
– SERIAL_TEL3 /dev/ttyS1
– SERIAL_TEL4 /dev/ttyS4
– ROOT_PATH /fs/microsd
– PARAM_FILE /fs/mtd_params
– PWM_FREQ 400
– PX4 config: px4_pixeagle_default
– PX4 platform: nuttx
make[2]: *** [tools/Unix.mk:267: include/arch/board] Error 1
make[1]: *** [tools/Unix.mk:606: olddefconfig] Error 2
– cmake build type: MinSizeRel
– ccache enabled (export CCACHE_DISABLE=1 to disable)
– NuttX Stack Checking (CONFIG_ARMV7M_STACKCHECK) enabled
– ROMFS: ROMFS/px4fmu_common
– ROMFS: Adding boards/px4/pixeagle/init/rc.board_defaults → /etc/init.d/rc.board_defaults
– ROMFS: Adding boards/px4/pixeagle/init/rc.board_sensors → /etc/init.d/rc.board_sensors
– Configuring done
– Generating done
– Build files have been written to: /home/mehrdad/PX4/PX4-Autopilot/build/px4_pixeagle_default
[1/3] Generating ../../../platforms/nuttx/NuttX/nuttx/.config
FAILED: ../../platforms/nuttx/NuttX/nuttx/.config
cd /home/mehrdad/PX4/PX4-Autopilot/platforms/nuttx/NuttX/nuttx && /usr/bin/cmake -E copy_if_different /home/mehrdad/PX4/PX4-Autopilot/build/px4_pixeagle_default/NuttX/nuttx/Make.defs /home/mehrdad/PX4/PX4-Autopilot/platforms/nuttx/NuttX/nuttx/Make.defs && cat /home/mehrdad/PX4/PX4-Autopilot/boards/px4/pixeagle/nuttx-config/nsh/defconfig /home/mehrdad/PX4/PX4-Autopilot/build/px4_pixeagle_default/NuttX/extra_config_options > /home/mehrdad/PX4/PX4-Autopilot/platforms/nuttx/NuttX/nuttx/.config && /usr/bin/cmake -E copy_if_different /home/mehrdad/PX4/PX4-Autopilot/boards/px4/pixeagle/nuttx-config/nsh/defconfig /home/mehrdad/PX4/PX4-Autopilot/platforms/nuttx/NuttX/nuttx/defconfig && /home/mehrdad/PX4/PX4-Autopilot/platforms/nuttx/NuttX/tools/px4_nuttx_make_olddefconfig.sh > /home/mehrdad/PX4/PX4-Autopilot/build/px4_pixeagle_default/NuttX/nuttx_olddefconfig.log && /usr/bin/cmake -E copy_if_different /home/mehrdad/PX4/PX4-Autopilot/platforms/nuttx/NuttX/nuttx/.config /home/mehrdad/PX4/PX4-Autopilot/build/px4_pixeagle_default/NuttX/nuttx/.config
make[2]: *** [tools/Unix.mk:267: include/arch/board] Error 1
make[1]: *** [tools/Unix.mk:606: olddefconfig] Error 2
ninja: build stopped: subcommand failed.
make: *** [Makefile:222: px4_pixeagle_default] Error 1 -
I’m working on a project to adapt the PX4-Autopilot firmware to my custom flight controller hardware, which uses the STM32H743VIT6 chip. I chose the existing PX4 FMU-V6C board as my base and cloned its configuration for my port.
However, after adding my customized files to the repository (https://github.com/mkeyno/pixeagle), the new hardware target is failing to compile.
I am getting the following error when attempting to build,
Has anyone successfully ported PX4 to this specific microcontroller or encountered a similar compilation issue when cloning a board configuration? I would be grateful for any advice!~/PX4/PX4-Autopilot$ make px4_pixeagle_default menuconfig
[0/1] Re-running CMake…
– PX4_GIT_TAG: v1.16.0-rc1-783-g0c8f5ebc32
– PX4 config file: /home/mehrdad/PX4/PX4-Autopilot/boards/px4/pixeagle/default.px4board
– PLATFORM nuttx
– TOOLCHAIN arm-none-eabi
– ARCHITECTURE cortex-m7
– ROMFSROOT px4fmu_common
– CONSTRAINED_FLASH y
– SERIAL_GPS1 /dev/ttyS2
– SERIAL_TEL1 /dev/ttyS0
– SERIAL_TEL2 /dev/ttyS3
– SERIAL_TEL3 /dev/ttyS1
– SERIAL_TEL4 /dev/ttyS4
– ROOT_PATH /fs/microsd
– PARAM_FILE /fs/mtd_params
– PWM_FREQ 400
– PX4 config: px4_pixeagle_default
– PX4 platform: nuttx
make[2]: *** [tools/Unix.mk:267: include/arch/board] Error 1
make[1]: *** [tools/Unix.mk:606: olddefconfig] Error 2
– cmake build type: MinSizeRel
– ccache enabled (export CCACHE_DISABLE=1 to disable)
– NuttX Stack Checking (CONFIG_ARMV7M_STACKCHECK) enabled
– ROMFS: ROMFS/px4fmu_common
– ROMFS: Adding boards/px4/pixeagle/init/rc.board_defaults → /etc/init.d/rc.board_defaults
– ROMFS: Adding boards/px4/pixeagle/init/rc.board_sensors → /etc/init.d/rc.board_sensors
– Configuring done
– Generating done
– Build files have been written to: /home/mehrdad/PX4/PX4-Autopilot/build/px4_pixeagle_default
[1/3] Generating ../../../platforms/nuttx/NuttX/nuttx/.config
FAILED: ../../platforms/nuttx/NuttX/nuttx/.config
cd /home/mehrdad/PX4/PX4-Autopilot/platforms/nuttx/NuttX/nuttx && /usr/bin/cmake -E copy_if_different /home/mehrdad/PX4/PX4-Autopilot/build/px4_pixeagle_default/NuttX/nuttx/Make.defs /home/mehrdad/PX4/PX4-Autopilot/platforms/nuttx/NuttX/nuttx/Make.defs && cat /home/mehrdad/PX4/PX4-Autopilot/boards/px4/pixeagle/nuttx-config/nsh/defconfig /home/mehrdad/PX4/PX4-Autopilot/build/px4_pixeagle_default/NuttX/extra_config_options > /home/mehrdad/PX4/PX4-Autopilot/platforms/nuttx/NuttX/nuttx/.config && /usr/bin/cmake -E copy_if_different /home/mehrdad/PX4/PX4-Autopilot/boards/px4/pixeagle/nuttx-config/nsh/defconfig /home/mehrdad/PX4/PX4-Autopilot/platforms/nuttx/NuttX/nuttx/defconfig && /home/mehrdad/PX4/PX4-Autopilot/platforms/nuttx/NuttX/tools/px4_nuttx_make_olddefconfig.sh > /home/mehrdad/PX4/PX4-Autopilot/build/px4_pixeagle_default/NuttX/nuttx_olddefconfig.log && /usr/bin/cmake -E copy_if_different /home/mehrdad/PX4/PX4-Autopilot/platforms/nuttx/NuttX/nuttx/.config /home/mehrdad/PX4/PX4-Autopilot/build/px4_pixeagle_default/NuttX/nuttx/.config
make[2]: *** [tools/Unix.mk:267: include/arch/board] Error 1
make[1]: *** [tools/Unix.mk:606: olddefconfig] Error 2
ninja: build stopped: subcommand failed.
make: *** [Makefile:222: px4_pixeagle_default] Error 1@mkeyno You need to work with the PX4 community on this project, not ModalAI.
-
V Vinny has marked this topic as solved
Reading along? Create a free ModalAI Forum account to join in.
With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.
Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.
Register Login