STM32CubeMX generates wrong code for Nucleo-G431KB
In STM32CubeMX 6.15.0 / Win11 I generate a default CMake project for the Nucleo-G431KB board.
The generated cmake/stm32cubemx/CMakeLists.txt contains:
# STM32CubeMX generated symbols (macros)
set(MX_Defines_Syms
USE_NUCLEO_64
USE_HAL_DRIVER
STM32G431xx
$<$<CONFIG:Debug>:DEBUG>
)but the board is a Nucleo-32, not 64. As a consequence, pinout is wrong, like a wrong pin for the USER_LED is assumed.
hth
KnarfB
