Often we used STM32CUBEIDE for development of projects on STM32 boards. But STM32CUBEIDE makes very easy to develop and we might have to write very small piece of coding here. But this approach does not help us for learning small details happening while compiling and working of the code on the board.
Here I am not using STM32CUBEIDE but will be using Keil editor for writing code.
First you need to have keil editor. Keil uVision: https://www.keil.com/download/product/Download the MDK-Arm version for the same
We need to install MDK packages for our STM32 board for the support of HAL drivers. You can download it from https://www.keil.com/boards2/stmicroelectronics/stm32f3_discovery/#eula-container
Then you just have to connect the USB to micro cable to STM32 discovery board in middle USB to mini cable connector and upload this following code which is written in C by using just HAL driver. I have not used any external libraries which is used by STM32CUBEIDE.
After uploading the blinking of LED looks awesome.
Comments
Please log in or sign up to comment.