This completes the basic setup for the project. We can change the label of this pin by right clicking on the PC13 Pin and selecting Enter User Label option. Hence, zoom into the Pinout view of the STM32F103C8T6 MCU and on the PC13 Pin, make a left click and select GPIO_Output option. We know from the schematic of the STM32 Blue Pill that a Green LED is connected to PC13. The next step is to configure the LED present on the Blue Pill Board. As soon as you select this option, you can observe that the Pins PA13 and PA14 are SWDIO and CK i.e. In the Pinout and Configuration Tab, expand the System Core block and select the SYS option. The main project window will open with a pinout of STM32F103C8T6 MCU on the right and configuration options on the left. Select that MCU and on the top right corner click on the Start Project option. On the right side, our MCU will be listed. In the new window, under the MCU/MPU Selector tab, search for “STM32F103C8”. A new window will open for us to select the MCU that we are working on. Now, in the main window, select the ACCESS TO MCU SELECTOR option. After completion, you can close this window. It will download and install the MCU Package. Select the latest version and click on Install Now option at the bottom. In that, select the STM32Cube MCU Packages option and expand the STM32F1 tab (since our MCU is STM32F103C8T6). On the right side in the application, click on the install or remove embedded software packages option. At the time of writing this tutorial, the version of STM32CubeMX is 5.6.1. You have to login to ST in order to download the software. Download this software from this official STMicroelectronics website. Download and Install STM32CubeMXįirst, let us start with the STM32CubeMX Code Generator Tool. I will show you how to use all these software and hardware so that you can easily program STM32F103C8T6 using Keil uVision and STM32CubeMX. This is also provided by STMicroelectronics and is used to generate the code for a specific STM32 MCU as well as a particular IDE. There is another important software called the STM32CubeMX. Although the original programmer will be expensive, there are many third-party programmers that are compatible with the original programmer and cost very less. It is as in-circuit programmer and debugger developed by STMicroelectronics. This is a great tool for working with ARM based MCUs like our STM32F103C8T6 and it also supports proper debugging.Ĭoming to the hardware, we have to use a separate hardware for programming (as well as debugging) the STM32 Blue Pill Board. Speaking of software, I suggest you to use the ARM’s Keil uVision IDE. The proper way is to step away from the Arduino world and enter a more professional set of tools in terms of both the software as well as the hardware. This is acceptable for beginners but if you want to seriously learn the working of the powerful STM32 MCU, then this is not the right way. Using Arduino IDE for STM32 projects is very easy as the familiar Arduino terminology can be applied to STM32F103C8T6 as well. In all these projects, I have used the Arduino IDE as the tool for writing the code as well as uploading the code to STM32 using an USB to UART Converter. Till now, I have implemented several STM3F103C8T6 MCU based projects using the STM32 Blue Pill Board. You will learn how to install the Software (both Keil and STM32CubeMX), configure the software as per our requirements and upload the code using ST-Link Debugger and Programmer. In this tutorial, I will show you How to Program STM32F103C8T6 using Keil uVision and STM32CubeMX Code Generator Software.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |