I am moving a set of sketches from an old computer to a new one. I also decided to try the newest versions of the tools, so I installed the Arduino IDE 2.03 and the STM32 set of boards.
I have tried to compile several files. Some succeeded (I did not test if they actually run in the board), but some fail, with the following error:
Code: Select all
In file included from C:\Users\tamba\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\system/STM32F1xx/stm32f1xx_hal_conf_default.h:304,
from C:\Users\tamba\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\system/STM32F1xx/stm32f1xx_hal_conf.h:13,
from C:\Users\tamba\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\system/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
from C:\Users\tamba\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\system/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h:255,
from C:\Users\tamba\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino/stm32/stm32_def.h:28,
from C:\Users\tamba\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino/stm32/clock.h:19,
from C:\Users\tamba\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino/wiring_time.h:23,
from C:\Users\tamba\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino/wiring.h:38,
from C:\Users\tamba\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\cores\arduino/Arduino.h:36,
from C:\Users\tamba\AppData\Local\Temp\arduino-sketch-914E0190BA916DC4D5869D00550E1CE3\sketch\PasserelleTimonerieWifi6.ino.cpp:1:
C:\Users\tamba\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\system/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h:118:35: error: expected identifier before numeric constant
118 | #define HAL_FLASH_ERROR_PROG 0x01U /*!< Programming error */
| ^~~~~