Prepare MCU sepecific file

Each MCU has their own ARM compiler flags. Those are defined in a individual module for portability.

set(CPU_PARAMETERS ${CPU_PARAMETERS}
    -mthumb
    -mcpu=cortex-m4
    -mfpu=fpv4-sp-d16
    -mfloat-abi=hard
)

set(compiler_define ${compiler_define}
    "USE_HAL_DRIVER"
    "STM32L432xx"
)

To get ARM type from STM32CubeIDE: ARM Type ARM Type2

General rule for settings would be as per table below:

STM32 Family-mcpu-mfpu-mfloat-abi
STM32F0cortex-m0Not usedsoft
STM32F1cortex-m3Not usedsoft
STM32F2cortex-m3Not usedsoft
STM32F3cortex-m4fpv4-sp-d16hard
STM32F4cortex-m4fpv4-sp-d16hard
STM32F7 SPcortex-m7fpv5-sp-d16hard
STM32F7 DPcortex-m7fpv5-d16hard
STM32G0cortex-m0plusNot usedsoft
STM32C0cortex-m0plusNot usedsoft
STM32G4cortex-m4fpv4-sp-d16hard
STM32H7cortex-m7fpv5-d16hard
STM32L0cortex-m0plusNot usedsoft
STM32L1cortex-m3Not usedsoft
STM32L4cortex-m4fpv4-sp-d16hard
STM32L5cortex-m33fpv5-sp-d16hard
STM32U5cortex-m33fpv5-sp-d16hard
STM32WBcortex-m4fpv4-sp-d16hard
STM32WL CM4cortex-m4Not usedsoft
STM32WL CM0cortex-m0plusNot usedsoft