Hello!!!
I started with cubemx that generates code on keil for a couple of months ago.
My goal is to blink a led on a breadbord. unfortunately when I run the code, the led remains lit and does not blink at all. I think the problem might not come from the code because that one is simple and great.
Therefore, I wonder if it is not due to cubemx configurations
Exactly, I was expecting this issue that’s why I have asked you about the board details in the first place. The PB12 pin you are using is mapped with I2C. This happen because, you have selected a board from Board selector. Use Board selector only if you are using boards from STM. If you are using custom board you have to select your controller using the MCU/MPU selector.