Thx Buddy that made my day! I was tryin to get the LED to blink for some days and even my Prof (Physicsprof) didn't made it because we both forgot to initialize the timer!. Keep going and all good for u!
You might have a different clock speed. Look at the crystal oscillator on your board and figure out what it is (if it says 8.000 it's 8MHz) then check to make sure your clock configuration in cubemx is using that clock frequency
@@MadJDMTurboBoost I have 16MHz clock frequency using the PLL from 8MHz crystal. I found using a prescaler of 16000 gives me 1ms and then a preload of 400 say will give 400ms. Seems to work OK now. Thanks for your answer.
Thank you for the demonstration. Unfortunately the code does not work for me, the led is constantly turned on when I upload the code. I also have this "bluePill", I did everything exactly how you presented it.
I just had the same issue, I know I'm late but for everyone in the future having the same issue here's a tip: be sure to have an infinite loop in your main so the program doesn't just stops after starting the timer
+J Tech thanks for your comments. I'm glad my videos were helpful. About the functions, I recommend you first take a look to the reference manual of your chip and read about the peripherals you're interested in. Then, once you know how the subsystems work, read the HAL driver manual and find what are those things you need. I didn't read the whole manuals, because they are like thousands of pages, but you can focus only on the peripherals you are going to need. Both documents can be found in the st official website.