threadx does not allow BSP code to initialize
with a standard project with only threadx and bsp code added via STM32CubeMX code generates the MX_ThreadX_Init function in main.c but the BSP initialization functions are below this call.
MX_ThreadX_Init actually starts the kernel task switching (unlike FreeRTOS) so it never returns ... BSP init code is never reached.
Workaround is to move the BSP init code to the user block above the call to MX_ThreadX_Init in main.c.
This should be fixed in MX code generation.
