This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Build errors

Hi all,

Can anyone give me some pointers with my build errors? 

Many Thanks 

Matt.

Parents
  • Build started: Project: OnBoardSDK_STM32
    *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
    Build target 'DJI_LIB'
    compiling PayloadSample.cpp...
    compiling MobileSample.cpp...
    compiling Activate.cpp...
    compiling TelemetrySample.cpp...
    compiling FlightControlSample.cpp...
    compiling MissionSample.cpp...
    compiling TimeSyncSample.cpp...
    compiling dji_stm32_helpers.cpp...
    compiling cppforstm32.cpp...
    compiling Receive.cpp...
    compiling gimbal_manager_sync_sample.cpp...
    compiling gimbal_manager_async_sample.cpp...
    compiling GimbalManagerSample.cpp...
    compiling CameraManagerSample.cpp...
    compiling CameraGimbalSample.cpp...
    compiling camera_manager_async_sample.cpp...
    compiling camera_manager_sync_sample.cpp...
    compiling usbh_usr.cpp...
    compiling misc.c...
    compiling stm32f4xx_crc.c...
    compiling stm32f4xx_adc.c...
    compiling stm32f4xx_can.c...
    compiling usb_bsp.c...
    compiling stm32f4xx_dac.c...
    compiling main.cpp...
    compiling stm32f4xx_dcmi.c...
    compiling stm32f4xx_dma.c...
    compiling stm32f4xx_exti.c...
    compiling stm32f4xx_gpio.c...
    compiling stm32f4xx_fsmc.c...
    compiling stm32f4xx_i2c.c...
    compiling stm32f4xx_flash.c...
    compiling bsp.cpp...
    compiling stm32f4xx_iwdg.c...
    compiling BspUsart.cpp...
    compiling stm32f4xx_pwr.c...
    compiling timer.cpp...
    assembling startup_stm32f40_41xxx.s...
    compiling croutine.c...
    compiling event_groups.c...
    compiling stm32f4xx_usart.c...
    compiling stm32f4xx_wwdg.c...
    compiling stm32f4xx_rng.c...
    compiling system_stm32f4xx.c...
    compiling stm32f4xx_rcc.c...
    compiling stm32f4xx_syscfg.c...
    compiling stm32f4xx_spi.c...
    compiling stm32f4xx_sdio.c...
    compiling stm32f4xx_tim.c...
    compiling list.c...
    compiling stm32f4xx_rtc.c...
    compiling heap_4.c...
    compiling timers.c...
    compiling osdkosal_stm32.c...
    compiling stream_buffer.c...
    compiling queue.c...
    compiling port.c...
    compiling tasks.c...
    compiling usbh_hcs.c...
    compiling usbh_cdc_funct.c...
    compiling osdkhal_stm32.c...
    compiling usbh_ioreq.c...
    compiling usbh_cdc_core.c...
    compiling usbh_stdreq.c...
    compiling usb_hcd.c...
    compiling usbh_core.c...
    compiling usb_hcd_int.c...
    compiling usb_core.c...
    compiling dji_command.cpp...
    compiling dji_ack.cpp...
    compiling dji_flight_controller.cpp...
    compiling dji_battery_impl.cpp...
    compiling dji_camera.cpp...
    compiling dji_battery.cpp...
    compiling dji_gimbal.cpp...
    compiling dji_broadcast.cpp...
    compiling dji_control.cpp...
    compiling dji_gimbal_manager.cpp...
    compiling dji_error.cpp...
    compiling dji_hardware_sync.cpp...
    compiling dji_camera_manager.cpp...
    compiling dji_version.cpp...
    compiling dji_hotpoint.cpp...
    compiling dji_mfio.cpp...
    compiling dji_psdk_manager.cpp...
    compiling dji_log.cpp...
    compiling dji_legacy_linker.cpp...
    compiling dji_payload_device.cpp...
    compiling dji_mobile_device.cpp...
    compiling dji_mission_manager.cpp...
    compiling dji_subscription.cpp...
    compiling dji_payload_base.cpp...
    compiling dji_waypoint.cpp...
    compiling dji_gimbal_module.cpp...
    compiling dji_flight_actions_module.cpp...
    compiling psdk_md5.c...
    compiling dji_vehicle.cpp...
    compiling dji_flight_link.cpp...
    compiling dji_flight_joystick_module.cpp...
    compiling dji_platform.cpp...
    compiling dji_flight_assistant_module.cpp...
    compiling dji_singleton.cpp...
    compiling dji_payload_link.cpp...
    compiling osdk_firewall.cpp...
    compiling BasicMathFunctionsF16.c...
    compiling BayesFunctionsF16.c...
    compiling BayesFunctions.c...
    compiling BasicMathFunctions.c...
    compiling ComplexMathFunctionsF16.c...
    compiling CommonTablesF16.c...
    compiling dji_camera_module.cpp...
    compiling ControllerFunctions.c...
    ..\Lib\CMSIS\inc\core_cmInstr.h(114): error: #247: function "__REV16" has already been defined
    __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
    ..\Lib\CMSIS\inc\core_cmInstr.h(128): error: #247: function "__REVSH" has already been defined
    __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value)
    ..\Lib\CMSIS\inc\core_cmFunc.h(50): error: #247: function "__get_CONTROL" has already been defined
    __STATIC_INLINE uint32_t __get_CONTROL(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(63): error: #247: function "__set_CONTROL" has already been defined
    __STATIC_INLINE void __set_CONTROL(uint32_t control)
    ..\Lib\CMSIS\inc\core_cmFunc.h(76): error: #247: function "__get_IPSR" has already been defined
    __STATIC_INLINE uint32_t __get_IPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(89): error: #247: function "__get_APSR" has already been defined
    __STATIC_INLINE uint32_t __get_APSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(102): error: #247: function "__get_xPSR" has already been defined
    __STATIC_INLINE uint32_t __get_xPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(115): error: #247: function "__get_PSP" has already been defined
    __STATIC_INLINE uint32_t __get_PSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(128): error: #247: function "__set_PSP" has already been defined
    __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(141): error: #247: function "__get_MSP" has already been defined
    __STATIC_INLINE uint32_t __get_MSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(154): error: #247: function "__set_MSP" has already been defined
    __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(167): error: #247: function "__get_PRIMASK" has already been defined
    __STATIC_INLINE uint32_t __get_PRIMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(180): error: #247: function "__set_PRIMASK" has already been defined
    __STATIC_INLINE void __set_PRIMASK(uint32_t priMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(211): error: #247: function "__get_BASEPRI" has already been defined
    __STATIC_INLINE uint32_t __get_BASEPRI(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(224): error: #247: function "__set_BASEPRI" has already been defined
    __STATIC_INLINE void __set_BASEPRI(uint32_t basePri)
    ..\Lib\CMSIS\inc\core_cmFunc.h(237): error: #247: function "__get_FAULTMASK" has already been defined
    __STATIC_INLINE uint32_t __get_FAULTMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(250): error: #247: function "__set_FAULTMASK" has already been defined
    __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(267): error: #247: function "__get_FPSCR" has already been defined
    __STATIC_INLINE uint32_t __get_FPSCR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(284): error: #247: function "__set_FPSCR" has already been defined
    __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
    ..\Lib\CMSIS\inc\arm_math.h(326): error: #101: "ARM_MATH_SUCCESS" has already been declared in the current scope
    ARM_MATH_SUCCESS = 0, /**< No error */
    ..\Lib\CMSIS\inc\arm_math.h(327): error: #101: "ARM_MATH_ARGUMENT_ERROR" has already been declared in the current scope
    ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(328): error: #101: "ARM_MATH_LENGTH_ERROR" has already been declared in the current scope
    ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(329): error: #101: "ARM_MATH_SIZE_MISMATCH" has already been declared in the current scope
    ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */
    ..\Lib\CMSIS\inc\arm_math.h(330): error: #101: "ARM_MATH_NANINF" has already been declared in the current scope
    ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */
    ..\Lib\CMSIS\inc\arm_math.h(331): error: #101: "ARM_MATH_SINGULAR" has already been declared in the current scope
    ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */
    ..\Lib\CMSIS\inc\arm_math.h(332): error: #101: "ARM_MATH_TEST_FAILURE" has already been declared in the current scope
    ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */
    ..\Lib\CMSIS\inc\arm_math.h(333): error: #256: invalid redeclaration of type name "arm_status" (declared at line 585 of "C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\arm_math_types.h")
    } arm_status;
    ..\Lib\CMSIS\inc\arm_math.h(412): error: #247: function "clip_q63_to_q31" has already been defined
    __STATIC_INLINE q31_t clip_q63_to_q31(
    ..\Lib\CMSIS\inc\arm_math.h(422): error: #247: function "clip_q63_to_q15" has already been defined
    __STATIC_INLINE q15_t clip_q63_to_q15(
    ..\Lib\CMSIS\inc\arm_math.h(432): error: #247: function "clip_q31_to_q7" has already been defined
    __STATIC_INLINE q7_t clip_q31_to_q7(
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\ControllerFunctions\ControllerFunctions.c: 0 warnings, 30 errors
    compiling CommonTables.c...
    ..\Lib\CMSIS\inc\core_cmInstr.h(114): error: #247: function "__REV16" has already been defined
    __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
    ..\Lib\CMSIS\inc\core_cmInstr.h(128): error: #247: function "__REVSH" has already been defined
    __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value)
    ..\Lib\CMSIS\inc\core_cmFunc.h(50): error: #247: function "__get_CONTROL" has already been defined
    __STATIC_INLINE uint32_t __get_CONTROL(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(63): error: #247: function "__set_CONTROL" has already been defined
    __STATIC_INLINE void __set_CONTROL(uint32_t control)
    ..\Lib\CMSIS\inc\core_cmFunc.h(76): error: #247: function "__get_IPSR" has already been defined
    __STATIC_INLINE uint32_t __get_IPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(89): error: #247: function "__get_APSR" has already been defined
    __STATIC_INLINE uint32_t __get_APSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(102): error: #247: function "__get_xPSR" has already been defined
    __STATIC_INLINE uint32_t __get_xPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(115): error: #247: function "__get_PSP" has already been defined
    __STATIC_INLINE uint32_t __get_PSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(128): error: #247: function "__set_PSP" has already been defined
    __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(141): error: #247: function "__get_MSP" has already been defined
    __STATIC_INLINE uint32_t __get_MSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(154): error: #247: function "__set_MSP" has already been defined
    __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(167): error: #247: function "__get_PRIMASK" has already been defined
    __STATIC_INLINE uint32_t __get_PRIMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(180): error: #247: function "__set_PRIMASK" has already been defined
    __STATIC_INLINE void __set_PRIMASK(uint32_t priMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(211): error: #247: function "__get_BASEPRI" has already been defined
    __STATIC_INLINE uint32_t __get_BASEPRI(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(224): error: #247: function "__set_BASEPRI" has already been defined
    __STATIC_INLINE void __set_BASEPRI(uint32_t basePri)
    ..\Lib\CMSIS\inc\core_cmFunc.h(237): error: #247: function "__get_FAULTMASK" has already been defined
    __STATIC_INLINE uint32_t __get_FAULTMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(250): error: #247: function "__set_FAULTMASK" has already been defined
    __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(267): error: #247: function "__get_FPSCR" has already been defined
    __STATIC_INLINE uint32_t __get_FPSCR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(284): error: #247: function "__set_FPSCR" has already been defined
    __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
    ..\Lib\CMSIS\inc\arm_math.h(326): error: #101: "ARM_MATH_SUCCESS" has already been declared in the current scope
    ARM_MATH_SUCCESS = 0, /**< No error */
    ..\Lib\CMSIS\inc\arm_math.h(327): error: #101: "ARM_MATH_ARGUMENT_ERROR" has already been declared in the current scope
    ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(328): error: #101: "ARM_MATH_LENGTH_ERROR" has already been declared in the current scope
    ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(329): error: #101: "ARM_MATH_SIZE_MISMATCH" has already been declared in the current scope
    ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */
    ..\Lib\CMSIS\inc\arm_math.h(330): error: #101: "ARM_MATH_NANINF" has already been declared in the current scope
    ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */
    ..\Lib\CMSIS\inc\arm_math.h(331): error: #101: "ARM_MATH_SINGULAR" has already been declared in the current scope
    ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */
    ..\Lib\CMSIS\inc\arm_math.h(332): error: #101: "ARM_MATH_TEST_FAILURE" has already been declared in the current scope
    ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */
    ..\Lib\CMSIS\inc\arm_math.h(333): error: #256: invalid redeclaration of type name "arm_status" (declared at line 585 of "C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\arm_math_types.h")
    } arm_status;
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\CommonTables\arm_common_tables.c(24510): error: #20: identifier "ARMBITREVINDEXTABLEF64_16_TABLE_LENGTH" is undefined
    const uint16_t armBitRevIndexTableF64_16[ARMBITREVINDEXTABLEF64_16_TABLE_LENGTH] =
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\CommonTables\arm_common_tables.c(24518): error: #20: identifier "ARMBITREVINDEXTABLEF64_32_TABLE_LENGTH" is undefined
    const uint16_t armBitRevIndexTableF64_32[ARMBITREVINDEXTABLEF64_32_TABLE_LENGTH] =
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\CommonTables\arm_common_tables.c(24527): error: #20: identifier "ARMBITREVINDEXTABLEF64_64_TABLE_LENGTH" is undefined
    const uint16_t armBitRevIndexTableF64_64[ARMBITREVINDEXTABLEF64_64_TABLE_LENGTH] =
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\CommonTables\CommonTables.c: 0 warnings, 30 errors
    compiling ComplexMathFunctions.c...
    compiling FastMathFunctions.c...
    ..\Lib\CMSIS\inc\core_cmInstr.h(114): error: #247: function "__REV16" has already been defined
    __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
    ..\Lib\CMSIS\inc\core_cmInstr.h(128): error: #247: function "__REVSH" has already been defined
    __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value)
    ..\Lib\CMSIS\inc\core_cmFunc.h(50): error: #247: function "__get_CONTROL" has already been defined
    __STATIC_INLINE uint32_t __get_CONTROL(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(63): error: #247: function "__set_CONTROL" has already been defined
    __STATIC_INLINE void __set_CONTROL(uint32_t control)
    ..\Lib\CMSIS\inc\core_cmFunc.h(76): error: #247: function "__get_IPSR" has already been defined
    __STATIC_INLINE uint32_t __get_IPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(89): error: #247: function "__get_APSR" has already been defined
    __STATIC_INLINE uint32_t __get_APSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(102): error: #247: function "__get_xPSR" has already been defined
    __STATIC_INLINE uint32_t __get_xPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(115): error: #247: function "__get_PSP" has already been defined
    __STATIC_INLINE uint32_t __get_PSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(128): error: #247: function "__set_PSP" has already been defined
    __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(141): error: #247: function "__get_MSP" has already been defined
    __STATIC_INLINE uint32_t __get_MSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(154): error: #247: function "__set_MSP" has already been defined
    __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(167): error: #247: function "__get_PRIMASK" has already been defined
    __STATIC_INLINE uint32_t __get_PRIMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(180): error: #247: function "__set_PRIMASK" has already been defined
    __STATIC_INLINE void __set_PRIMASK(uint32_t priMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(211): error: #247: function "__get_BASEPRI" has already been defined
    __STATIC_INLINE uint32_t __get_BASEPRI(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(224): error: #247: function "__set_BASEPRI" has already been defined
    __STATIC_INLINE void __set_BASEPRI(uint32_t basePri)
    ..\Lib\CMSIS\inc\core_cmFunc.h(237): error: #247: function "__get_FAULTMASK" has already been defined
    __STATIC_INLINE uint32_t __get_FAULTMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(250): error: #247: function "__set_FAULTMASK" has already been defined
    __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(267): error: #247: function "__get_FPSCR" has already been defined
    __STATIC_INLINE uint32_t __get_FPSCR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(284): error: #247: function "__set_FPSCR" has already been defined
    __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
    ..\Lib\CMSIS\inc\arm_math.h(326): error: #101: "ARM_MATH_SUCCESS" has already been declared in the current scope
    ARM_MATH_SUCCESS = 0, /**< No error */
    ..\Lib\CMSIS\inc\arm_math.h(327): error: #101: "ARM_MATH_ARGUMENT_ERROR" has already been declared in the current scope
    ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(328): error: #101: "ARM_MATH_LENGTH_ERROR" has already been declared in the current scope
    ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(329): error: #101: "ARM_MATH_SIZE_MISMATCH" has already been declared in the current scope
    ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */
    ..\Lib\CMSIS\inc\arm_math.h(330): error: #101: "ARM_MATH_NANINF" has already been declared in the current scope
    ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */
    ..\Lib\CMSIS\inc\arm_math.h(331): error: #101: "ARM_MATH_SINGULAR" has already been declared in the current scope
    ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */
    ..\Lib\CMSIS\inc\arm_math.h(332): error: #101: "ARM_MATH_TEST_FAILURE" has already been declared in the current scope
    ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */
    ..\Lib\CMSIS\inc\arm_math.h(333): error: #256: invalid redeclaration of type name "arm_status" (declared at line 585 of "C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\arm_math_types.h")
    } arm_status;
    ..\Lib\CMSIS\inc\arm_math.h(412): error: #247: function "clip_q63_to_q31" has already been defined
    __STATIC_INLINE q31_t clip_q63_to_q31(
    ..\Lib\CMSIS\inc\arm_math.h(422): error: #247: function "clip_q63_to_q15" has already been defined
    __STATIC_INLINE q15_t clip_q63_to_q15(
    ..\Lib\CMSIS\inc\arm_math.h(432): error: #247: function "clip_q31_to_q7" has already been defined
    __STATIC_INLINE q7_t clip_q31_to_q7(
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\FastMathFunctions\FastMathFunctions.c: 0 warnings, 30 errors
    compiling DistanceFunctionsF16.c...
    compiling FastMathFunctionsF16.c...
    compiling FilteringFunctionsF16.c...
    compiling dji_psdk_module.cpp...
    compiling dji_setup_helpers.cpp...
    compiling DistanceFunctions.c...
    compiling FilteringFunctions.c...
    ..\Lib\CMSIS\inc\core_cmInstr.h(114): error: #247: function "__REV16" has already been defined
    __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
    ..\Lib\CMSIS\inc\core_cmInstr.h(128): error: #247: function "__REVSH" has already been defined
    __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value)
    ..\Lib\CMSIS\inc\core_cmFunc.h(50): error: #247: function "__get_CONTROL" has already been defined
    __STATIC_INLINE uint32_t __get_CONTROL(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(63): error: #247: function "__set_CONTROL" has already been defined
    __STATIC_INLINE void __set_CONTROL(uint32_t control)
    ..\Lib\CMSIS\inc\core_cmFunc.h(76): error: #247: function "__get_IPSR" has already been defined
    __STATIC_INLINE uint32_t __get_IPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(89): error: #247: function "__get_APSR" has already been defined
    __STATIC_INLINE uint32_t __get_APSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(102): error: #247: function "__get_xPSR" has already been defined
    __STATIC_INLINE uint32_t __get_xPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(115): error: #247: function "__get_PSP" has already been defined
    __STATIC_INLINE uint32_t __get_PSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(128): error: #247: function "__set_PSP" has already been defined
    __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(141): error: #247: function "__get_MSP" has already been defined
    __STATIC_INLINE uint32_t __get_MSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(154): error: #247: function "__set_MSP" has already been defined
    __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(167): error: #247: function "__get_PRIMASK" has already been defined
    __STATIC_INLINE uint32_t __get_PRIMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(180): error: #247: function "__set_PRIMASK" has already been defined
    __STATIC_INLINE void __set_PRIMASK(uint32_t priMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(211): error: #247: function "__get_BASEPRI" has already been defined
    __STATIC_INLINE uint32_t __get_BASEPRI(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(224): error: #247: function "__set_BASEPRI" has already been defined
    __STATIC_INLINE void __set_BASEPRI(uint32_t basePri)
    ..\Lib\CMSIS\inc\core_cmFunc.h(237): error: #247: function "__get_FAULTMASK" has already been defined
    __STATIC_INLINE uint32_t __get_FAULTMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(250): error: #247: function "__set_FAULTMASK" has already been defined
    __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(267): error: #247: function "__get_FPSCR" has already been defined
    __STATIC_INLINE uint32_t __get_FPSCR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(284): error: #247: function "__set_FPSCR" has already been defined
    __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
    ..\Lib\CMSIS\inc\arm_math.h(326): error: #101: "ARM_MATH_SUCCESS" has already been declared in the current scope
    ARM_MATH_SUCCESS = 0, /**< No error */
    ..\Lib\CMSIS\inc\arm_math.h(327): error: #101: "ARM_MATH_ARGUMENT_ERROR" has already been declared in the current scope
    ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(328): error: #101: "ARM_MATH_LENGTH_ERROR" has already been declared in the current scope
    ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(329): error: #101: "ARM_MATH_SIZE_MISMATCH" has already been declared in the current scope
    ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */
    ..\Lib\CMSIS\inc\arm_math.h(330): error: #101: "ARM_MATH_NANINF" has already been declared in the current scope
    ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */
    ..\Lib\CMSIS\inc\arm_math.h(331): error: #101: "ARM_MATH_SINGULAR" has already been declared in the current scope
    ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */
    ..\Lib\CMSIS\inc\arm_math.h(332): error: #101: "ARM_MATH_TEST_FAILURE" has already been declared in the current scope
    ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */
    ..\Lib\CMSIS\inc\arm_math.h(333): error: #256: invalid redeclaration of type name "arm_status" (declared at line 585 of "C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\arm_math_types.h")
    } arm_status;
    ..\Lib\CMSIS\inc\arm_math.h(412): error: #247: function "clip_q63_to_q31" has already been defined
    __STATIC_INLINE q31_t clip_q63_to_q31(
    ..\Lib\CMSIS\inc\arm_math.h(422): error: #247: function "clip_q63_to_q15" has already been defined
    __STATIC_INLINE q15_t clip_q63_to_q15(
    ..\Lib\CMSIS\inc\arm_math.h(432): error: #247: function "clip_q31_to_q7" has already been defined
    __STATIC_INLINE q7_t clip_q31_to_q7(
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\FilteringFunctions\FilteringFunctions.c: 0 warnings, 30 errors
    compiling InterpolationFunctions.c...
    compiling InterpolationFunctionsF16.c...
    compiling SupportFunctions.c...
    ..\Lib\CMSIS\inc\core_cmInstr.h(114): error: #247: function "__REV16" has already been defined
    __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
    ..\Lib\CMSIS\inc\core_cmInstr.h(128): error: #247: function "__REVSH" has already been defined
    __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value)
    ..\Lib\CMSIS\inc\core_cmFunc.h(50): error: #247: function "__get_CONTROL" has already been defined
    __STATIC_INLINE uint32_t __get_CONTROL(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(63): error: #247: function "__set_CONTROL" has already been defined
    __STATIC_INLINE void __set_CONTROL(uint32_t control)
    ..\Lib\CMSIS\inc\core_cmFunc.h(76): error: #247: function "__get_IPSR" has already been defined
    __STATIC_INLINE uint32_t __get_IPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(89): error: #247: function "__get_APSR" has already been defined
    __STATIC_INLINE uint32_t __get_APSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(102): error: #247: function "__get_xPSR" has already been defined
    __STATIC_INLINE uint32_t __get_xPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(115): error: #247: function "__get_PSP" has already been defined
    __STATIC_INLINE uint32_t __get_PSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(128): error: #247: function "__set_PSP" has already been defined
    __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(141): error: #247: function "__get_MSP" has already been defined
    __STATIC_INLINE uint32_t __get_MSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(154): error: #247: function "__set_MSP" has already been defined
    __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(167): error: #247: function "__get_PRIMASK" has already been defined
    __STATIC_INLINE uint32_t __get_PRIMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(180): error: #247: function "__set_PRIMASK" has already been defined
    __STATIC_INLINE void __set_PRIMASK(uint32_t priMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(211): error: #247: function "__get_BASEPRI" has already been defined
    __STATIC_INLINE uint32_t __get_BASEPRI(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(224): error: #247: function "__set_BASEPRI" has already been defined
    __STATIC_INLINE void __set_BASEPRI(uint32_t basePri)
    ..\Lib\CMSIS\inc\core_cmFunc.h(237): error: #247: function "__get_FAULTMASK" has already been defined
    __STATIC_INLINE uint32_t __get_FAULTMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(250): error: #247: function "__set_FAULTMASK" has already been defined
    __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(267): error: #247: function "__get_FPSCR" has already been defined
    __STATIC_INLINE uint32_t __get_FPSCR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(284): error: #247: function "__set_FPSCR" has already been defined
    __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
    ..\Lib\CMSIS\inc\arm_math.h(326): error: #101: "ARM_MATH_SUCCESS" has already been declared in the current scope
    ARM_MATH_SUCCESS = 0, /**< No error */
    ..\Lib\CMSIS\inc\arm_math.h(327): error: #101: "ARM_MATH_ARGUMENT_ERROR" has already been declared in the current scope
    ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(328): error: #101: "ARM_MATH_LENGTH_ERROR" has already been declared in the current scope
    ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(329): error: #101: "ARM_MATH_SIZE_MISMATCH" has already been declared in the current scope
    ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */
    ..\Lib\CMSIS\inc\arm_math.h(330): error: #101: "ARM_MATH_NANINF" has already been declared in the current scope
    ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */
    ..\Lib\CMSIS\inc\arm_math.h(331): error: #101: "ARM_MATH_SINGULAR" has already been declared in the current scope
    ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */
    ..\Lib\CMSIS\inc\arm_math.h(332): error: #101: "ARM_MATH_TEST_FAILURE" has already been declared in the current scope
    ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */
    ..\Lib\CMSIS\inc\arm_math.h(333): error: #256: invalid redeclaration of type name "arm_status" (declared at line 585 of "C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\arm_math_types.h")
    } arm_status;
    ..\Lib\CMSIS\inc\arm_math.h(412): error: #247: function "clip_q63_to_q31" has already been defined
    __STATIC_INLINE q31_t clip_q63_to_q31(
    ..\Lib\CMSIS\inc\arm_math.h(422): error: #247: function "clip_q63_to_q15" has already been defined
    __STATIC_INLINE q15_t clip_q63_to_q15(
    ..\Lib\CMSIS\inc\arm_math.h(432): error: #247: function "clip_q31_to_q7" has already been defined
    __STATIC_INLINE q7_t clip_q31_to_q7(
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\SupportFunctions\SupportFunctions.c: 0 warnings, 30 errors
    compiling MatrixFunctionsF16.c...
    compiling SVMFunctionsF16.c...
    compiling SVMFunctions.c...
    compiling StatisticsFunctionsF16.c...
    compiling QuaternionMathFunctions.c...
    compiling StatisticsFunctions.c...
    compiling TransformFunctions.c...
    ..\Lib\CMSIS\inc\core_cmInstr.h(114): error: #247: function "__REV16" has already been defined
    __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
    ..\Lib\CMSIS\inc\core_cmInstr.h(128): error: #247: function "__REVSH" has already been defined
    __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value)
    ..\Lib\CMSIS\inc\core_cmFunc.h(50): error: #247: function "__get_CONTROL" has already been defined
    __STATIC_INLINE uint32_t __get_CONTROL(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(63): error: #247: function "__set_CONTROL" has already been defined
    __STATIC_INLINE void __set_CONTROL(uint32_t control)
    ..\Lib\CMSIS\inc\core_cmFunc.h(76): error: #247: function "__get_IPSR" has already been defined
    __STATIC_INLINE uint32_t __get_IPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(89): error: #247: function "__get_APSR" has already been defined
    __STATIC_INLINE uint32_t __get_APSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(102): error: #247: function "__get_xPSR" has already been defined
    __STATIC_INLINE uint32_t __get_xPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(115): error: #247: function "__get_PSP" has already been defined
    __STATIC_INLINE uint32_t __get_PSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(128): error: #247: function "__set_PSP" has already been defined
    __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(141): error: #247: function "__get_MSP" has already been defined
    __STATIC_INLINE uint32_t __get_MSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(154): error: #247: function "__set_MSP" has already been defined
    __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(167): error: #247: function "__get_PRIMASK" has already been defined
    __STATIC_INLINE uint32_t __get_PRIMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(180): error: #247: function "__set_PRIMASK" has already been defined
    __STATIC_INLINE void __set_PRIMASK(uint32_t priMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(211): error: #247: function "__get_BASEPRI" has already been defined
    __STATIC_INLINE uint32_t __get_BASEPRI(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(224): error: #247: function "__set_BASEPRI" has already been defined
    __STATIC_INLINE void __set_BASEPRI(uint32_t basePri)
    ..\Lib\CMSIS\inc\core_cmFunc.h(237): error: #247: function "__get_FAULTMASK" has already been defined
    __STATIC_INLINE uint32_t __get_FAULTMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(250): error: #247: function "__set_FAULTMASK" has already been defined
    __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(267): error: #247: function "__get_FPSCR" has already been defined
    __STATIC_INLINE uint32_t __get_FPSCR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(284): error: #247: function "__set_FPSCR" has already been defined
    __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
    ..\Lib\CMSIS\inc\arm_math.h(326): error: #101: "ARM_MATH_SUCCESS" has already been declared in the current scope
    ARM_MATH_SUCCESS = 0, /**< No error */
    ..\Lib\CMSIS\inc\arm_math.h(327): error: #101: "ARM_MATH_ARGUMENT_ERROR" has already been declared in the current scope
    ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(328): error: #101: "ARM_MATH_LENGTH_ERROR" has already been declared in the current scope
    ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(329): error: #101: "ARM_MATH_SIZE_MISMATCH" has already been declared in the current scope
    ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */
    ..\Lib\CMSIS\inc\arm_math.h(330): error: #101: "ARM_MATH_NANINF" has already been declared in the current scope
    ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */
    ..\Lib\CMSIS\inc\arm_math.h(331): error: #101: "ARM_MATH_SINGULAR" has already been declared in the current scope
    ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */
    ..\Lib\CMSIS\inc\arm_math.h(332): error: #101: "ARM_MATH_TEST_FAILURE" has already been declared in the current scope
    ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */
    ..\Lib\CMSIS\inc\arm_math.h(333): error: #256: invalid redeclaration of type name "arm_status" (declared at line 585 of "C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\arm_math_types.h")
    } arm_status;
    ..\Lib\CMSIS\inc\arm_math.h(412): error: #247: function "clip_q63_to_q31" has already been defined
    __STATIC_INLINE q31_t clip_q63_to_q31(
    ..\Lib\CMSIS\inc\arm_math.h(422): error: #247: function "clip_q63_to_q15" has already been defined
    __STATIC_INLINE q15_t clip_q63_to_q15(
    ..\Lib\CMSIS\inc\arm_math.h(432): error: #247: function "clip_q31_to_q7" has already been defined
    __STATIC_INLINE q7_t clip_q31_to_q7(
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\TransformFunctions\TransformFunctions.c: 0 warnings, 30 errors
    compiling SupportFunctionsF16.c...
    compiling TransformFunctionsF16.c...
    compiling MatrixFunctions.c...
    ".\Objects\osdk_stm32.axf" - 180 Error(s), 0 Warning(s).
    Target not created.
    Build Time Elapsed: 00:00:10

Reply
  • Build started: Project: OnBoardSDK_STM32
    *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
    Build target 'DJI_LIB'
    compiling PayloadSample.cpp...
    compiling MobileSample.cpp...
    compiling Activate.cpp...
    compiling TelemetrySample.cpp...
    compiling FlightControlSample.cpp...
    compiling MissionSample.cpp...
    compiling TimeSyncSample.cpp...
    compiling dji_stm32_helpers.cpp...
    compiling cppforstm32.cpp...
    compiling Receive.cpp...
    compiling gimbal_manager_sync_sample.cpp...
    compiling gimbal_manager_async_sample.cpp...
    compiling GimbalManagerSample.cpp...
    compiling CameraManagerSample.cpp...
    compiling CameraGimbalSample.cpp...
    compiling camera_manager_async_sample.cpp...
    compiling camera_manager_sync_sample.cpp...
    compiling usbh_usr.cpp...
    compiling misc.c...
    compiling stm32f4xx_crc.c...
    compiling stm32f4xx_adc.c...
    compiling stm32f4xx_can.c...
    compiling usb_bsp.c...
    compiling stm32f4xx_dac.c...
    compiling main.cpp...
    compiling stm32f4xx_dcmi.c...
    compiling stm32f4xx_dma.c...
    compiling stm32f4xx_exti.c...
    compiling stm32f4xx_gpio.c...
    compiling stm32f4xx_fsmc.c...
    compiling stm32f4xx_i2c.c...
    compiling stm32f4xx_flash.c...
    compiling bsp.cpp...
    compiling stm32f4xx_iwdg.c...
    compiling BspUsart.cpp...
    compiling stm32f4xx_pwr.c...
    compiling timer.cpp...
    assembling startup_stm32f40_41xxx.s...
    compiling croutine.c...
    compiling event_groups.c...
    compiling stm32f4xx_usart.c...
    compiling stm32f4xx_wwdg.c...
    compiling stm32f4xx_rng.c...
    compiling system_stm32f4xx.c...
    compiling stm32f4xx_rcc.c...
    compiling stm32f4xx_syscfg.c...
    compiling stm32f4xx_spi.c...
    compiling stm32f4xx_sdio.c...
    compiling stm32f4xx_tim.c...
    compiling list.c...
    compiling stm32f4xx_rtc.c...
    compiling heap_4.c...
    compiling timers.c...
    compiling osdkosal_stm32.c...
    compiling stream_buffer.c...
    compiling queue.c...
    compiling port.c...
    compiling tasks.c...
    compiling usbh_hcs.c...
    compiling usbh_cdc_funct.c...
    compiling osdkhal_stm32.c...
    compiling usbh_ioreq.c...
    compiling usbh_cdc_core.c...
    compiling usbh_stdreq.c...
    compiling usb_hcd.c...
    compiling usbh_core.c...
    compiling usb_hcd_int.c...
    compiling usb_core.c...
    compiling dji_command.cpp...
    compiling dji_ack.cpp...
    compiling dji_flight_controller.cpp...
    compiling dji_battery_impl.cpp...
    compiling dji_camera.cpp...
    compiling dji_battery.cpp...
    compiling dji_gimbal.cpp...
    compiling dji_broadcast.cpp...
    compiling dji_control.cpp...
    compiling dji_gimbal_manager.cpp...
    compiling dji_error.cpp...
    compiling dji_hardware_sync.cpp...
    compiling dji_camera_manager.cpp...
    compiling dji_version.cpp...
    compiling dji_hotpoint.cpp...
    compiling dji_mfio.cpp...
    compiling dji_psdk_manager.cpp...
    compiling dji_log.cpp...
    compiling dji_legacy_linker.cpp...
    compiling dji_payload_device.cpp...
    compiling dji_mobile_device.cpp...
    compiling dji_mission_manager.cpp...
    compiling dji_subscription.cpp...
    compiling dji_payload_base.cpp...
    compiling dji_waypoint.cpp...
    compiling dji_gimbal_module.cpp...
    compiling dji_flight_actions_module.cpp...
    compiling psdk_md5.c...
    compiling dji_vehicle.cpp...
    compiling dji_flight_link.cpp...
    compiling dji_flight_joystick_module.cpp...
    compiling dji_platform.cpp...
    compiling dji_flight_assistant_module.cpp...
    compiling dji_singleton.cpp...
    compiling dji_payload_link.cpp...
    compiling osdk_firewall.cpp...
    compiling BasicMathFunctionsF16.c...
    compiling BayesFunctionsF16.c...
    compiling BayesFunctions.c...
    compiling BasicMathFunctions.c...
    compiling ComplexMathFunctionsF16.c...
    compiling CommonTablesF16.c...
    compiling dji_camera_module.cpp...
    compiling ControllerFunctions.c...
    ..\Lib\CMSIS\inc\core_cmInstr.h(114): error: #247: function "__REV16" has already been defined
    __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
    ..\Lib\CMSIS\inc\core_cmInstr.h(128): error: #247: function "__REVSH" has already been defined
    __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value)
    ..\Lib\CMSIS\inc\core_cmFunc.h(50): error: #247: function "__get_CONTROL" has already been defined
    __STATIC_INLINE uint32_t __get_CONTROL(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(63): error: #247: function "__set_CONTROL" has already been defined
    __STATIC_INLINE void __set_CONTROL(uint32_t control)
    ..\Lib\CMSIS\inc\core_cmFunc.h(76): error: #247: function "__get_IPSR" has already been defined
    __STATIC_INLINE uint32_t __get_IPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(89): error: #247: function "__get_APSR" has already been defined
    __STATIC_INLINE uint32_t __get_APSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(102): error: #247: function "__get_xPSR" has already been defined
    __STATIC_INLINE uint32_t __get_xPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(115): error: #247: function "__get_PSP" has already been defined
    __STATIC_INLINE uint32_t __get_PSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(128): error: #247: function "__set_PSP" has already been defined
    __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(141): error: #247: function "__get_MSP" has already been defined
    __STATIC_INLINE uint32_t __get_MSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(154): error: #247: function "__set_MSP" has already been defined
    __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(167): error: #247: function "__get_PRIMASK" has already been defined
    __STATIC_INLINE uint32_t __get_PRIMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(180): error: #247: function "__set_PRIMASK" has already been defined
    __STATIC_INLINE void __set_PRIMASK(uint32_t priMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(211): error: #247: function "__get_BASEPRI" has already been defined
    __STATIC_INLINE uint32_t __get_BASEPRI(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(224): error: #247: function "__set_BASEPRI" has already been defined
    __STATIC_INLINE void __set_BASEPRI(uint32_t basePri)
    ..\Lib\CMSIS\inc\core_cmFunc.h(237): error: #247: function "__get_FAULTMASK" has already been defined
    __STATIC_INLINE uint32_t __get_FAULTMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(250): error: #247: function "__set_FAULTMASK" has already been defined
    __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(267): error: #247: function "__get_FPSCR" has already been defined
    __STATIC_INLINE uint32_t __get_FPSCR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(284): error: #247: function "__set_FPSCR" has already been defined
    __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
    ..\Lib\CMSIS\inc\arm_math.h(326): error: #101: "ARM_MATH_SUCCESS" has already been declared in the current scope
    ARM_MATH_SUCCESS = 0, /**< No error */
    ..\Lib\CMSIS\inc\arm_math.h(327): error: #101: "ARM_MATH_ARGUMENT_ERROR" has already been declared in the current scope
    ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(328): error: #101: "ARM_MATH_LENGTH_ERROR" has already been declared in the current scope
    ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(329): error: #101: "ARM_MATH_SIZE_MISMATCH" has already been declared in the current scope
    ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */
    ..\Lib\CMSIS\inc\arm_math.h(330): error: #101: "ARM_MATH_NANINF" has already been declared in the current scope
    ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */
    ..\Lib\CMSIS\inc\arm_math.h(331): error: #101: "ARM_MATH_SINGULAR" has already been declared in the current scope
    ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */
    ..\Lib\CMSIS\inc\arm_math.h(332): error: #101: "ARM_MATH_TEST_FAILURE" has already been declared in the current scope
    ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */
    ..\Lib\CMSIS\inc\arm_math.h(333): error: #256: invalid redeclaration of type name "arm_status" (declared at line 585 of "C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\arm_math_types.h")
    } arm_status;
    ..\Lib\CMSIS\inc\arm_math.h(412): error: #247: function "clip_q63_to_q31" has already been defined
    __STATIC_INLINE q31_t clip_q63_to_q31(
    ..\Lib\CMSIS\inc\arm_math.h(422): error: #247: function "clip_q63_to_q15" has already been defined
    __STATIC_INLINE q15_t clip_q63_to_q15(
    ..\Lib\CMSIS\inc\arm_math.h(432): error: #247: function "clip_q31_to_q7" has already been defined
    __STATIC_INLINE q7_t clip_q31_to_q7(
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\ControllerFunctions\ControllerFunctions.c: 0 warnings, 30 errors
    compiling CommonTables.c...
    ..\Lib\CMSIS\inc\core_cmInstr.h(114): error: #247: function "__REV16" has already been defined
    __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
    ..\Lib\CMSIS\inc\core_cmInstr.h(128): error: #247: function "__REVSH" has already been defined
    __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value)
    ..\Lib\CMSIS\inc\core_cmFunc.h(50): error: #247: function "__get_CONTROL" has already been defined
    __STATIC_INLINE uint32_t __get_CONTROL(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(63): error: #247: function "__set_CONTROL" has already been defined
    __STATIC_INLINE void __set_CONTROL(uint32_t control)
    ..\Lib\CMSIS\inc\core_cmFunc.h(76): error: #247: function "__get_IPSR" has already been defined
    __STATIC_INLINE uint32_t __get_IPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(89): error: #247: function "__get_APSR" has already been defined
    __STATIC_INLINE uint32_t __get_APSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(102): error: #247: function "__get_xPSR" has already been defined
    __STATIC_INLINE uint32_t __get_xPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(115): error: #247: function "__get_PSP" has already been defined
    __STATIC_INLINE uint32_t __get_PSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(128): error: #247: function "__set_PSP" has already been defined
    __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(141): error: #247: function "__get_MSP" has already been defined
    __STATIC_INLINE uint32_t __get_MSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(154): error: #247: function "__set_MSP" has already been defined
    __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(167): error: #247: function "__get_PRIMASK" has already been defined
    __STATIC_INLINE uint32_t __get_PRIMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(180): error: #247: function "__set_PRIMASK" has already been defined
    __STATIC_INLINE void __set_PRIMASK(uint32_t priMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(211): error: #247: function "__get_BASEPRI" has already been defined
    __STATIC_INLINE uint32_t __get_BASEPRI(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(224): error: #247: function "__set_BASEPRI" has already been defined
    __STATIC_INLINE void __set_BASEPRI(uint32_t basePri)
    ..\Lib\CMSIS\inc\core_cmFunc.h(237): error: #247: function "__get_FAULTMASK" has already been defined
    __STATIC_INLINE uint32_t __get_FAULTMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(250): error: #247: function "__set_FAULTMASK" has already been defined
    __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(267): error: #247: function "__get_FPSCR" has already been defined
    __STATIC_INLINE uint32_t __get_FPSCR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(284): error: #247: function "__set_FPSCR" has already been defined
    __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
    ..\Lib\CMSIS\inc\arm_math.h(326): error: #101: "ARM_MATH_SUCCESS" has already been declared in the current scope
    ARM_MATH_SUCCESS = 0, /**< No error */
    ..\Lib\CMSIS\inc\arm_math.h(327): error: #101: "ARM_MATH_ARGUMENT_ERROR" has already been declared in the current scope
    ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(328): error: #101: "ARM_MATH_LENGTH_ERROR" has already been declared in the current scope
    ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(329): error: #101: "ARM_MATH_SIZE_MISMATCH" has already been declared in the current scope
    ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */
    ..\Lib\CMSIS\inc\arm_math.h(330): error: #101: "ARM_MATH_NANINF" has already been declared in the current scope
    ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */
    ..\Lib\CMSIS\inc\arm_math.h(331): error: #101: "ARM_MATH_SINGULAR" has already been declared in the current scope
    ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */
    ..\Lib\CMSIS\inc\arm_math.h(332): error: #101: "ARM_MATH_TEST_FAILURE" has already been declared in the current scope
    ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */
    ..\Lib\CMSIS\inc\arm_math.h(333): error: #256: invalid redeclaration of type name "arm_status" (declared at line 585 of "C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\arm_math_types.h")
    } arm_status;
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\CommonTables\arm_common_tables.c(24510): error: #20: identifier "ARMBITREVINDEXTABLEF64_16_TABLE_LENGTH" is undefined
    const uint16_t armBitRevIndexTableF64_16[ARMBITREVINDEXTABLEF64_16_TABLE_LENGTH] =
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\CommonTables\arm_common_tables.c(24518): error: #20: identifier "ARMBITREVINDEXTABLEF64_32_TABLE_LENGTH" is undefined
    const uint16_t armBitRevIndexTableF64_32[ARMBITREVINDEXTABLEF64_32_TABLE_LENGTH] =
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\CommonTables\arm_common_tables.c(24527): error: #20: identifier "ARMBITREVINDEXTABLEF64_64_TABLE_LENGTH" is undefined
    const uint16_t armBitRevIndexTableF64_64[ARMBITREVINDEXTABLEF64_64_TABLE_LENGTH] =
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\CommonTables\CommonTables.c: 0 warnings, 30 errors
    compiling ComplexMathFunctions.c...
    compiling FastMathFunctions.c...
    ..\Lib\CMSIS\inc\core_cmInstr.h(114): error: #247: function "__REV16" has already been defined
    __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
    ..\Lib\CMSIS\inc\core_cmInstr.h(128): error: #247: function "__REVSH" has already been defined
    __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value)
    ..\Lib\CMSIS\inc\core_cmFunc.h(50): error: #247: function "__get_CONTROL" has already been defined
    __STATIC_INLINE uint32_t __get_CONTROL(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(63): error: #247: function "__set_CONTROL" has already been defined
    __STATIC_INLINE void __set_CONTROL(uint32_t control)
    ..\Lib\CMSIS\inc\core_cmFunc.h(76): error: #247: function "__get_IPSR" has already been defined
    __STATIC_INLINE uint32_t __get_IPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(89): error: #247: function "__get_APSR" has already been defined
    __STATIC_INLINE uint32_t __get_APSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(102): error: #247: function "__get_xPSR" has already been defined
    __STATIC_INLINE uint32_t __get_xPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(115): error: #247: function "__get_PSP" has already been defined
    __STATIC_INLINE uint32_t __get_PSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(128): error: #247: function "__set_PSP" has already been defined
    __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(141): error: #247: function "__get_MSP" has already been defined
    __STATIC_INLINE uint32_t __get_MSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(154): error: #247: function "__set_MSP" has already been defined
    __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(167): error: #247: function "__get_PRIMASK" has already been defined
    __STATIC_INLINE uint32_t __get_PRIMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(180): error: #247: function "__set_PRIMASK" has already been defined
    __STATIC_INLINE void __set_PRIMASK(uint32_t priMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(211): error: #247: function "__get_BASEPRI" has already been defined
    __STATIC_INLINE uint32_t __get_BASEPRI(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(224): error: #247: function "__set_BASEPRI" has already been defined
    __STATIC_INLINE void __set_BASEPRI(uint32_t basePri)
    ..\Lib\CMSIS\inc\core_cmFunc.h(237): error: #247: function "__get_FAULTMASK" has already been defined
    __STATIC_INLINE uint32_t __get_FAULTMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(250): error: #247: function "__set_FAULTMASK" has already been defined
    __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(267): error: #247: function "__get_FPSCR" has already been defined
    __STATIC_INLINE uint32_t __get_FPSCR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(284): error: #247: function "__set_FPSCR" has already been defined
    __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
    ..\Lib\CMSIS\inc\arm_math.h(326): error: #101: "ARM_MATH_SUCCESS" has already been declared in the current scope
    ARM_MATH_SUCCESS = 0, /**< No error */
    ..\Lib\CMSIS\inc\arm_math.h(327): error: #101: "ARM_MATH_ARGUMENT_ERROR" has already been declared in the current scope
    ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(328): error: #101: "ARM_MATH_LENGTH_ERROR" has already been declared in the current scope
    ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(329): error: #101: "ARM_MATH_SIZE_MISMATCH" has already been declared in the current scope
    ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */
    ..\Lib\CMSIS\inc\arm_math.h(330): error: #101: "ARM_MATH_NANINF" has already been declared in the current scope
    ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */
    ..\Lib\CMSIS\inc\arm_math.h(331): error: #101: "ARM_MATH_SINGULAR" has already been declared in the current scope
    ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */
    ..\Lib\CMSIS\inc\arm_math.h(332): error: #101: "ARM_MATH_TEST_FAILURE" has already been declared in the current scope
    ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */
    ..\Lib\CMSIS\inc\arm_math.h(333): error: #256: invalid redeclaration of type name "arm_status" (declared at line 585 of "C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\arm_math_types.h")
    } arm_status;
    ..\Lib\CMSIS\inc\arm_math.h(412): error: #247: function "clip_q63_to_q31" has already been defined
    __STATIC_INLINE q31_t clip_q63_to_q31(
    ..\Lib\CMSIS\inc\arm_math.h(422): error: #247: function "clip_q63_to_q15" has already been defined
    __STATIC_INLINE q15_t clip_q63_to_q15(
    ..\Lib\CMSIS\inc\arm_math.h(432): error: #247: function "clip_q31_to_q7" has already been defined
    __STATIC_INLINE q7_t clip_q31_to_q7(
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\FastMathFunctions\FastMathFunctions.c: 0 warnings, 30 errors
    compiling DistanceFunctionsF16.c...
    compiling FastMathFunctionsF16.c...
    compiling FilteringFunctionsF16.c...
    compiling dji_psdk_module.cpp...
    compiling dji_setup_helpers.cpp...
    compiling DistanceFunctions.c...
    compiling FilteringFunctions.c...
    ..\Lib\CMSIS\inc\core_cmInstr.h(114): error: #247: function "__REV16" has already been defined
    __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
    ..\Lib\CMSIS\inc\core_cmInstr.h(128): error: #247: function "__REVSH" has already been defined
    __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value)
    ..\Lib\CMSIS\inc\core_cmFunc.h(50): error: #247: function "__get_CONTROL" has already been defined
    __STATIC_INLINE uint32_t __get_CONTROL(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(63): error: #247: function "__set_CONTROL" has already been defined
    __STATIC_INLINE void __set_CONTROL(uint32_t control)
    ..\Lib\CMSIS\inc\core_cmFunc.h(76): error: #247: function "__get_IPSR" has already been defined
    __STATIC_INLINE uint32_t __get_IPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(89): error: #247: function "__get_APSR" has already been defined
    __STATIC_INLINE uint32_t __get_APSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(102): error: #247: function "__get_xPSR" has already been defined
    __STATIC_INLINE uint32_t __get_xPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(115): error: #247: function "__get_PSP" has already been defined
    __STATIC_INLINE uint32_t __get_PSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(128): error: #247: function "__set_PSP" has already been defined
    __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(141): error: #247: function "__get_MSP" has already been defined
    __STATIC_INLINE uint32_t __get_MSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(154): error: #247: function "__set_MSP" has already been defined
    __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(167): error: #247: function "__get_PRIMASK" has already been defined
    __STATIC_INLINE uint32_t __get_PRIMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(180): error: #247: function "__set_PRIMASK" has already been defined
    __STATIC_INLINE void __set_PRIMASK(uint32_t priMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(211): error: #247: function "__get_BASEPRI" has already been defined
    __STATIC_INLINE uint32_t __get_BASEPRI(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(224): error: #247: function "__set_BASEPRI" has already been defined
    __STATIC_INLINE void __set_BASEPRI(uint32_t basePri)
    ..\Lib\CMSIS\inc\core_cmFunc.h(237): error: #247: function "__get_FAULTMASK" has already been defined
    __STATIC_INLINE uint32_t __get_FAULTMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(250): error: #247: function "__set_FAULTMASK" has already been defined
    __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(267): error: #247: function "__get_FPSCR" has already been defined
    __STATIC_INLINE uint32_t __get_FPSCR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(284): error: #247: function "__set_FPSCR" has already been defined
    __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
    ..\Lib\CMSIS\inc\arm_math.h(326): error: #101: "ARM_MATH_SUCCESS" has already been declared in the current scope
    ARM_MATH_SUCCESS = 0, /**< No error */
    ..\Lib\CMSIS\inc\arm_math.h(327): error: #101: "ARM_MATH_ARGUMENT_ERROR" has already been declared in the current scope
    ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(328): error: #101: "ARM_MATH_LENGTH_ERROR" has already been declared in the current scope
    ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(329): error: #101: "ARM_MATH_SIZE_MISMATCH" has already been declared in the current scope
    ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */
    ..\Lib\CMSIS\inc\arm_math.h(330): error: #101: "ARM_MATH_NANINF" has already been declared in the current scope
    ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */
    ..\Lib\CMSIS\inc\arm_math.h(331): error: #101: "ARM_MATH_SINGULAR" has already been declared in the current scope
    ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */
    ..\Lib\CMSIS\inc\arm_math.h(332): error: #101: "ARM_MATH_TEST_FAILURE" has already been declared in the current scope
    ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */
    ..\Lib\CMSIS\inc\arm_math.h(333): error: #256: invalid redeclaration of type name "arm_status" (declared at line 585 of "C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\arm_math_types.h")
    } arm_status;
    ..\Lib\CMSIS\inc\arm_math.h(412): error: #247: function "clip_q63_to_q31" has already been defined
    __STATIC_INLINE q31_t clip_q63_to_q31(
    ..\Lib\CMSIS\inc\arm_math.h(422): error: #247: function "clip_q63_to_q15" has already been defined
    __STATIC_INLINE q15_t clip_q63_to_q15(
    ..\Lib\CMSIS\inc\arm_math.h(432): error: #247: function "clip_q31_to_q7" has already been defined
    __STATIC_INLINE q7_t clip_q31_to_q7(
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\FilteringFunctions\FilteringFunctions.c: 0 warnings, 30 errors
    compiling InterpolationFunctions.c...
    compiling InterpolationFunctionsF16.c...
    compiling SupportFunctions.c...
    ..\Lib\CMSIS\inc\core_cmInstr.h(114): error: #247: function "__REV16" has already been defined
    __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
    ..\Lib\CMSIS\inc\core_cmInstr.h(128): error: #247: function "__REVSH" has already been defined
    __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value)
    ..\Lib\CMSIS\inc\core_cmFunc.h(50): error: #247: function "__get_CONTROL" has already been defined
    __STATIC_INLINE uint32_t __get_CONTROL(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(63): error: #247: function "__set_CONTROL" has already been defined
    __STATIC_INLINE void __set_CONTROL(uint32_t control)
    ..\Lib\CMSIS\inc\core_cmFunc.h(76): error: #247: function "__get_IPSR" has already been defined
    __STATIC_INLINE uint32_t __get_IPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(89): error: #247: function "__get_APSR" has already been defined
    __STATIC_INLINE uint32_t __get_APSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(102): error: #247: function "__get_xPSR" has already been defined
    __STATIC_INLINE uint32_t __get_xPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(115): error: #247: function "__get_PSP" has already been defined
    __STATIC_INLINE uint32_t __get_PSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(128): error: #247: function "__set_PSP" has already been defined
    __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(141): error: #247: function "__get_MSP" has already been defined
    __STATIC_INLINE uint32_t __get_MSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(154): error: #247: function "__set_MSP" has already been defined
    __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(167): error: #247: function "__get_PRIMASK" has already been defined
    __STATIC_INLINE uint32_t __get_PRIMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(180): error: #247: function "__set_PRIMASK" has already been defined
    __STATIC_INLINE void __set_PRIMASK(uint32_t priMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(211): error: #247: function "__get_BASEPRI" has already been defined
    __STATIC_INLINE uint32_t __get_BASEPRI(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(224): error: #247: function "__set_BASEPRI" has already been defined
    __STATIC_INLINE void __set_BASEPRI(uint32_t basePri)
    ..\Lib\CMSIS\inc\core_cmFunc.h(237): error: #247: function "__get_FAULTMASK" has already been defined
    __STATIC_INLINE uint32_t __get_FAULTMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(250): error: #247: function "__set_FAULTMASK" has already been defined
    __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(267): error: #247: function "__get_FPSCR" has already been defined
    __STATIC_INLINE uint32_t __get_FPSCR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(284): error: #247: function "__set_FPSCR" has already been defined
    __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
    ..\Lib\CMSIS\inc\arm_math.h(326): error: #101: "ARM_MATH_SUCCESS" has already been declared in the current scope
    ARM_MATH_SUCCESS = 0, /**< No error */
    ..\Lib\CMSIS\inc\arm_math.h(327): error: #101: "ARM_MATH_ARGUMENT_ERROR" has already been declared in the current scope
    ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(328): error: #101: "ARM_MATH_LENGTH_ERROR" has already been declared in the current scope
    ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(329): error: #101: "ARM_MATH_SIZE_MISMATCH" has already been declared in the current scope
    ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */
    ..\Lib\CMSIS\inc\arm_math.h(330): error: #101: "ARM_MATH_NANINF" has already been declared in the current scope
    ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */
    ..\Lib\CMSIS\inc\arm_math.h(331): error: #101: "ARM_MATH_SINGULAR" has already been declared in the current scope
    ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */
    ..\Lib\CMSIS\inc\arm_math.h(332): error: #101: "ARM_MATH_TEST_FAILURE" has already been declared in the current scope
    ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */
    ..\Lib\CMSIS\inc\arm_math.h(333): error: #256: invalid redeclaration of type name "arm_status" (declared at line 585 of "C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\arm_math_types.h")
    } arm_status;
    ..\Lib\CMSIS\inc\arm_math.h(412): error: #247: function "clip_q63_to_q31" has already been defined
    __STATIC_INLINE q31_t clip_q63_to_q31(
    ..\Lib\CMSIS\inc\arm_math.h(422): error: #247: function "clip_q63_to_q15" has already been defined
    __STATIC_INLINE q15_t clip_q63_to_q15(
    ..\Lib\CMSIS\inc\arm_math.h(432): error: #247: function "clip_q31_to_q7" has already been defined
    __STATIC_INLINE q7_t clip_q31_to_q7(
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\SupportFunctions\SupportFunctions.c: 0 warnings, 30 errors
    compiling MatrixFunctionsF16.c...
    compiling SVMFunctionsF16.c...
    compiling SVMFunctions.c...
    compiling StatisticsFunctionsF16.c...
    compiling QuaternionMathFunctions.c...
    compiling StatisticsFunctions.c...
    compiling TransformFunctions.c...
    ..\Lib\CMSIS\inc\core_cmInstr.h(114): error: #247: function "__REV16" has already been defined
    __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
    ..\Lib\CMSIS\inc\core_cmInstr.h(128): error: #247: function "__REVSH" has already been defined
    __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value)
    ..\Lib\CMSIS\inc\core_cmFunc.h(50): error: #247: function "__get_CONTROL" has already been defined
    __STATIC_INLINE uint32_t __get_CONTROL(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(63): error: #247: function "__set_CONTROL" has already been defined
    __STATIC_INLINE void __set_CONTROL(uint32_t control)
    ..\Lib\CMSIS\inc\core_cmFunc.h(76): error: #247: function "__get_IPSR" has already been defined
    __STATIC_INLINE uint32_t __get_IPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(89): error: #247: function "__get_APSR" has already been defined
    __STATIC_INLINE uint32_t __get_APSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(102): error: #247: function "__get_xPSR" has already been defined
    __STATIC_INLINE uint32_t __get_xPSR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(115): error: #247: function "__get_PSP" has already been defined
    __STATIC_INLINE uint32_t __get_PSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(128): error: #247: function "__set_PSP" has already been defined
    __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(141): error: #247: function "__get_MSP" has already been defined
    __STATIC_INLINE uint32_t __get_MSP(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(154): error: #247: function "__set_MSP" has already been defined
    __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
    ..\Lib\CMSIS\inc\core_cmFunc.h(167): error: #247: function "__get_PRIMASK" has already been defined
    __STATIC_INLINE uint32_t __get_PRIMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(180): error: #247: function "__set_PRIMASK" has already been defined
    __STATIC_INLINE void __set_PRIMASK(uint32_t priMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(211): error: #247: function "__get_BASEPRI" has already been defined
    __STATIC_INLINE uint32_t __get_BASEPRI(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(224): error: #247: function "__set_BASEPRI" has already been defined
    __STATIC_INLINE void __set_BASEPRI(uint32_t basePri)
    ..\Lib\CMSIS\inc\core_cmFunc.h(237): error: #247: function "__get_FAULTMASK" has already been defined
    __STATIC_INLINE uint32_t __get_FAULTMASK(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(250): error: #247: function "__set_FAULTMASK" has already been defined
    __STATIC_INLINE void __set_FAULTMASK(uint32_t faultMask)
    ..\Lib\CMSIS\inc\core_cmFunc.h(267): error: #247: function "__get_FPSCR" has already been defined
    __STATIC_INLINE uint32_t __get_FPSCR(void)
    ..\Lib\CMSIS\inc\core_cmFunc.h(284): error: #247: function "__set_FPSCR" has already been defined
    __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
    ..\Lib\CMSIS\inc\arm_math.h(326): error: #101: "ARM_MATH_SUCCESS" has already been declared in the current scope
    ARM_MATH_SUCCESS = 0, /**< No error */
    ..\Lib\CMSIS\inc\arm_math.h(327): error: #101: "ARM_MATH_ARGUMENT_ERROR" has already been declared in the current scope
    ARM_MATH_ARGUMENT_ERROR = -1, /**< One or more arguments are incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(328): error: #101: "ARM_MATH_LENGTH_ERROR" has already been declared in the current scope
    ARM_MATH_LENGTH_ERROR = -2, /**< Length of data buffer is incorrect */
    ..\Lib\CMSIS\inc\arm_math.h(329): error: #101: "ARM_MATH_SIZE_MISMATCH" has already been declared in the current scope
    ARM_MATH_SIZE_MISMATCH = -3, /**< Size of matrices is not compatible with the operation. */
    ..\Lib\CMSIS\inc\arm_math.h(330): error: #101: "ARM_MATH_NANINF" has already been declared in the current scope
    ARM_MATH_NANINF = -4, /**< Not-a-number (NaN) or infinity is generated */
    ..\Lib\CMSIS\inc\arm_math.h(331): error: #101: "ARM_MATH_SINGULAR" has already been declared in the current scope
    ARM_MATH_SINGULAR = -5, /**< Generated by matrix inversion if the input matrix is singular and cannot be inverted. */
    ..\Lib\CMSIS\inc\arm_math.h(332): error: #101: "ARM_MATH_TEST_FAILURE" has already been declared in the current scope
    ARM_MATH_TEST_FAILURE = -6 /**< Test Failed */
    ..\Lib\CMSIS\inc\arm_math.h(333): error: #256: invalid redeclaration of type name "arm_status" (declared at line 585 of "C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\arm_math_types.h")
    } arm_status;
    ..\Lib\CMSIS\inc\arm_math.h(412): error: #247: function "clip_q63_to_q31" has already been defined
    __STATIC_INLINE q31_t clip_q63_to_q31(
    ..\Lib\CMSIS\inc\arm_math.h(422): error: #247: function "clip_q63_to_q15" has already been defined
    __STATIC_INLINE q15_t clip_q63_to_q15(
    ..\Lib\CMSIS\inc\arm_math.h(432): error: #247: function "clip_q31_to_q7" has already been defined
    __STATIC_INLINE q7_t clip_q31_to_q7(
    C:\Users\Matt\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\DSP\Source\TransformFunctions\TransformFunctions.c: 0 warnings, 30 errors
    compiling SupportFunctionsF16.c...
    compiling TransformFunctionsF16.c...
    compiling MatrixFunctions.c...
    ".\Objects\osdk_stm32.axf" - 180 Error(s), 0 Warning(s).
    Target not created.
    Build Time Elapsed: 00:00:10

Children
No data