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.
Project --> New uVision Project.. --> Create a folder and enter the project name --> STMicroelectronics --> STM32F4 Series --> find STM32F411VETx
CMSIS --> Select CORE
Device --> Select Startup
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.
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