Which version of STM32CubeIDE has STM32CubeMX 6.6.1? If you need specifically STM32CubeMX 6.6.1, you need to use STM32CubeIDE 1.10.1.