I have exactly the same problem (CubeProgrammer 2.3).For me generating a 64bit lib and using 64bit dlls (most of them can be found in "STM32CubeProgrammer/bin") works.Open a Visual Studio Developer Command Line and cd to "STM32CubeProgrammer/api/lib"...