You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a few STM32 targets I still would like to add to this project. One of them is the STM32F410Cx series.
I do have a working variants file for them. However, I'm not able to compile for either of them (STM32F410C8 or STM32F410CB). Here's the error I'm getting:
C:\Users\user\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.8.0\libraries\SrcWrapper\src\stm32\low_power.c: In function 'LowPower_EnableWakeUpPin':
C:\Users\user\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.8.0\libraries\SrcWrapper\src\stm32\low_power.c:124:7: error: duplicate case value
124 | case SYS_WKUP3 :
| ^~~~
C:\Users\user\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.8.0\libraries\SrcWrapper\src\stm32\low_power.c:114:7: note: previously used here
114 | case SYS_WKUP2 :
| ^~~~
@MCUdude
This is due to missing SYS_WKUPx definition in the PinNamesVar.h.
This file is generated thanks CubeMx XML description file anyway sometimes some WKUP pins are missing which leads to this issue as the one not found exists and defined to NC.
In that case, you have to check in the MCU datasheet which one is missing and define it manually.
Activity
fpistm commentedon Feb 3, 2020
@MCUdude
This is due to missing
SYS_WKUPxdefinition in thePinNamesVar.h.This file is generated thanks CubeMx XML description file anyway sometimes some WKUP pins are missing which leads to this issue as the one not found exists and defined to NC.
In that case, you have to check in the MCU datasheet which one is missing and define it manually.
fpistm commentedon Feb 3, 2020
https://github.com/stm32duino/Arduino_Tools/blob/3cf9602fa4c0c86c2ff80eaf0e2bfd4a64de9f92/src/genpinmap/Arduino/STM32F410C(8-B)Tx/PinNamesVar.h#L6
Should be:
https://github.com/stm32duino/Arduino_Tools/blob/3cf9602fa4c0c86c2ff80eaf0e2bfd4a64de9f92/src/genpinmap/Arduino/STM32F410C(8-B)Tx/PinNamesVar.h#L9
Should be:
See https://www.st.com/resource/en/datasheet/stm32f410c8.pdf
MCUdude commentedon Feb 3, 2020
Thanks, that did the trick! You can expect a PR soon 🙂