Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explicit inclusion of <Arduino.h> triggers compilation error #11488

Closed
AndrewBCN opened this issue May 6, 2021 · 4 comments
Closed

explicit inclusion of <Arduino.h> triggers compilation error #11488

AndrewBCN opened this issue May 6, 2021 · 4 comments
Labels
Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug

Comments

@AndrewBCN
Copy link

AndrewBCN commented May 6, 2021

Hello,
I did check the open and closed issues and the closest I have found is this: #4352
but it's not the same.

I am using Ubuntu 20.10, Arduino 1.8.13 and STM32 core 2.0.0.

In some of my sketches I test for the STM32 core version with this code
#if !defined(STM32_CORE_VERSION) || (STM32_CORE_VERSION < 0x02000000)
#error "Due to API change, this sketch is compatible with STM32_CORE_VERSION >= 0x02000000"
#endif

This compiles totally fine.

However, if in my sketch I explicitly add:
#include <Arduino.h>

this triggers the compilation error in the test.

It was my understanding that the Arduino build system automatically adds the #include <Arduino.h> to the top of the generated cpp code, so that would be a double inclusion and shouldn't change anything at all, but it seems it does.

Some help to solve this conundrum would be very much appreciated.

Note that the example sketches in the U8g2/u8x8 library all explicitly add #include <Arduino.h>, that's how I stumbled upon this problem.

@matthijskooijman
Copy link
Collaborator

It was my understanding that the Arduino build system automatically adds the #include <Arduino.h> to the top of the generated cpp code, so that would be a double inclusion and shouldn't change anything at all, but it seems it does.

This is correct, though I think it omits this if it is already found in the sketch.

Can you provide a minimal example that triggers the problem, and provide full verbose compilation output of that?

@AndrewBCN
Copy link
Author

AndrewBCN commented May 6, 2021

Yes, here is a minimal example of the problem, and thank you very much for taking a look at this puzzling problem.

  1. This is an example sketch included with the U8g2 library, u8x8/HelloWorld. Note that I have commented out the #include <Arduino.h>, so this code compiles fine without triggering the error in the STM32 core version test:
#if !defined(STM32_CORE_VERSION) || (STM32_CORE_VERSION  < 0x02000000)
#error "Due to API change, this sketch is compatible with STM32_CORE_VERSION  >= 0x02000000"
#endif

// #include <Arduino.h>
#include <U8x8lib.h>

#include <Wire.h>

U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); 	      

void setup(void)
{
  u8x8.begin();
  u8x8.setPowerSave(0);
}

void loop(void)
{
  u8x8.setFont(u8x8_font_chroma48medium8_r);
  u8x8.drawString(0,1,"Hello World!");
  delay(2000);
}

2. Now if I uncomment the #include <Arduino.h>, this triggers the error during compilation:

#if !defined(STM32_CORE_VERSION) || (STM32_CORE_VERSION  < 0x02000000)
#error "Due to API change, this sketch is compatible with STM32_CORE_VERSION  >= 0x02000000"
#endif

#include <Arduino.h>
#include <U8x8lib.h>

#include <Wire.h>

Here is the message I get:

HelloWorld:41:2: error: #error "Due to API change, this sketch is compatible with STM32_CORE_VERSION  >= 0x02000000"
   41 | #error "Due to API change, this sketch is compatible with STM32_CORE_VERSION  >= 0x02000000"
      |  ^~~~~
exit status 1
#error "Due to API change, this sketch is compatible with STM32_CORE_VERSION  >= 0x02000000"

And the full verbose compilation output is as follows:

/opt/arduino-1.8.13/arduino-builder -dump-prefs -logger=machine -hardware /opt/arduino-1.8.13/hardware -hardware /home/andrew/.arduino15/packages -tools /opt/arduino-1.8.13/tools-builder -tools /opt/arduino-1.8.13/hardware/tools/avr -tools /home/andrew/.arduino15/packages -built-in-libraries /opt/arduino-1.8.13/libraries -libraries /home/andrew/Arduino/libraries -fqbn=STMicroelectronics:stm32:GenF4:pnum=BLACKPILL_F411CE,upload_method=dfuMethod,xserial=generic,usb=CDCgen,xusb=FS,opt=osstd,rtlib=nano -vid-pid=0483_5740 -ide-version=10813 -build-path /tmp/arduino_build_942542 -warnings=none -build-cache /tmp/arduino_cache_607038 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS.path=/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0 -prefs=runtime.tools.CMSIS-5.7.0.path=/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0 -prefs=runtime.tools.STM32Tools.path=/home/andrew/.arduino15/packages/STMicroelectronics/tools/STM32Tools/2.0.0 -prefs=runtime.tools.STM32Tools-2.0.0.path=/home/andrew/.arduino15/packages/STMicroelectronics/tools/STM32Tools/2.0.0 -prefs=runtime.tools.xpack-arm-none-eabi-gcc.path=/home/andrew/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3 -prefs=runtime.tools.xpack-arm-none-eabi-gcc-9.3.1-1.3.path=/home/andrew/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3 -verbose /tmp/arduino_modified_sketch_812762/HelloWorld.ino
/opt/arduino-1.8.13/arduino-builder -compile -logger=machine -hardware /opt/arduino-1.8.13/hardware -hardware /home/andrew/.arduino15/packages -tools /opt/arduino-1.8.13/tools-builder -tools /opt/arduino-1.8.13/hardware/tools/avr -tools /home/andrew/.arduino15/packages -built-in-libraries /opt/arduino-1.8.13/libraries -libraries /home/andrew/Arduino/libraries -fqbn=STMicroelectronics:stm32:GenF4:pnum=BLACKPILL_F411CE,upload_method=dfuMethod,xserial=generic,usb=CDCgen,xusb=FS,opt=osstd,rtlib=nano -vid-pid=0483_5740 -ide-version=10813 -build-path /tmp/arduino_build_942542 -warnings=none -build-cache /tmp/arduino_cache_607038 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS.path=/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0 -prefs=runtime.tools.CMSIS-5.7.0.path=/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0 -prefs=runtime.tools.STM32Tools.path=/home/andrew/.arduino15/packages/STMicroelectronics/tools/STM32Tools/2.0.0 -prefs=runtime.tools.STM32Tools-2.0.0.path=/home/andrew/.arduino15/packages/STMicroelectronics/tools/STM32Tools/2.0.0 -prefs=runtime.tools.xpack-arm-none-eabi-gcc.path=/home/andrew/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3 -prefs=runtime.tools.xpack-arm-none-eabi-gcc-9.3.1-1.3.path=/home/andrew/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3 -verbose /tmp/arduino_modified_sketch_812762/HelloWorld.ino
Using board 'GenF4' from platform in folder: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0
Using core 'arduino' from platform in folder: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0
/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/extras/prebuild.sh /tmp/arduino_build_942542 /tmp/arduino_modified_sketch_812762
Detecting libraries used...
/home/andrew/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DUSE_FULL_LL_DRIVER -mthumb @/tmp/arduino_build_942542/sketch/build_opt.h -c -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit -I/tmp/arduino_modified_sketch_812762 -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/avr -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32 -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/LL -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/OpenAMP -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb/hid -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb/cdc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32F4xx_HAL_Driver/Inc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32F4xx_HAL_Driver/Src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/STM32F4xx -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/ST/STM32_USB_Device_Library/Core/Src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/open-amp/lib/include -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/libmetal/lib/include -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/virtual_driver -w -x c++ -E -CC -DSTM32F4xx -DARDUINO=10813 -DARDUINO_BLACKPILL_F411CE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"BLACKPILL_F411CE\"" "-DVARIANT_H=\"variant_BLACKPILL_F411CE.h\"" -DSTM32F411xE -DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_UART_MODULE_ENABLED -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/ -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/ -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/DSP/Include -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/DSP/PrivateInclude -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/variants/STM32F4xx/F411C(C-E)(U-Y) /tmp/arduino_build_942542/sketch/HelloWorld.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for U8x8lib.h: [U8g2@2.28.10]
ResolveLibrary(U8x8lib.h)
  -> candidates: [U8g2@2.28.10]
/home/andrew/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DUSE_FULL_LL_DRIVER -mthumb @/tmp/arduino_build_942542/sketch/build_opt.h -c -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit -I/tmp/arduino_modified_sketch_812762 -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/avr -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32 -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/LL -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/OpenAMP -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb/hid -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb/cdc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32F4xx_HAL_Driver/Inc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32F4xx_HAL_Driver/Src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/STM32F4xx -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/ST/STM32_USB_Device_Library/Core/Src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/open-amp/lib/include -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/libmetal/lib/include -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/virtual_driver -w -x c++ -E -CC -DSTM32F4xx -DARDUINO=10813 -DARDUINO_BLACKPILL_F411CE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"BLACKPILL_F411CE\"" "-DVARIANT_H=\"variant_BLACKPILL_F411CE.h\"" -DSTM32F411xE -DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_UART_MODULE_ENABLED -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/ -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/ -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/DSP/Include -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/DSP/PrivateInclude -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/variants/STM32F4xx/F411C(C-E)(U-Y) -I/home/andrew/Arduino/libraries/U8g2/src /tmp/arduino_build_942542/sketch/HelloWorld.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
/home/andrew/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DUSE_FULL_LL_DRIVER -mthumb @/tmp/arduino_build_942542/sketch/build_opt.h -c -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit -I/tmp/arduino_modified_sketch_812762 -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/avr -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32 -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/LL -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/OpenAMP -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb/hid -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb/cdc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32F4xx_HAL_Driver/Inc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32F4xx_HAL_Driver/Src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/STM32F4xx -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/ST/STM32_USB_Device_Library/Core/Src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/open-amp/lib/include -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/libmetal/lib/include -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/virtual_driver -w -x c++ -E -CC -DSTM32F4xx -DARDUINO=10813 -DARDUINO_BLACKPILL_F411CE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"BLACKPILL_F411CE\"" "-DVARIANT_H=\"variant_BLACKPILL_F411CE.h\"" -DSTM32F411xE -DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_UART_MODULE_ENABLED -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/ -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/ -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/DSP/Include -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/DSP/PrivateInclude -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/variants/STM32F4xx/F411C(C-E)(U-Y) -I/home/andrew/Arduino/libraries/U8g2/src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/Wire/src /tmp/arduino_build_942542/sketch/HelloWorld.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Error while detecting libraries included by /tmp/arduino_build_942542/sketch/HelloWorld.ino.cpp
/home/andrew/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DUSE_FULL_LL_DRIVER -mthumb @/tmp/arduino_build_942542/sketch/build_opt.h -c -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit -I/tmp/arduino_modified_sketch_812762 -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/avr -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32 -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/LL -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/OpenAMP -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb/hid -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb/cdc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32F4xx_HAL_Driver/Inc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32F4xx_HAL_Driver/Src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/STM32F4xx -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/ST/STM32_USB_Device_Library/Core/Src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/open-amp/lib/include -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/libmetal/lib/include -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/virtual_driver -w -x c++ -E -CC -DSTM32F4xx -DARDUINO=10813 -DARDUINO_BLACKPILL_F411CE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"BLACKPILL_F411CE\"" "-DVARIANT_H=\"variant_BLACKPILL_F411CE.h\"" -DSTM32F411xE -DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_UART_MODULE_ENABLED -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/ -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/ -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/DSP/Include -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/DSP/PrivateInclude -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/variants/STM32F4xx/F411C(C-E)(U-Y) -I/home/andrew/Arduino/libraries/U8g2/src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/Wire/src /tmp/arduino_build_942542/sketch/SrcWrapper.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for SrcWrapper.h: [SrcWrapper@1.0.1]
ResolveLibrary(SrcWrapper.h)
  -> candidates: [SrcWrapper@1.0.1]
/home/andrew/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DUSE_FULL_LL_DRIVER -mthumb @/tmp/arduino_build_942542/sketch/build_opt.h -c -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit -I/tmp/arduino_modified_sketch_812762 -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/avr -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32 -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/LL -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/OpenAMP -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb/hid -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb/cdc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32F4xx_HAL_Driver/Inc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32F4xx_HAL_Driver/Src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/STM32F4xx -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/ST/STM32_USB_Device_Library/Core/Src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/open-amp/lib/include -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/libmetal/lib/include -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/virtual_driver -w -x c++ -E -CC -DSTM32F4xx -DARDUINO=10813 -DARDUINO_BLACKPILL_F411CE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"BLACKPILL_F411CE\"" "-DVARIANT_H=\"variant_BLACKPILL_F411CE.h\"" -DSTM32F411xE -DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_UART_MODULE_ENABLED -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/ -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/ -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/DSP/Include -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/DSP/PrivateInclude -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/variants/STM32F4xx/F411C(C-E)(U-Y) -I/home/andrew/Arduino/libraries/U8g2/src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/Wire/src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src /tmp/arduino_build_942542/sketch/SrcWrapper.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/U8g2lib.cpp
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/U8x8lib.cpp
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_bitmap.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_box.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_buffer.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_circle.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_cleardisplay.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_d_memory.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_d_setup.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_font.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_fonts.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_hvline.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_input_value.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_intersection.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_kerning.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_line.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_ll_hvline.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_message.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_polygon.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_selection_list.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8g2_setup.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8log.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8log_u8g2.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8log_u8x8.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_8x8.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_byte.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_cad.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_capture.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_a2printer.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_il3820_296x128.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ist3020.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ist7920.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ks0108.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_lc7981.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ld7032_60x32.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ls013b7dh03.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_max7219.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_pcd8544_84x48.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_pcf8812.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_pcf8814_hx1230.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_s1d15e06.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_sbn1661.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_sed1330.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_sh1106_64x32.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_sh1106_72x40.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_sh1107.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_sh1108.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_sh1122.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1305.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1306_128x32.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1306_128x64_noname.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1306_2040x16.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1306_48x64.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1306_64x32.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1306_64x48.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1306_72x40.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1306_96x16.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1309.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1316.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1317.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1318.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1322.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1325.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1326.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1327.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1329.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1606_172x72.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_ssd1607_200x200.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_st7511.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_st75256.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_st7528.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_st75320.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_st7565.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_st7567.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_st7571.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_st7586s_erc240160.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_st7586s_s028hn118a.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_st7586s_ymc240160.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_st7588.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_st7920.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_t6963.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_uc1601.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_uc1604.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_uc1608.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_uc1610.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_uc1611.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_uc1617.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_uc1638.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_uc1701_dogs102.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_d_uc1701_mini12864.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_debounce.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_display.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_fonts.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_gpio.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_input_value.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_message.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_selection_list.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_setup.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_string.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_u16toa.c
Using cached library dependencies for file: /home/andrew/Arduino/libraries/U8g2/src/clib/u8x8_u8toa.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/Wire/src/Wire.cpp
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/Wire/src/utility/twi.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_adc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_adc_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_can.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_cec.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_comp.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_comp_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_cordic.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_cortex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_crc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_crc_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_cryp.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_cryp_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_dac.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_dac_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_dcmi.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_dcmi_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_dfsdm.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_dfsdm_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_dma.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_dma2d.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_dma_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_dsi.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_dts.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_eth.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_eth_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_exti.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_fdcan.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_firewall.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_flash.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_flash_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_flash_ramfunc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_fmac.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_fmpi2c.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_fmpi2c_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_fmpsmbus.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_fmpsmbus_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_gfxmmu.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_gpio.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_gpio_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_gtzc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_hash.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_hash_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_hcd.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_hrtim.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_hsem.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_i2c.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_i2c_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_i2s.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_i2s_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_icache.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_ipcc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_irda.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_iwdg.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_jpeg.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_lcd.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_lptim.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_ltdc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_ltdc_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_mdios.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_mdma.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_mmc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_mmc_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_nand.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_nor.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_opamp.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_opamp_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_ospi.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_otfdec.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_pccard.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_pcd.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_pcd_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_pka.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_pssi.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_pwr.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_pwr_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_qspi.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_ramecc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_rcc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_rcc_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_rng.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_rng_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_rtc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_rtc_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_sai.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_sai_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_sd.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_sd_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_sdadc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_sdram.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_smartcard.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_smartcard_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_smbus.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_smbus_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_spdifrx.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_spi.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_spi_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_sram.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_swpmi.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_tim.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_tim_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_tsc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_uart.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_uart_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_usart.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_usart_ex.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/HAL/stm32yyxx_hal_wwdg.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_adc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_bdma.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_comp.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_cordic.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_crc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_crs.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_dac.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_delayblock.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_dma.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_dma2d.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_exti.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_fmac.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_fmc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_fmpi2c.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_fsmc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_gpio.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_hrtim.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_i2c.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_icache.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_lptim.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_lpuart.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_mdma.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_opamp.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_pka.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_pwr.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_rcc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_rng.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_rtc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_sdmmc.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_spi.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_swpmi.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_tim.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_ucpd.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_usart.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_usb.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_utils.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/PortNames.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/analog.cpp
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/bootloader.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/clock.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/core_callback.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/dwt.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/hw_config.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/interrupt.cpp
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/otp.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/pinmap.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/stm32_def.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/system_stm32yyxx.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/timer.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/stm32/uart.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/syscalls.c
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SPI/src/SPI.cpp
Using cached library dependencies for file: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SPI/src/utility/spi_com.c
Generating function prototypes...
/home/andrew/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/9.3.1-1.3/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DUSE_FULL_LL_DRIVER -mthumb @/tmp/arduino_build_942542/sketch/build_opt.h -c -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit -I/tmp/arduino_modified_sketch_812762 -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/avr -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32 -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/LL -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/OpenAMP -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb/hid -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino/stm32/usb/cdc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32F4xx_HAL_Driver/Inc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32F4xx_HAL_Driver/Src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/STM32F4xx -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/ST/STM32_USB_Device_Library/Core/Src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/open-amp/lib/include -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/libmetal/lib/include -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Middlewares/OpenAMP/virtual_driver -w -x c++ -E -CC -DSTM32F4xx -DARDUINO=10813 -DARDUINO_BLACKPILL_F411CE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"BLACKPILL_F411CE\"" "-DVARIANT_H=\"variant_BLACKPILL_F411CE.h\"" -DSTM32F411xE -DUSBCON -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_UART_MODULE_ENABLED -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/Core/Include/ -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/ -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/ -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/DSP/Include -I/home/andrew/.arduino15/packages/STMicroelectronics/tools/CMSIS/5.7.0/CMSIS/DSP/PrivateInclude -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/cores/arduino -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/variants/STM32F4xx/F411C(C-E)(U-Y) -I/home/andrew/Arduino/libraries/U8g2/src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/Wire/src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src -I/home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SPI/src /tmp/arduino_build_942542/sketch/HelloWorld.ino.cpp -o /tmp/arduino_build_942542/preproc/ctags_target_for_gcc_minus_e.cpp -DARDUINO_LIB_DISCOVERY_PHASE
HelloWorld:41:2: error: #error "Due to API change, this sketch is compatible with STM32_CORE_VERSION  >= 0x02000000"
   41 | #error "Due to API change, this sketch is compatible with STM32_CORE_VERSION  >= 0x02000000"
      |  ^~~~~
Using library U8g2 at version 2.28.10 in folder: /home/andrew/Arduino/libraries/U8g2 
Using library Wire at version 1.0 in folder: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/Wire 
Using library SrcWrapper at version 1.0.1 in folder: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper 
Using library SPI at version 1.0 in folder: /home/andrew/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SPI 
exit status 1
#error "Due to API change, this sketch is compatible with STM32_CORE_VERSION  >= 0x02000000"

@matthijskooijman
Copy link
Collaborator

It looks like you put your test before the #include <Arduino.h>, so any defines that are done inside (files included by) Arduino.h are not available before that line. Seems like it works exactly like expected: If you do not have a #include <Arduino.h>, then the IDE adds it at the top (so before your check), but if you do have the include, then the IDE does not add it, so your check is too early.

I think this is working as expected, so I'm closing this issue. If you feel otherwise, feel free to leave additional comments.

@matthijskooijman matthijskooijman added the Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug label May 7, 2021
@AndrewBCN
Copy link
Author

Thank you very much for solving this puzzle, and you are absolutely right: if I put the core version test after the #include <Arduino.h>, the code compiles fine and does not trigger the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug
Projects
None yet
Development

No branches or pull requests

2 participants