發表文章

目前顯示的是 2月, 2018的文章

STM32F103 "Hello World" Part1

圖片
近期買了塊STM32F103 minimum development board 開發板上主要功能 1. Boot Select 2. Reset Button 3. MicroUSB Interface 4. External 8MHz Crystal for system 5. External 32768Hz Crystal for RTC 6. Power LED, and State LED connect to PC13 7. SWD Interface MCU為STM32F103C8T6 of ARM 32-bit Cortex-M3 CPU Core, LQFP-48 Package Key Features Pin assignment (Arduino風格的說明圖, STM32F103C8也可用Arduino環境開發) Development env.: STM32CubeMX + Keil 目前可用STM32CubeMX GUI生成MCU initialization code, 並藉由STM32CubeF1提供HAL & LL API直接開發 之前作法為使用STM32 stdperiph library, 開發上較為繁雜 Part2預計研究STM32F103 block diagram & clock, STM32CubeMX生成Keil project Resources Details of STM32F103C8 http://www.st.com/zh/microcontrollers/stm32f103c8.html Download STM32CubeMX: http://www.st.com/en/development-tools/stm32cubemx.html Details of STM32CubeF1: http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-mcu-packages/stm32cubef1.html