

- #Blue pill schematic how to#
- #Blue pill schematic install#
- #Blue pill schematic serial#
- #Blue pill schematic driver#
The 2 tasks will run with the same priority so they will have equal execution time.



XTaskCreate(vTask1, /* Pointer to the function that implements the task.
#Blue pill schematic serial#
* Initialize the serial I/O(console ), making standard output to be send to USART1 */ * This function initializes the MCU clock, PLL will be used to generate Main MCU clock */ * Task parameter to be sent to the task function */Ĭonst char *pvTask1 = "Task1 is running." Ĭonst char *pvTask2 = "Task2 is running." Note: The extension of the file has to be added, the tool doesn't add the extension.
#Blue pill schematic driver#
This is a generated file that redirects the output to the USART driver to send it out the pins that we configured earlier. In this configuration pin PA9 will be TX and pin PA10 will be RX.įor redirecting printf() to USART, Keil provides a User Code Template file. #error "Invalid USART1_RX Pin Configuration!" #define RTE_USART1_RX_PORT_ID_DEF 1 // change this macro to 1 #error "Invalid USART1_TX Pin Configuration!" #define RTE_USART1_TX_PORT_ID_DEF 1 // change this macro to 1 #define RTE_USART1 1 // change this macro to 1 Configuration settings for Driver_USART1 in component ::CMSIS Driver:USART USART1 (Universal synchronous asynchronous receiver transmitter) In the RTE_Device.h file, which is found under the Device drop-down icon, search for this lines and change this macros. The first step would be to enable USART1 & set the TX and RX pins. Open it and you should get to the same window as the one in the third slide.
#Blue pill schematic install#
Install it like any other Windows application and you should have a shortcut to the application on your Desktop. Click the Submit button and download the install executable. The IDE can be downloaded from this link from where you should click MDK-Arm which will take you to the download page. This is an easy project, in which I will create two tasks and output strings to the USART to test the functionality of the RTOS.
#Blue pill schematic how to#
I didn't find on the internet a lot of information on how to setup FreeRTOS on this board so I decided to make a tutorial/project which I hope will help other people to start using this OS on such a small board but with many features. I wanted to run it on my ARM-based board which is a STM32F103C8T6 with an ARM Cortex-M3 processor. Recently I took a course on Udemy about RTOS & learned the features of FreeRTOS.
