platformio / platform-ststm32

ST STM32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm32
Apache License 2.0
399 stars 311 forks source link

STM32duino v2.0 #521

Closed sstaub closed 2 years ago

sstaub commented 3 years ago

Can you update STM32duino to v2.0?

ColdFireHunter commented 3 years ago

If there is a need for help, I could make the .json Board Files, I did a lot of them recently by myself.

yqboy commented 3 years ago

I just need it too, Can anyone tell me how to update ?

ColdFireHunter commented 3 years ago

We need to transform all the variants from the core to the .json files for Platform I/O and then we need to update dependencies and version info. The big part is transforming all of the variants

yqboy commented 3 years ago

I replaced framework-arduinoststm32 to V2.0 but it does not work. so it is the problem of .json file and dependencies?

fpistm commented 3 years ago

@valeros if you need some information. Do not hesitate, I could help ;)

Main changes are in the variant management. Now variant are defined per series/mcus. Ex STM32H7xx/H742Z(G-I)T_H743Z(G-I)T_H747A(G-I)I_H747I(G-I)T_H750ZBT_H753ZIT_H757AII_H757IIT

https://github.com/stm32duino/Arduino_Core_STM32/tree/master/variants/STM32H7xx/H743I(G-I)(K-T)_H750IBK_H753II(K-T)

I've made a temporary fix for the PIO build action here : https://github.com/stm32duino/Arduino_Core_STM32/blob/2e9eeabc6c540e6157f83ec0ec08e29af47086e7/.github/actions/pio-build/entrypoint.sh#L15-L21

Anyway I was not able to define the build.variant path with '(' and ')' in the path.

yqboy commented 3 years ago

I don't know the operation of platfromIO, but I tried to modify the .json but the compilation error was reported. This is beyond my knowledge. I had to extract the V2.0 variants and add it to platfromIO, and it can now run well.

yqboy commented 3 years ago

image image

ColdFireHunter commented 3 years ago

@fpistm Do you know how to include the new variant Files, because I tried it but couldn't get it to work? I already prepared my PIO with the new core v2.0 Update but couldn't get it to compile, I'm Missing the variant.h file. Thank you for your help.

fpistm commented 3 years ago

Honestly I don't know so much about PIO. The only thing I do was to update the pio build GH action of the core. As mentioned in my previous comment.

https://github.com/stm32duino/Arduino_Core_STM32/blob/2e9eeabc6c540e6157f83ec0ec08e29af47086e7/.github/actions/pio-build/entrypoint.sh#L15-L21

ColdFireHunter commented 3 years ago

Ok, then I will wait until valeros helps update the code. Thank you for your help and your work.

yqboy commented 3 years ago

Honestly I don't know so much about PIO. The only thing I do was to update the pio build GH action of the core. As mentioned in my previous comment.

https://github.com/stm32duino/Arduino_Core_STM32/blob/2e9eeabc6c540e6157f83ec0ec08e29af47086e7/.github/actions/pio-build/entrypoint.sh#L15-L21

I tested it again and I found that I forgot to turn on ARDUINO_GENERIC_G030F6PX and it worked fine image Like fpistm said, the path does not support ‘(’and‘)’ Thank you for your help

ColdFireHunter commented 3 years ago

I now also got it to compile and run on multiple MCUs. But I have some formatting errors with missing whitespaces.

yqboy commented 3 years ago

I now also got it to compile and run on multiple MCUs. But I have some formatting errors with missing whitespaces.

I tested F030F4 F103C8 G030F6/K6 MCUs. everything is ok image

ColdFireHunter commented 3 years ago

I now also have no errors. I have now updated all the files needed for F0/F1/F2/F4 and I'm working on F7/G0. When I am finished I will open a Pull Request. Have a nice day.

valeros commented 3 years ago

Hi guys, I've updated the Arduino package to the latest v2.0, please retest your projects with the upstream version:

[env:test]
platform = https://github.com/platformio/platform-ststm32.git
framework = arduino
board = ...
fpistm commented 3 years ago

Hi @valeros since your latest changes our pio CI is failed with:

 Error: Could not load broken JSON: /github/home/.platformio/platforms/ststm32/boards/disco_b_g431b_esc1.json

Full log here

valeros commented 3 years ago

Hi @fpistm ! Thanks for reporting. Should be fixed.

fpistm commented 3 years ago

Hi @fpistm ! Thanks for reporting. Should be fixed.

Hi @valeros

Thankk you.

Go further but always failed: https://github.com/stm32duino/Arduino_Core_STM32/pull/1402/checks?check_run_id=2655959954#step:3:790

 Error: Missing PlatformIO build script /github/home/.platformio/packages/framework-arduinoststm32/tools/platformio/platformio-build.py!
valeros commented 3 years ago

Thanks, I submitted a PR with the latest changes.

jlocsx commented 3 years ago

Hi @valeros,

Even upgrading to ST STM32 v14.0.0 some files of the STM32 Arduino Core remain in v1.9.0 instead of v2.0.0.

For example, the USBSerial.cpp and USBSerial.h files (\~/platformio/packages/framework-arduinoststm32/cores/arduino/) still remain in STM32 Arduino Core v1.9.0, but stm32_def.h file (\~/platformio/packages/framework-arduinoststm32/cores/arduino/stm32/) has been updated.

I noticed this issue when trying to use this new API: https://github.com/stm32duino/Arduino_Core_STM32/pull/1382

valeros commented 3 years ago

Hi @jlocsx ! That's strange, we use the same package from https://github.com/stm32duino/BoardManagerFiles/raw/master/package_stmicroelectronics_index.json . Are you able to use that new API from the Arduino IDE?

fpistm commented 3 years ago

In fact there is no issue. The new API's you are referring here are not part of the 2.0.0. They are merged in the master after the release and so will be part of the next release 2.x.x as stated in the milestone.

Ralf9 commented 3 years ago

Hi, with the core v2.0 and the Bootloader 2.0 I get at build a fatal error. I use Windows 10 and Visual Studio Code

Processing maple_mini_b20 (platform: https://github.com/platformio/platform-ststm32.git; board: maple_mini_b20; framework: arduino)
--------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/maple_mini_b20.html
PLATFORM: ST STM32 (14.0.1+sha.f702b3f) > Maple Mini Bootloader 2.0        
HARDWARE: STM32F103CBT6 72MHz, 20KB RAM, 120KB Flash
DEBUG: Current (blackmagic) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES:
 - framework-arduinoststm32 4.20000.210603 (2.0.0)
 - framework-cmsis 2.50700.210515 (5.7.0)
 - tool-dfuutil 1.9.200310
 - toolchain-gccarmnoneeabi 1.90201.191206 (9.2.1)
Warning! Cannot find linker script for the current target!

LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 10 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\maple_mini_b20\SrcWrapper\src\HAL\stm32yyxx_hal.c.o
Compiling .pio\build\maple_mini_b20\SrcWrapper\src\HAL\stm32yyxx_hal_adc.c.o
Compiling .pio\build\maple_mini_b20\SrcWrapper\src\HAL\stm32yyxx_hal_adc_ex.c.o
Compiling .pio\build\maple_mini_b20\SrcWrapper\src\HAL\stm32yyxx_hal_can.c.o
<command-line>: fatal error: variant_MAPLE_MINI_B20.h: No such file or directory

here is the platformio.ini

[env:maple_mini_b20]
platform = https://github.com/platformio/platform-ststm32.git
board = maple_mini_b20
board_build.core = stm32
framework = arduino

and here the main.cpp

#include <Arduino.h>

#ifndef LED_BUILTIN
  #define LED_BUILTIN 33
#endif

void setup()
{
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop()
{
  digitalWrite(LED_BUILTIN, HIGH);
  delay(1000);
  digitalWrite(LED_BUILTIN, LOW);
  delay(1000);
}
Ralf9 commented 3 years ago

when I make a build with verbose this is the command before the fatal error:

arm-none-eabi-gcc -o .pio\build\maple_mini_b20\SrcWrapper\src\HAL\stm32yyxx_hal_can.c.o -c -std=gnu11 -Os -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DPLATFORMIO=50101 -DSTM32F103xB -DSTM32F1xx -DARDUINO=10808 -DARDUINO_ARCH_STM32 -DARDUINO_MAPLE_MINI_B20 -DBOARD_NAME=\"MAPLE_MINI_B20\" -DHAL_UART_MODULE_ENABLED -DUSE_FULL_LL_DRIVER -DVARIANT_H=\"variant_MAPLE_MINI_B20.h\" -DBL_LEGACY_LEAF -DVECT_TAB_OFFSET=0x2000 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\cores\arduino\avr 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\LL 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\usb 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\OpenAMP 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\usb\hid 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32\usb\cdc 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\system\Drivers\STM32F1xx_HAL_Driver\Inc 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\system\Drivers\STM32F1xx_HAL_Driver\Src 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\system\STM32F1xx 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\system\Middlewares\ST\STM32_USB_Device_Library\Core\Inc 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\system\Middlewares\ST\STM32_USB_Device_Library\Core\Src 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\system\Middlewares\OpenAMP 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\system\Middlewares\OpenAMP\open-amp\lib\include 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\system\Middlewares\OpenAMP\libmetal\lib\include 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\system\Middlewares\OpenAMP\virtual_driver 
-IC:\Users\Ralf\.platformio\packages\framework-cmsis\CMSIS\Core\Include 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\system\Drivers\CMSIS\Device\ST\STM32F1xx\Include 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\system\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\gcc 
-IC:\Users\Ralf\.platformio\packages\framework-cmsis\CMSIS\DSP\Include 
-IC:\Users\Ralf\.platformio\packages\framework-cmsis\CMSIS\DSP\PrivateInclude 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\cores\arduino 
-IC:\Users\Ralf\.platformio\packages\framework-arduinoststm32\variants\MAPLEMINI_F103CB C:\Users\Ralf\.platformio\packages\framework-arduinoststm32\libraries\SrcWrapper\src\HAL\stm32yyxx_hal_can.c

The problem is, in the core 2.0. the variants are in: variants\STM32F1xx\F103C8T_F103CB(T-U) and there is no "variant_MAPLE_MINI_B20.h"

I also noticed that at release 13 and 14 the arduino- and platformio version is the same. Is this ok? ARDUINO=10808 PLATFORMIO=50101

In the arduino IDE with core 2.0 is ARDUINO=10815

valeros commented 2 years ago

Resolved in v14.0

Ralf9 commented 2 years ago

With v14.0, v14.2 and v15 I have still this error <command-line>: fatal error: variant_MAPLE_MINI_B20.h: No such file or directory

https://github.com/platformio/platform-ststm32/issues/546

ghost commented 1 year ago

Hello,

I am working on a project which involves STM32WB5MMG. but platform.io doesn't have supporting board. and I was trying to follow the steps mentioned in this thread. but I am facing issues.

here is my .json file { "build": { "core": "stm32", "cpu": "cortex-m4", "extra_flags": "-DSTM32WB5Mxx -DSTM32WBx DUSE_HAL_DRIVER", "f_cpu": "64000000L", "mcu": "stm32wb5mmgh", "product_line": "STM32WB5Mxx", "variant": "STM32WBxx/WB5MMGH" }, "connectivity": [ "bluetooth" ], "debug": { "default_tools": [ "stlink" ], "jlink_device": "STM32WB5Mxx", "openocd_target": "stm32wbx", "svd_path": "STM32WB55_CM4.svd" }, "frameworks": [ "arduino", "mbed", "stm32cube" ], "name": "STM32WB5MMG", "upload": { "maximum_ram_size": 262144, "maximum_size": 1048576, "protocol": "stlink", "protocols": [ "jlink", "cmsis-dap", "stlink", "blackmagic" ] }, "url": "https://www.st.com/en/microcontrollers-microprocessors/stm32wb5mmg.html", "vendor": "ST" } and platformio.ini

[env:STM32WB5MMG] platform = ststm32 board = STM32WB5MMG framework = arduino upload_protocol= stlink

and this is the error I'm getting

Processing STM32WB5MMG (platform: ststm32; board: STM32WB5MMG; framework: arduino)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/STM32WB5MMG.html PLATFORM: ST STM32 (15.5.1) > STM32WB5MMG HARDWARE: STM32WB5MMGH 64MHz, 256KB RAM, 1MB Flash DEBUG: Current (stlink) External (blackmagic, cmsis-dap, jlink, stlink) PACKAGES:


compilation terminated. *** [.pio\build\STM32WB5MMG\FrameworkArduinoVariant\PeripheralPins.c.o] Error 1

: fatal error: variant_STM32WB5MMG.h: No such file or directory ***************************************************************************** * Looking for variant_STM32WB5MMG.h dependency? Check our library registry! * * CLI > platformio lib search "header:variant_STM32WB5MMG.h" * Web > https://registry.platformio.org/search?q=header:variant_STM32WB5MMG.h * ***************************************************************************** compilation terminated. *** [.pio\build\STM32WB5MMG\SrcWrapper\src\HAL\stm32yyxx_hal.c.o] Error 1 : fatal error: variant_STM32WB5MMG.h: No such file or directory ***************************************************************************** * Looking for variant_STM32WB5MMG.h dependency? Check our library registry! * * CLI > platformio lib search "header:variant_STM32WB5MMG.h" * Web > https://registry.platformio.org/search?q=header:variant_STM32WB5MMG.h * ***************************************************************************** compilation terminated. : fatal error: variant_STM32WB5MMG.h: No such file or directory ***************************************************************************** * Looking for variant_STM32WB5MMG.h dependency? Check our library registry! * * CLI > platformio lib search "header:variant_STM32WB5MMG.h" * Web > https://registry.platformio.org/search?q=header:variant_STM32WB5MMG.h * ***************************************************************************** compilation terminated. *** [.pio\build\STM32WB5MMG\SrcWrapper\src\HAL\stm32yyxx_hal_adc.c.o] Error 1 *** [.pio\build\STM32WB5MMG\SrcWrapper\src\HAL\stm32yyxx_hal_adc_ex.c.o] Error 1 : fatal error: variant_STM32WB5MMG.h: No such file or directory ***************************************************************************** * Looking for variant_STM32WB5MMG.h dependency? Check our library registry! * * CLI > platformio lib search "header:variant_STM32WB5MMG.h" * Web > https://registry.platformio.org/search?q=header:variant_STM32WB5MMG.h * ***************************************************************************** compilation terminated. *** [.pio\build\STM32WB5MMG\SrcWrapper\src\HAL\stm32yyxx_hal_comp.c.o] Error 1 : fatal error: variant_STM32WB5MMG.h: No such file or directory ***************************************************************************** * Looking for variant_STM32WB5MMG.h dependency? Check our library registry! * * CLI > platformio lib search "header:variant_STM32WB5MMG.h" * Web > https://registry.platformio.org/search?q=header:variant_STM32WB5MMG.h * ***************************************************************************** : fatal error: variant_STM32WB5MMG.h: No such file or directory ***************************************************************************** * Looking for variant_STM32WB5MMG.h dependency? Check our library registry! * * CLI > platformio lib search "header:variant_STM32WB5MMG.h" * Web > https://registry.platformio.org/search?q=header:variant_STM32WB5MMG.h * ***************************************************************************** compilation terminated. compilation terminated. *** [.pio\build\STM32WB5MMG\SrcWrapper\src\HAL\stm32yyxx_hal_crc.c.o] Error 1 *** [.pio\build\STM32WB5MMG\SrcWrapper\src\HAL\stm32yyxx_hal_cortex.c.o] Error 1 : fatal error: variant_STM32WB5MMG.h: No such file or directory ***************************************************************************** * Looking for variant_STM32WB5MMG.h dependency? Check our library registry! * * CLI > platformio lib search "header:variant_STM32WB5MMG.h" * Web > https://registry.platformio.org/search?q=header:variant_STM32WB5MMG.h * ***************************************************************************** compilation terminated. *** [.pio\build\STM32WB5MMG\SrcWrapper\src\HAL\stm32yyxx_hal_crc_ex.c.o] Error 1 =================================================================== [FAILED] Took 1.71 seconds =================================================================== * The terminal process "C:\Users\ashish.jaiswal\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1. * Terminal will be reused by tasks, press any key to close it. I would appreciate if anyone could help and teach me how to resolve this issue. I am pretty new in stm enviroment.
mkeyno commented 1 year ago

hi @all

I've tried to use this solution for my project using the STM32G030P6 board within platformio with Arduino platform since there is no predefined STM32G030P6 board in Platformio, I created my own board with the following parameters


{
  "build": {
    "core": "stm32",
    "cpu": "cortex-m0plus",
    "extra_flags": "-DSTM32G0xx -DSTM32G030xx -DVARIANT_H=\\\"variant_generic.h\\\"",
    "f_cpu": "64000000L",
    "framework_extra_flags": {
      "arduino": "-D__CORTEX_SC=0"
    },
    "mcu": "stm32g030f6p6",
    "product_line": "STM32G030xx",
    "variant": "STM32G0xx/G030F6P"
  },
  "debug": {
    "default_tools": [
      "stlink"
    ],
    "jlink_device": "STM32G030F6",
    "onboard_tools": [
      "stlink"
    ],
    "openocd_target": "stm32g0x",
    "svd_path": "STM32G030.svd"
  },
  "frameworks": [
    "arduino",
    "cmsis",
    "stm32cube"
  ],
  "name": "Generic STM32G030F6",
  "upload": {
    "maximum_ram_size": 8192,
    "maximum_size": 32768,
    "protocol": "stlink",
    "protocols": [
      "blackmagic",
      "cmsis-dap",
      "dfu",
      "jlink",
      "serial",
      "stlink",
      "mbed"
    ]
  },
  "url": "https://www.st.com/en/microcontrollers-microprocessors/stm32g030f6.html",
  "vendor": "ST"
}

however when I create the new project with the Arduino framework, the main.c default code could not compile due to a reference error the error is located in the “%USER%.platformio\packages\framework-arduinoststm32\cores\arduino\variant.h” path it can not find any file with the name of #include "variant_STM32G030F6P6.h"

then I change the code to this #include "variant_generic.h"

however, when I compile the code, it throws considerable errors to the definition of Arduino’s basic function

Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: fatal error: variant_STM32G030F6P6.h: No such file or directory

*******************************************************************************
* Looking for variant_STM32G030F6P6.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:variant_STM32G030F6P6.h"
* Web  > https://registry.platformio.org/search?q=header:variant_STM32G030F6P6.h
*
*******************************************************************************

compilation terminated.
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
*** [.pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal.c.o] Error 1
<command-line>: fatal error: variant_STM32G030F6P6.h: No such file or directory

*******************************************************************************
* Looking for variant_STM32G030F6P6.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:variant_STM32G030F6P6.h"
* Web  > https://registry.platformio.org/search?q=header:variant_STM32G030F6P6.h
*
*******************************************************************************

compilation terminated.
*** [.pio\build\stm32g030f6p6\FrameworkArduinoVariant\PeripheralPins.c.o] Error 1
=========================================================================================== [FAILED] Took 6.79 seconds ===========================================================================================
 *  The terminal process "C:\Users\lkeyn\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task in folder arduino_stm32g030f6p6: C:\Users\lkeyn\.platformio\penv\Scripts\platformio.exe run 

Processing stm32g030f6p6 (platform: ststm32; board: stm32g030f6p6; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/stm32g030f6p6.html
PLATFORM: ST STM32 (16.1.0) > Generic STM32G030F6
HARDWARE: STM32G030F6P6 64MHz, 8KB RAM, 32KB Flash
DEBUG: Current (stlink) On-board (stlink) External (blackmagic, cmsis-dap, jlink)
PACKAGES:
 - framework-arduinoststm32 @ 4.20500.230714 (2.5.0)
 - framework-cmsis @ 2.50700.210515 (5.7.0)
 - toolchain-gccarmnoneeabi @ 1.100301.220327 (10.3.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\stm32g030f6p6\FrameworkArduinoVariant\PeripheralPins.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduinoVariant\generic_clock.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduinoVariant\variant_generic.cpp.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_adc.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_adc_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_can.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_cec.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_comp.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_comp_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_cordic.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_cortex.c.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_crc.c.o
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_crc_ex.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_cryp.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_cryp_ex.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_dac.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_dac_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_dcache.c.o
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_dcmi.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_dcmi_ex.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_dfsdm.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_dfsdm_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_dma.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_dma2d.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_dma_ex.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_dsi.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_dts.c.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_eth.c.o
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_eth_ex.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_exti.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_fdcan.c.o
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_firewall.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_flash.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_flash_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_flash_ramfunc.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_fmac.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_fmpi2c.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_fmpi2c_ex.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_fmpsmbus.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_fmpsmbus_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_gfxmmu.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_gpio.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_gpio_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_gpu2d.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_gtzc.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_hash.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_hash_ex.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_hcd.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_hrtim.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_hsem.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_i2c.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_i2c_ex.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_i2s.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_i2s_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_icache.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_ipcc.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_irda.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_iwdg.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_jpeg.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_lcd.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_lptim.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_ltdc.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_ltdc_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_mdf.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_mdios.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_mdma.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_mmc.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_mmc_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_nand.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_nor.c.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_opamp.c.o
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_opamp_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_ospi.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_otfdec.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_pccard.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_pcd.c.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_pcd_ex.c.o
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_pka.c.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_pssi.c.o
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_pwr.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_pwr_ex.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_qspi.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_ramcfg.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_ramecc.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_rcc.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_rcc_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_rng.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_rng_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_rtc.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_rtc_ex.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_sai.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_sai_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_sd.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_sd_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_sdadc.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_sdram.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_smartcard.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_smartcard_ex.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_smbus.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_smbus_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_spdifrx.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_spi.c.o
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_spi_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_sram.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_subghz.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_swpmi.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_tim.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_tim_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_tsc.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_uart.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_uart_ex.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_usart.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_usart_ex.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_wwdg.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HAL\stm32yyxx_hal_xspi.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\HardwareTimer.cpp.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_adc.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_bdma.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_comp.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_cordic.c.o
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_crc.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_crs.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_dac.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_delayblock.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_dlyb.c.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_dma.c.o
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_dma2d.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_exti.c.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_fmac.c.o
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_fmc.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_fmpi2c.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_fsmc.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_gpio.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_hrtim.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_i2c.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_icache.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_lpgpio.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_lptim.c.o
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_lpuart.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_mdma.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_opamp.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_pka.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_pwr.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_rcc.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_rng.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_rtc.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_sdmmc.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_spi.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_swpmi.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_tim.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_ucpd.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_usart.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_usb.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\LL\stm32yyxx_ll_utils.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\new.cpp.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\PortNames.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\analog.cpp.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\bootloader.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\clock.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\core_callback.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\dwt.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\hw_config.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\interrupt.cpp.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\otp.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\pinmap.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\stm32_def.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\system_stm32yyxx.c.o
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\timer.c.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\stm32\uart.c.o
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\SrcWrapper\src\syscalls.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\src\main.cpp.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\Print.cpp.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\RingBuffer.cpp.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\Tone.cpp.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\USBSerial.cpp.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\VirtIOSerial.cpp.o
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\WInterrupts.cpp.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\WMath.cpp.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\WSerial.cpp.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\WString.cpp.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\abi.cpp.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\avr\dtostrf.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\board.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\core_debug.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\hooks.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\itoa.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\main.cpp.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\pins_arduino.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\libmetal\device.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\libmetal\generic\condition.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\libmetal\generic\cortexm\sys.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\libmetal\generic\generic_device.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\libmetal\generic\generic_init.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\libmetal\generic\generic_io.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\libmetal\generic\generic_shmem.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\libmetal\generic\time.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\libmetal\init.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\libmetal\io.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\libmetal\log.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\libmetal\shmem.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\mbox_ipcc.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\open-amp\remoteproc\remoteproc_virtio.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\open-amp\rpmsg\rpmsg.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\open-amp\rpmsg\rpmsg_virtio.c.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\openamp.c.o
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\rsc_table.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\virt_uart.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\virtio\virtio.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\virtio\virtqueue.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\virtio_buffer.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\OpenAMP\virtio_log.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\startup_stm32yyxx.S.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\usb\cdc\cdc_queue.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\usb\cdc\usbd_cdc.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\usb\cdc\usbd_cdc_if.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\usb\hid\usbd_hid_composite.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\usb\hid\usbd_hid_composite_if.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\usb\usb_device_core.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\usb\usb_device_ctlreq.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\usb\usb_device_ioreq.c.o
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\usb\usbd_conf.c.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\usb\usbd_desc.c.o
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\usb\usbd_ep_conf.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\stm32\usb\usbd_if.c.o
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\wiring_analog.c.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\wiring_digital.c.o
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\wiring_pulse.cpp.o
<command-line>: warning: "VARIANT_H" redefined
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\wiring_shift.c.o
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Compiling .pio\build\stm32g030f6p6\FrameworkArduino\wiring_time.c.o
<command-line>: warning: "VARIANT_H" redefined
<command-line>: note: this is the location of the previous definition
Linking .pio\build\stm32g030f6p6\firmware.elf
c:/users/lkeyn/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/stm32g030f6p6/SrcWrapper/src/stm32/hw_config.c.o: in function `hw_config_init':
hw_config.c:(.text.hw_config_init+0xe): undefined reference to `SystemClock_Config'
c:/users/lkeyn/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/stm32g030f6p6/libFrameworkArduino.a(HardwareSerial.cpp.o): in function `HardwareSerial::setRx(unsigned long)':
HardwareSerial.cpp:(.text._ZN14HardwareSerial5setRxEm+0x48): undefined reference to `digitalPin'
c:/users/lkeyn/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: HardwareSerial.cpp:(.text._ZN14HardwareSerial5setRxEm+0x4c): undefined reference to `analogInputPin'
c:/users/lkeyn/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/stm32g030f6p6/libFrameworkArduino.a(HardwareSerial.cpp.o): in function `HardwareSerial::setTx(unsigned long)':
HardwareSerial.cpp:(.text._ZN14HardwareSerial5setTxEm+0x48): undefined reference to `digitalPin'
c:/users/lkeyn/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: HardwareSerial.cpp:(.text._ZN14HardwareSerial5setTxEm+0x4c): undefined reference to `analogInputPin'
c:/users/lkeyn/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/stm32g030f6p6/libFrameworkArduino.a(HardwareSerial.cpp.o): in function `HardwareSerial::HardwareSerial(void*, HalfDuplexMode_t)':
HardwareSerial.cpp:(.text._ZN14HardwareSerialC2EPv16HalfDuplexMode_t+0x90): undefined reference to `analogInputPin'
c:/users/lkeyn/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: HardwareSerial.cpp:(.text._ZN14HardwareSerialC2EPv16HalfDuplexMode_t+0x98): undefined reference to `digitalPin'
c:/users/lkeyn/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/stm32g030f6p6/libFrameworkArduino.a(wiring_digital.c.o): in function `pinMode':
wiring_digital.c:(.text.pinMode+0x9c): undefined reference to `digitalPin'
c:/users/lkeyn/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: wiring_digital.c:(.text.pinMode+0xa8): undefined reference to `analogInputPin'
c:/users/lkeyn/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/stm32g030f6p6/libFrameworkArduino.a(wiring_digital.c.o): in function `digitalWrite':
wiring_digital.c:(.text.digitalWrite+0x68): undefined reference to `digitalPin'
c:/users/lkeyn/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: wiring_digital.c:(.text.digitalWrite+0x74): undefined reference to `analogInputPin'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\stm32g030f6p6\firmware.elf] Error 1
========================================================================================== [FAILED] Took 95.77 seconds ==========================================================================================

 *  The terminal process "C:\Users\lkeyn\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

any help is really appreciated