├── .gitmodules └── README.md /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "sources/cmsis"] 2 | path = sources/cmsis 3 | url = https://github.com/phatvu1294/hoc-lap-trinh-stm32f1-cmsis 4 | branch = main 5 | [submodule "sources/stdperiph"] 6 | path = sources/stdperiph 7 | url = https://github.com/phatvu1294/hoc-lap-trinh-stm32f1-stdperiph 8 | branch = main 9 | [submodule "sources/hal"] 10 | path = sources/hal 11 | url = https://github.com/phatvu1294/hoc-lap-trinh-stm32f1-hal 12 | branch = main 13 | [submodule "sources/ll"] 14 | path = sources/ll 15 | url = https://github.com/phatvu1294/hoc-lap-trinh-stm32f1-ll 16 | branch = main -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Học lập trình STM32F1 2 | *Tự học lập trình STM32F1 bao gồm code mẫu CMSIS, StdPeriph, HAL, Low-Layer* 3 | 4 | ### Giới thiệu 5 | 6 | Việc học tập với HAL cực kỳ đơn giản, do đó nên học HAL đầu tiên (tham khảo lộ trình: HAL -> Stdperiph -> LL -> CMSIS). 7 | 8 | **Nội dung Public dành cho cộng đồng:** 9 | - CMSIS (MDK-ARM V5 Legacy IDE): https://github.com/phatvu1294/hoc-lap-trinh-stm32f1-cmsis 10 | - StdPeriph (MDK-ARM V5 Legacy IDE): https://github.com/phatvu1294/hoc-lap-trinh-stm32f1-stdperiph 11 | - Các tài liệu về Timer: https://github.com/phatvu1294/hoc-lap-trinh-stm32f1-cmsis/tree/main/documents 12 | 13 | **Nội dung Private chỉ dành cho chủ repo:** 14 | - HAL (MDK-ARM V5 Legacy IDE): https://github.com/phatvu1294/hoc-lap-trinh-stm32f1-hal 15 | - Low-Layer (MDK-ARM V5 Legacy IDE): https://github.com/phatvu1294/hoc-lap-trinh-stm32f1-ll 16 | 17 | **Phần mềm, công cụ, tài liệu cần thiết:** 18 | - MDK-ARM V5 IDE: https://www.keil.com/download/product/ 19 | - MDK-ARM V5 Legacy IDE: https://www2.keil.com/mdk5/legacy 20 | - STM32CubeMX: https://www.st.com/en/development-tools/stm32cubemx.html 21 | - STM32CubeProg: https://www.st.com/en/development-tools/stm32cubeprog.html 22 | - STM32 ST-Link Utility: https://www.st.com/en/development-tools/stsw-link004.html 23 | - ST-Link Driver: https://www.st.com/en/development-tools/stsw-link009.html 24 | - STM32 Virtual ComPort Driver: https://www.st.com/en/development-tools/stsw-stm32102.html 25 | - STM32StdPeriph: https://www.st.com/en/embedded-software/stm32-standard-peripheral-libraries.html 26 | - STM32CubeF1: https://www.st.com/en/embedded-software/stm32cubef1.html 27 | - STM32F1 Reference Manual (RM0008): https://www.st.com/resource/en/reference_manual/cd00171190-stm32f101xx-stm32f102xx-stm32f103xx-stm32f105xx-and-stm32f107xx-advanced-arm-based-32-bit-mcus-stmicroelectronics.pdf (tham khảo các ngoại vi tích hợp trên STM32) 28 | - STM32F1 ARM Cortex-M3 Programming Manual (PM0056): https://www.st.com/resource/en/programming_manual/cd00228163-stm32f10xxx-20xxx-21xxx-l1xxxx-cortex-m3-programming-manual-stmicroelectronics.pdf (tham khảo các thành phần liên quan đến lõi Cortex-M3) 29 | - STM32F103CBT6 Datasheet: https://www.st.com/resource/en/datasheet/cd00161566.pdf 30 | - STM32F103CBT6 Datasheet: https://www.st.com/resource/en/datasheet/stm32f103rc.pdf 31 | - CMSIS-RTOS2 V2: https://www.keil.com/pack/doc/CMSIS/RTOS2/html/group__CMSIS__RTOS.html 32 | - Hecules/RealTerm: Debug dữ liệu từ USART 33 | - HID Termial: Truyền nhận gói dữ liệu từ USB Custom HID 34 | - HID Descriptor: Dùng để tạo Desciption USB Device 35 | - ... 36 | --------------------------------------------------------------------------------