Before getting into detail, we will first learn about ST-LINK programmer and STM32CubeMX software tool. We will generate the code using STM32Cube MX then edit & upload the code to STM32F103C8 using Keil uVision. In this tutorial we will learn how to program STM32F103C8 using Keil uVision & STM32CubeMX by doing a simple project of interfacing a push button and LED with the STM32F103C8 Blue Pill board. And finally the code is burned into STM32 using ST-Link programmer from STMicroelectronics. Further this generated code can be used in Keil uVision for editing according to requirement. So we don’t need to worry about coding for basic drivers and peripherals. STMicroelectronics introduced a tool called STM32Cube MX, which generates basic code according to the peripherals and the selected STM32 board. By this we can, not only improve our structure of the code but can also save memory space by not using unnecessary libraries. So now we are getting into the next level of programming called ARM programming. This is an easy procedure and you may not get into deep learning about the ARM processors. Programming STM32 with Arduino IDE is simple, as there are lots of libraries available for various sensors to perform any task, we just need to add those libraries in the program. We have programmed STM32F103C8 using the Arduino IDE in our previous tutorials. STM32 Microcontrollers which uses ARM Cortex M architecture is now becoming popular and are used in many applications because of its feature, cost and performance.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |