2.11. When selecting microcontrollers in the STM32WB series

STM32CubeMX incorrectly removes the STM32_WPAN middleware settings from CMake and Makefile configuration files during subsequent code generations, which leads to compilation errors.

The value of the CFG_BLE_MAX_CONN_EVENT_LENGTH parameter in app_conf.h is wrongly formatted: uint16_t is used instead of uint32_t. This impacts the Data Throughput of the application since the max value is 0xFFFF while it should be 0xFFFFFFFF. The defined value must be changed manually in the generated code.