# stm32F103C8_practice_1 **Repository Path**: icediv/stm32-f103-c8_practice_1 ## Basic Information - **Project Name**: stm32F103C8_practice_1 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-04 - **Last Updated**: 2023-12-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: stm32 ## README # stm32F103C8T6_WeactV1.0_bluepillplus ## 1. Introduction ## 2. Hardware 1. 4 pin i2c oled display 128x64 pixels 2. SPI HW-550 MAX6675 Thermocouple Temperature Sensor Module ## 3. Software 1. STM32CubeMX 2. vscode extension: Cortex-Debug \ Cortex-Debug: Device Support Pack - STM32F1 ```json { "configurations": [ { "name": "Cortex Debug", "cwd": "${workspaceRoot}", "executable": "${workspaceRoot}/build/${workspaceRootFolderName}.elf", "request": "launch", "type": "cortex-debug", "servertype": "openocd", "device": "STM32F103C8", "configFiles": [ "interface/stlink.cfg", "target/stm32f1x.cfg" ], "svdFile": "${workspaceRoot}/STM32F103C8T6.svd", "runToMain": true, "armToolchainPath": "/usr/bin", "preLaunchTask": "Build ${workspaceRootFolderName}" } ] } ``` extension: clangd create compile_commands.json ```bash choco install llvm (optional) pip install compiledb compiledb make ``` 如果不用 clangd,使用 VSCode STM32Cube Configurator 创建 c_cpp_properties.json 3. openocd ```bash openocd -f interface/stlink.cfg -f target/stm32f1x.cfg ``` ## 4. References 1. [STM32F103C8T6](https://www.st.com/en/microcontrollers-microprocessors/stm32f103c8.html) 2. [STM32F103C8T6 Datasheet](https://www.st.com/resource/en/datasheet/stm32f103c8.pdf) 3. [STM32F103C8T6 Reference Manual](https://www.st.com/resource/en/reference_manual/cd00171190.pdf) 4. [STM32F103C8T6 Blue Pill Pinout](https://stm32-base.org/boards/STM32F103C8T6-Blue-Pill.html) 5. [MAX31855-MAX6675-STM32](https://github.com/Bardia-Afshar/MAX31855-MAX6675-STM32 ) 6. [stm32-ssd1306 oled i2c 4pin](https://github.com/afiskon/stm32-ssd1306) 7. [oled-display-using-i2c-stm32](https://controllerstech.com/oled-display-using-i2c-stm32/) 8. [float print](https://github.com/mpaland/printf) ## 5. Notes 1. I2C1 PB6 SCL PB7 SDA 2. SPI1 PA5 SCK PA6 MISO PA4 CS [只读,不需要写] 3. USART1 PA9 TX PA10 RX 4. ~~USART2 PA2 TX PA3 RX~~ 5. ~~USART3 PB10 TX PB11 RX~~ 6. SWD PA13 SWDIO PA14 SWCLK 7. ADC1 PA1