Create an STM32 Bare Metal Project
Chip Select
Use the chip STM32F103RCT6.
Create an HAL project
Create an Bare Metal Project
Create the Drivers folder
Fig. 50 Create Folder Wizard. (Click on the Project -> New -> Folder )
Fig. 51 Create the Drivers Folder
Copy the CMSIS folder from the HAL project to the Bare Metal Project
Copy the system_stm32f1xx.c file from the HAL project to the Bare Metal Project
[Optional] Config the Debugging and MCU Post build outputs in the Project Properties
C/C++ Build -> Settings -> MCU Post build outputs -> Convert to Intel Hex file (-O hex)
C/C++ Build -> Settings -> MCU GCC Assembler -> Debugging -> Maximum (-g3)C/C++ Build -> Settings -> MPU GCC Compiler -> Debugging -> Maximum (-g3)
Config Include Paths
Config the “STM32F103xE” Preprocessor Symbol