Compilation error on Arduino IDE 2.0.3

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
Post Reply
Phono
Posts: 68
Joined: Thu Mar 19, 2020 9:32 am

Compilation error on Arduino IDE 2.0.3

Post by Phono »

Hi all,
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 */
      |                                   ^~~~~
What is the problem?
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Compilation error on Arduino IDE 2.0.3

Post by fpiSTM »

I've tried to build for F1 (BP F103C8) AnalogReadSerial.ino with Arduino IDE 2.0.3 ans had no issue.
Maybe the core installation was corrupted or linked to your sketch.
Post Reply

Return to “IDE's”