Blackpill stm32f411 Blink-the-LED : one compile error

platformio.ini

[env:blackpill_f411ce]
platform = ststm32
board = blackpill_f411ce
framework = stm32cube
build_flags = -DF4

easy so far. One source file mian.c with the ubiquitious blink-a-led program
(I corrected it for GPIOC and GPIO_PIN_13)

hitting the check mark plartformio fires up compilers galore, only to end with one single error in
C:\Users\fzb.platformio\packages\toolchain-gccarmnoneeabi\lib\gcc\arm-none-eabi\7.2.1\include\stddef.h

Ln 216, Col 23 :typedef redefinition with different types ('unsigned int' vs 'unsigned long long')
  • What am I doing wrong ?
  • Should I ignore that error ? (is it more of a warning?)

I know one shouldn’t reply to one own posts by I’m wondering if that is an error at all. Somehow it compiles w/o warning, but then what does the problem report try to tell me??

Clearing all consoles and hitting Build (checkmark button) I get:

Executing task: C:\Users\fzb\.platformio\penv\Scripts\platformio.exe run 

Processing blackpill_f411ce (platform: ststm32; board: blackpill_f411ce; framework: stm32cube)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/blackpill_f411ce.html
PLATFORM: ST STM32 (18.0.0) > WeAct Studio BlackPill V2.0 (STM32F411CE)
HARDWARE: STM32F411CEU6 100MHz, 128KB RAM, 512KB Flash
DEBUG: Current (blackmagic) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES:
 - framework-stm32cubef4 @ 1.26.2
 - tool-ldscripts-ststm32 @ 0.2.0
 - toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 52 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio\build\blackpill_f411ce\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   0.0% (used 44 bytes from 131072 bytes)
Flash: [          ]   0.2% (used 1204 bytes from 524288 bytes)
========================================================================================================== [SUCCESS] Took 2.16 seconds =======

So you’re saying you’re getting this in this exact project

https://github.com/platformio/platform-ststm32/tree/develop/examples/stm32cube-hal-blink

with the platformio.ini above? Or is the source code different?

For the life of me I cannot reproduce the error mentioned initially.

I had to adjust the lines with the LED relevant definitions as Blackpill has the LED on PC13 but I didn’t touch the platformio.ini from what I posted initially.
Alas, there no compiler error anymore !?

Thx for your fast feedback ans sorry for posting a ghost error :flushed: