***** Commencing Build ***** VERSION: 4.5.2 COMMIT: 4.5.2 CONTAINER: 4.5.X BOARD: BETAFPVF405/STM32F405 STARTED: 2025-08-27 12:26:14Z Want to run this build locally? NOTE: you will need docker installed. See https://github.com/betaflight/cloudbuild for instructions. > docker run betaflight/cloudbuild:4.5.X make BETAFPVF405 EXTRA_FLAGS="-D'BUILD_KEY=66491d97a8bddb1debd63b1db8509335' -D'RELEASE_NAME=4.5.2' -DCLOUD_BUILD -DUSE_ACRO_TRAINER -DUSE_DSHOT -DUSE_GPS -DUSE_GPS_PLUS_CODES -DUSE_LED_STRIP -DUSE_OSD -DUSE_OSD_HD -DUSE_OSD_SD -DUSE_PINIO -DUSE_PPM -DUSE_RX_PPM -DUSE_VTX" -- or (without docker) -- > make BETAFPVF405 EXTRA_FLAGS="-D'BUILD_KEY=66491d97a8bddb1debd63b1db8509335' -D'RELEASE_NAME=4.5.2' -DCLOUD_BUILD -DUSE_ACRO_TRAINER -DUSE_DSHOT -DUSE_GPS -DUSE_GPS_PLUS_CODES -DUSE_LED_STRIP -DUSE_OSD -DUSE_OSD_HD -DUSE_OSD_SD -DUSE_PINIO -DUSE_PPM -DUSE_RX_PPM -DUSE_VTX" ***** Docker execution log: ***** Pulling from Github (4.5.2): From https://github.com/betaflight/betaflight * [new tag] 4.5.2 -> CLOUD_HEAD Checking out the branch -> CLOUD_HEAD (for 4.5.2) Previous HEAD position was 57c3471dc [4.5.3] Fix osd esc alarm (#14394) Switched to branch 'CLOUD_HEAD' Commencing the build (make BETAFPVF405): git -C ./src/config pull origin Already up to date. Building target config BETAFPVF405 make -j hex CONFIG=BETAFPVF405 make[1]: Entering directory '/source' make -j ./obj/betaflight_4.5.2_STM32F405_BETAFPVF405.hex make[2]: Entering directory '/source' rm -f ./obj/main/STM32F405_BETAFPVF405/.efhash_* EF HASH -> ./obj/main/STM32F405_BETAFPVF405/.efhash_c8e244fa8a46b2a2651d770f75a2f27e %% startup_stm32f40xx.s %% (optimised) ./src/main/drivers/dshot_bitbang_decode.c %% (speed optimised) ./src/main/drivers/accgyro/accgyro_mpu.c %% (speed optimised) ./src/main/drivers/pwm_output_dshot_shared.c %% (optimised) ./src/main/drivers/stm32/pwm_output_dshot.c %% (size optimised) ./src/main/drivers/inverter.c %% (optimised) ./src/main/drivers/stm32/bus_i2c_stm32f4xx.c %% (optimised) ./src/main/drivers/stm32/bus_spi_stdperiph.c %% (optimised) ./src/main/drivers/stm32/adc_stm32f4xx.c %% (optimised) ./src/main/drivers/stm32/debug.c %% (optimised) ./src/main/drivers/stm32/dma_reqmap_mcu.c %% (optimised) ./src/main/drivers/stm32/dma_stm32f4xx.c %% (optimised) ./src/main/drivers/stm32/dshot_bitbang.c %% (optimised) ./src/main/drivers/stm32/dshot_bitbang_stdperiph.c %% (optimised) ./src/main/drivers/stm32/exti.c %% (optimised) ./src/main/drivers/stm32/io_stm32.c %% (optimised) ./src/main/drivers/stm32/light_ws2811strip_stdperiph.c %% (optimised) ./src/main/drivers/stm32/persistent.c %% (optimised) ./src/main/drivers/stm32/pwm_output.c %% (optimised) ./src/main/drivers/stm32/rcc_stm32.c %% (optimised) ./src/main/drivers/stm32/sdio_f4xx.c %% (optimised) ./src/main/drivers/stm32/serial_uart_stdperiph.c %% (optimised) ./src/main/drivers/stm32/serial_uart_stm32f4xx.c %% (optimised) ./src/main/drivers/stm32/system_stm32f4xx.c %% (optimised) ./src/main/drivers/stm32/timer_stdperiph.c %% (optimised) ./src/main/drivers/stm32/timer_stm32f4xx.c %% (optimised) ./src/main/drivers/stm32/transponder_ir_io_stdperiph.c %% (optimised) ./src/main/drivers/stm32/usbd_msc_desc.c %% (optimised) ./src/main/drivers/stm32/camera_control.c In file included from ./src/main/platform.h:30, from ./src/main/drivers/inverter.c:24: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | %% (optimised) ./src/main/startup/system_stm32f4xx.c %% arm_bitreversal2.S %% (optimised) ./src/main/drivers/flash.c %% (optimised) ./src/main/drivers/flash_m25p16.c In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/debug.c:22: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/dma_reqmap_mcu.c:23: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/io_stm32.c:21: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/bus_spi_stdperiph.c:25: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/rcc_stm32.c:21: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/persistent.c:27: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/timer_stm32f4xx.c:21: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/pwm_output_dshot.c:25: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/system_stm32f4xx.c:24: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/accgyro/accgyro_mpu.c:26: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/serial_uart_stm32f4xx.c:28: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/serial_uart_stdperiph.c:35: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/bus_i2c_stm32f4xx.c:26: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/adc_stm32f4xx.c:25: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/dma_stm32f4xx.c:25: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/pwm_output_dshot_shared.c:27: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/camera_control.c:21: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/dshot_bitbang_decode.c:25: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/dshot_bitbang_stdperiph.c:25: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/exti.c:25: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/dshot_bitbang.c:25: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/sdio_f4xx.c:34: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/light_ws2811strip_stdperiph.c:25: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/pwm_output.c:26: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | %% (optimised) ./src/main/drivers/flash_w25n.c In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/transponder_ir_io_stdperiph.c:25: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/timer_stdperiph.c:26: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/flash.c:25: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/flash_m25p16.c:25: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | %% (optimised) ./src/main/drivers/flash_w25q128fv.c %% (optimised) ./src/main/drivers/flash_w25m.c %% (optimised) ./src/main/io/flashfs.c %% (optimised) ./src/main/drivers/usb_msc_common.c In file included from ./src/main/platform.h:30, from ./src/main/drivers/flash_w25m.c:31: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/drivers/flash_w25n.c:26: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | %% (optimised) ./src/main/drivers/stm32/usb_msc_f4xx.c cc1: all warnings being treated as errors In file included from ./src/main/platform.h:30, from ./src/main/drivers/flash_w25q128fv.c:26: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | cc1: all warnings being treated as errors ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | cc1: all warnings being treated as errors In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/usbd_msc_desc.c:34: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | cc1: all warnings being treated as errors cc1: all warnings being treated as errors In file included from ./src/main/platform.h:30, from ./src/main/startup/system_stm32f4xx.c:321: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | cc1: all warnings being treated as errors cc1: all warnings being treated as errors make[2]: *** [Makefile:439: obj/main/STM32F405_BETAFPVF405/drivers/inverter.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [Makefile:439: obj/main/STM32F405_BETAFPVF405/drivers/stm32/debug.o] Error 1 make[2]: *** [Makefile:439: obj/main/STM32F405_BETAFPVF405/drivers/stm32/rcc_stm32.o] Error 1 make[2]: *** [Makefile:439: obj/main/STM32F405_BETAFPVF405/drivers/stm32/camera_control.o] Error 1 cc1: all warnings being treated as errors cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/io_stm32.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/sdio_f4xx.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/transponder_ir_io_stdperiph.o] Error 1 %% (optimised) ./src/main/msc/usbd_storage.c %% (optimised) ./src/main/msc/usbd_storage_emfat.c make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/persistent.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/system_stm32f4xx.o] Error 1 cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/usbd_msc_desc.o] Error 1 In file included from ./src/main/platform.h:30, from ./src/main/io/flashfs.c:39: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | cc1: all warnings being treated as errors cc1: all warnings being treated as errors cc1: all warnings being treated as errors cc1: all warnings being treated as errors cc1: all warnings being treated as errors cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/dshot_bitbang_decode.o] Error 1 In file included from ./src/main/platform.h:30, from ./src/main/drivers/usb_msc_common.c:30: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/serial_uart_stdperiph.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/exti.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/light_ws2811strip_stdperiph.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/adc_stm32f4xx.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/serial_uart_stm32f4xx.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/bus_spi_stdperiph.o] Error 1 cc1: all warnings being treated as errors cc1: all warnings being treated as errors cc1: all warnings being treated as errors In file included from ./src/main/platform.h:30, from ./src/main/drivers/stm32/usb_msc_f4xx.c:30: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | In file included from ./src/main/platform.h:30, from ./src/main/msc/usbd_storage_emfat.c:31: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/dma_reqmap_mcu.o] Error 1 In file included from ./src/main/platform.h:30, from ./src/main/msc/usbd_storage.c:25: ./src/config/configs/BETAFPVF405/config.h:106: error: "MAG_I2C_INSTANCE" redefined [-Werror] 106 | #define MAG_I2C_INSTANCE I2CDEV_2 | ./src/config/configs/BETAFPVF405/config.h:65: note: this is the location of the previous definition 65 | #define MAG_I2C_INSTANCE I2CDEV_1 | cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/timer_stm32f4xx.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/startup/system_stm32f4xx.o] Error 1 cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/pwm_output_dshot_shared.o] Error 1 cc1: all warnings being treated as errors cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/flash.o] Error 1 cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/dma_stm32f4xx.o] Error 1 cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/accgyro/accgyro_mpu.o] Error 1 cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/bus_i2c_stm32f4xx.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/dshot_bitbang_stdperiph.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/pwm_output_dshot.o] Error 1 cc1: all warnings being treated as errors cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/flash_m25p16.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/flash_w25n.o] Error 1 cc1: all warnings being treated as errors cc1: all warnings being treated as errors cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/flash_w25q128fv.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/pwm_output.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/flash_w25m.o] Error 1 cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/dshot_bitbang.o] Error 1 cc1: all warnings being treated as errors cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/msc/usbd_storage.o] Error 1 make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/timer_stdperiph.o] Error 1 cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/usb_msc_common.o] Error 1 cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/msc/usbd_storage_emfat.o] Error 1 cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/drivers/stm32/usb_msc_f4xx.o] Error 1 cc1: all warnings being treated as errors make[2]: *** [Makefile:440: obj/main/STM32F405_BETAFPVF405/io/flashfs.o] Error 1 make[2]: Leaving directory '/source' make[1]: *** [Makefile:556: hex] Error 2 make[1]: Leaving directory '/source' make: *** [mk/config.mk:62: BETAFPVF405] Error 2 make failed with 2 ***** Completed Build ***** Build time: 2025-08-27 12:26:18Z, time taken: 4.48 Submitted: 2025-08-27 12:26:12Z, wait time: 5.95