cancel
Showing results for 
Search instead for 
Did you mean: 

Generated code from CubeMX 5 does not compile on OpenSTM32

BerndE
Associate II

I have a problem with a new generated code from CubeMX 5 (latest version), when compiling it with the latest version of OpenStm32.

I am using SPI, I2C, UART, ADC-IN10, RTC and ext. 32kHz Quarz

Here are some of the errors I receive:

Description Resource Path Location Type

'uint16_t' undeclared here (not in a function); did you mean '__uint16_t'? arm_common_tables.h /E2xx/Drivers/CMSIS/Include line 90 C/C++ Problem

#error "Define according the used Cortex core ARM_MATH_CM7, ARM_MATH_CM4, ARM_MATH_CM3, ARM_MATH_CM0PLUS or ARM_MATH_CM0" arm_math.h /E2xx/Drivers/CMSIS/Include line 314 C/C++ Problem

expected ')' before numeric constant arm_common_tables.h /E2xx/Drivers/CMSIS/Include line 90 C/C++ Problem

expected '=', ',', ';', 'asm' or '__attribute__' before 'arm_bilinear_interp_f32' arm_math.h /E2xx/Drivers/CMSIS/Include line 6752 C/C++ Problem

expected '=', ',', ';', 'asm' or '__attribute__' before 'arm_bilinear_interp_q15' arm_math.h /E2xx/Drivers/CMSIS/Include line 6892 C/C++ Problem

expected '=', ',', ';', 'asm' or '__attribute__' before 'arm_bilinear_interp_q31' arm_math.h /E2xx/Drivers/CMSIS/Include line 6818 C/C++ Problem

expected '=', ',', ';', 'asm' or '__attribute__' before 'arm_bilinear_interp_q7' arm_math.h /E2xx/Drivers/CMSIS/Include line 6970 C/C++ Problem

expected '=', ',', ';', 'asm' or '__attribute__' before 'arm_linear_interp_f32' arm_math.h /E2xx/Drivers/CMSIS/Include line 5433 C/C++ Problem

expected '=', ',', ';', 'asm' or '__attribute__' before 'arm_linear_interp_q15' arm_math.h /E2xx/Drivers/CMSIS/Include line 5548 C/C++ Problem

expected '=', ',', ';', 'asm' or '__attribute__' before 'arm_linear_interp_q31' arm_math.h /E2xx/Drivers/CMSIS/Include line 5490 C/C++ Problem

expected '=', ',', ';', 'asm' or '__attribute__' before 'arm_linear_interp_q7' arm_math.h /E2xx/Drivers/CMSIS/Include line 5605 C/C++ Problem

expected '=', ',', ';', 'asm' or '__attribute__' before 'arm_pid_f32' arm_math.h /E2xx/Drivers/CMSIS/Include line 4795 C/C++ Problem

expected '=', ',', ';', 'asm' or '__attribute__' before 'arm_pid_q15' arm_math.h /E2xx/Drivers/CMSIS/Include line 4876 C/C++ Problem

expected declaration specifiers or '...' before 'uint16_t' arm_bitreversal.c /E2xx/Drivers/CMSIS/DSP_Lib/Source/TransformFunctions line 128 C/C++ Problem

expected declaration specifiers or '...' before 'uint16_t' arm_bitreversal.c /E2xx/Drivers/CMSIS/DSP_Lib/Source/TransformFunctions line 129 C/C++ Problem

expected declaration specifiers or '...' before 'uint16_t' arm_bitreversal.c /E2xx/Drivers/CMSIS/DSP_Lib/Source/TransformFunctions line 199 C/C++ Problem

expected declaration specifiers or '...' before 'uint16_t' arm_bitreversal.c /E2xx/Drivers/CMSIS/DSP_Lib/Source/TransformFunctions line 200 C/C++ Problem

make: *** [Drivers/CMSIS/DSP_Lib/Source/TransformFunctions/arm_bitreversal.o] Error 1 E2xx C/C++ Problem

recipe for target 'Drivers/CMSIS/DSP_Lib/Source/TransformFunctions/arm_bitreversal.o' failed subdir.mk /E2xx/Debug/Drivers/CMSIS/DSP_Lib/Source/TransformFunctions line 108 C/C++ Problem

unknown type name '__INLINE' arm_math.h /E2xx/Drivers/CMSIS/Include line 484 C/C++ Problem

unknown type name '__INLINE' arm_math.h /E2xx/Drivers/CMSIS/Include line 6818 C/C++ Problem

unknown type name '__INLINE' arm_math.h /E2xx/Drivers/CMSIS/Include line 6892 C/C++ Problem

unknown type name '__INLINE' arm_math.h /E2xx/Drivers/CMSIS/Include line 6970 C/C++ Problem

unknown type name 'int16_t' arm_math.h /E2xx/Drivers/CMSIS/Include line 392 C/C++ Problem

unknown type name 'int32_t' arm_math.h /E2xx/Drivers/CMSIS/Include line 4450 C/C++ Problem

unknown type name 'int32_t' arm_math.h /E2xx/Drivers/CMSIS/Include line 4463 C/C++ Problem

unknown type name 'int32_t' arm_math.h /E2xx/Drivers/CMSIS/Include line 4476 C/C++ Problem

unknown type name 'int32_t'; did you mean '__int32_t'? arm_math.h /E2xx/Drivers/CMSIS/Include line 4547 C/C++ Problem

unknown type name 'int32_t'; did you mean '__int32_t'? arm_math.h /E2xx/Drivers/CMSIS/Include line 4585 C/C++ Problem

unknown type name 'int32_t'; did you mean '__int32_t'? arm_math.h /E2xx/Drivers/CMSIS/Include line 4623 C/C++ Problem

unknown type name 'int64_t' arm_math.h /E2xx/Drivers/CMSIS/Include line 402 C/C++ Problem

unknown type name 'int8_t' arm_math.h /E2xx/Drivers/CMSIS/Include line 387 C/C++ Problem

unknown type name 'uint32_t'; did you mean '__uint32_t'? arm_math.h /E2xx/Drivers/CMSIS/Include line 1900 C/C++ Problem

unknown type name 'uint32_t'; did you mean '__uint32_t'? arm_math.h /E2xx/Drivers/CMSIS/Include line 1914 C/C++ Problem

unknown type name 'int8_t'; did you mean 'wint_t'? arm_math.h /E2xx/Drivers/CMSIS/Include line 2542 C/C++ Problem

unknown type name 'int8_t'; did you mean 'wint_t'? arm_math.h /E2xx/Drivers/CMSIS/Include line 2526 C/C++ Problem

unknown type name 'int8_t'; did you mean 'wint_t'? arm_math.h /E2xx/Drivers/CMSIS/Include line 1335 C/C++ Problem

unknown type name 'int8_t'; did you mean 'wint_t'? arm_math.h /E2xx/Drivers/CMSIS/Include line 1277 C/C++ Problem

in expansion of macro 'ARMBITREVINDEXTABLE__16_TABLE_LENGTH' arm_common_tables.h /E2xx/Drivers/CMSIS/Include line 100 C/C++ Problem

0 REPLIES 0