STM32F103C8 (Blue Pill): Difference between revisions

From Embedded Workshop
Jump to navigation Jump to search
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 12: Line 12:
* USB 2.0 full-speed
* USB 2.0 full-speed
* CAN
* CAN
===Using Arduino Plugin===
When used with the Arduino IDE as a plugin, the STM32 header files can be found here:
C:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master
'''The STM32F1 header files:'''
C:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\system\libmaple\stm32f1\include\series
C:\Users\Jim\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2019.10.9\variants\generic_stm32f103c
'''STM32 Tools:'''
C:\Users\jmerkle\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2019.10.9\win\stlink\ST-LINK_CLI.exe
The Arduino Plugin package doesn't include header files/libraries for the CAN Bus module




Line 19: Line 33:
  https://os.mbed.com/users/hudakz/code/STM32F103C8T6_Hello/
  https://os.mbed.com/users/hudakz/code/STM32F103C8T6_Hello/
  https://os.mbed.com/users/hudakz/code/CAN_Hello/
  https://os.mbed.com/users/hudakz/code/CAN_Hello/
===Using Atollic Studio and STM32CubeMX===
Installation
'''Projects'''
* Blinky - Blink an LED
* Serial Output to terminal using FTDI module/cable
* Using I2C interface - APIs
* PWM - LED fading
* PWM - Servo control
* Serial Output to terminal using on-board USB interface
* Using SPI interface - APIs
* Using ADC to measure voltage

Latest revision as of 11:26, 27 November 2019

  • ARM®32-bit Cortex®-M3 CPU
  • Flash 64KB
  • RAM 20KB
  • 72 MHz max CPU frequency
  • GPIO (32) with external interrupt capability
  • 12-bit ADC (2) with 10 channels
  • RTC
  • Timers (4)
  • I2C (2)
  • USART (3)
  • SPI (2)
  • USB 2.0 full-speed
  • CAN

Using Arduino Plugin

When used with the Arduino IDE as a plugin, the STM32 header files can be found here:
C:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master
The STM32F1 header files:
C:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\system\libmaple\stm32f1\include\series
C:\Users\Jim\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2019.10.9\variants\generic_stm32f103c
STM32 Tools:
C:\Users\jmerkle\AppData\Local\Arduino15\packages\stm32duino\tools\stm32tools\2019.10.9\win\stlink\ST-LINK_CLI.exe

The Arduino Plugin package doesn't include header files/libraries for the CAN Bus module


References:

Technical Reference Manual: https://www.st.com/content/ccc/resource/technical/document/reference_manual/59/b9/ba/7f/11/af/43/d5/CD00171190.pdf/files/CD00171190.pdf/jcr:content/translations/en.CD00171190.pdf
https://wiki.stm32duino.com/index.php?title=Blue_Pill
https://os.mbed.com/users/hudakz/code/STM32F103C8T6_Hello/
https://os.mbed.com/users/hudakz/code/CAN_Hello/

Using Atollic Studio and STM32CubeMX

Installation

Projects

  • Blinky - Blink an LED
  • Serial Output to terminal using FTDI module/cable
  • Using I2C interface - APIs
  • PWM - LED fading
  • PWM - Servo control
  • Serial Output to terminal using on-board USB interface
  • Using SPI interface - APIs
  • Using ADC to measure voltage