Modification of Mbed-dev library for LQFP48 package microcontrollers: STM32F103C8 (STM32F103C8T6) and STM32F103CB (STM32F103CBT6) (Bluepill boards, Maple mini etc. )

Fork of mbed-dev by mbed official

Warning!

This library is unable to work due to huge changes in the mbed toolchain. Do not use with mbed online!

New wersion:

Import librarymbed-STM32F103C8

Modification of Mbed-dev library for LQFP48 package microcontrollers: STM32F103C8 (STM32F103C8T6) and STM32F103CB (STM32F103CBT6) (Bluepill boards, Maple mini etc. )




Library for STM32F103C8 (Bluepill boards etc.).
Use this instead of mbed library.
This library allows the size of the code in the FLASH up to 128kB. Therefore, code also runs on microcontrollers STM32F103CB (eg. Maple mini).
But in the case of STM32F103C8, check the size of the resulting code would not exceed 64kB.

To compile a program with this library, use NUCLEO-F103RB as the target name. !

Changes:

  • Corrected initialization of the HSE clock (mbed bug), allowing the use of on-board xtal (8MHz).(1)
  • Additionally, it also set USB clock (48Mhz).(2)
  • Definitions of pins and peripherals adjusted to LQFP48 case.
  • Board led LED1 is now PC_13 (3)
  • USER_BUTTON is now PC_14 (4)

notes
(1) - In case 8MHz xtal on board, CPU frequency is 72MHz. Without xtal is 64MHz.
(2) - Using the USB interface is only possible if STM32 is clocking by on-board 8MHz xtal or external clock signal 8MHz on the OSC_IN pin.
(3) - On Bluepill board led operation is reversed, i.e. 0 - led on, 1 - led off.
(4) - Bluepill board has no real user button

Revisions of api/mbed.h

Revision Date Message Actions
142:d6373279a6f1 2016-05-26 Synchronized with git revision db49c1edebc3516ee61197641f7cfbdeaea5482f File  Diff  Annotate
126:4d7eabe73831 2016-05-11 Synchronized with git revision 3210b40a919c76e4c0062c036eb0c67acd043372 File  Diff  Annotate
118:1e9abb17742b 2016-04-27 Synchronized with git revision 868ca35dfb02565beafef75f12e5f0f1740e860c File  Diff  Annotate
110:ee5a402b756a 2016-04-13 Synchronized with git revision 5d695a8e0baf2479154e36a7f46dd15415232ee0 File  Diff  Annotate
102:5ce70d0cf6ae 2016-03-30 Synchronized with git revision 58c0b22c8c0a1f43dc05df76287cf0a298e0cad5 File  Diff  Annotate
92:49efcc0d6d73 2016-03-15 Synchronized with git revision 287c3b71f4ca9dab98d9d768f8cac688491abb56 File  Diff  Annotate
79:7f02dc905b68 2016-03-02 Synchronized with git revision b9f6f5c776b399135965fd219030d72a83f4fbe4 File  Diff  Annotate
65:60c7569a3925 2016-02-16 Synchronized with git revision 44df3e5bd7f63394fc0629e7a3785951c8148233 File  Diff  Annotate
59:d25f6f8282a3 2016-02-03 Synchronized with git revision 4f5900646773ccd5138fb409234d97f1cd67ea98 File  Diff  Annotate
49:57ac6e3cdfd3 2016-01-13 Synchronized with git revision c47cd8d4837347a9653fc39bb0c8b62a9e63786b File  Diff  Annotate
38:a3b3bdc2ad2c 2015-12-15 Synchronized with git revision 48fa2930e5ce183ca7ece4ec171859705e053c31 File  Diff  Annotate
27:affb46b27b47 2015-11-26 Synchronized with git revision 7920122bf30b22068b8a0f4a7674795f12dc155d File  Diff  Annotate
13:da2ea05f91cf 2015-10-29 Synchronized with git revision 6bdf53a4e8cce7f608b34507fff0de50d586af01 File  Diff  Annotate
1:a46deec61bf5 2015-10-05 Synchronized with git revision a564e99e600db241dda4ece8a47b464def3db78c File  Diff  Annotate
0:9b334a45a8ff 2015-10-01 Initial commit on mbed-dev File  Diff  Annotate