Dungyichao / RTOS_ARM

RTOS using STM32F411VET6 Discovery Kit. Follow the tutorial on Udemy: Build Your Own RealTime OS (RTOS) From Ground Up on ARM 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RTOS_ARM

For some prerequisite knowledge, please refer to the following tutorial link: https://github.com/Dungyichao/PeriodicScheduler_Semaphore and https://github.com/Dungyichao/STM32F4-LCD_ST7735s. We will use STM32F411VET6 Discovery Kit (Cirtex M4) accross this tutorial.

1. Getting Started

1.1 Create Project

Project --> New uVision Project.. --> Create a folder and enter the project name --> STMicroelectronics --> STM32F4 Series --> find STM32F411VETx

1.2 Manage Run-Time Environment

CMSIS --> Select CORE
Device --> Select Startup

1.3 Error Connecting to Board

You may encounter some problem when trying to flash your code from your PC to the board kit. You may need to check if the USB cable is good (some USB cable can only charge the board instead of transferring data). Then there might be driver problem which you may refer to the link.

2. Board Support Package (BSP)

Create three file: STM32F4_RTOS_BSP.c, STM32F4_RTOS_BSP.h, main.c file. We will do something like making LED on the board blinking. Figuring out which port or pin for different LED can be refer to my tutorial link , though the board is different. You can also refer to the STM32F411VE MCU Manual and STM32F411 Reference Manual.

You can find the code in Src/BSP folder. You may look through the following link to know some symbol. The code contains three part: LED on/off, Delay, ADC

About

RTOS using STM32F411VET6 Discovery Kit. Follow the tutorial on Udemy: Build Your Own RealTime OS (RTOS) From Ground Up on ARM 2