you right, I have same problem. I use STM32CubeIDE 1.5.1 and HAL Library. If I create project and generate code with "Copy only necessary library files" option, it works well. But generate with "Add necessary library files as reference in the toolcha...