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

Fork of mbed-STM32F103C8_org by Nothing Special

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 + crystal clock (mbed permanent 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)

    Now the library is complete rebuilt based on mbed-dev v160 (and not yet fully tested).

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

Information

After export to SW4STM (AC6):

  • add line #include "mbed_config.h" in files Serial.h and RawSerial.h
  • in project properties change Optimisation Level to Optimise for size (-Os)

Changes

RevisionDateWhoCommit message
148:8b0b02bf146f 2017-04-27 mega64 Remove unnecessary folders default tip
147:38a0c20c7b3e 2017-03-16 mega64 fully rebuild, now based on mbed-dev v160. restore lost files
146:03e976389d16 2017-03-16 mega64 fully rebuild, now based on mbed-dev v160
145:54b3c5994df6 2016-08-29 mega64 Change peripherals and pins definitions from LQFP64 to LQFP48 case.;
144:816d09523763 2016-08-28 mega64 Bug fix (system_stm32f1xx.c) initialization HSE with external xtal (e.g. bluepill). Remove unused files.
143:423e1876dc07 2016-08-02 screamer Added targets.json file for the supported targets in the release
142:d6373279a6f1 2016-05-26 mbed_official Synchronized with git revision db49c1edebc3516ee61197641f7cfbdeaea5482f
141:a2b798ec44f6 2016-05-24 mbed_official Synchronized with git revision b32f7a9aaf404cba2342b4f3cf268c581046626b
140:6f18478c63fa 2016-05-24 mbed_official Synchronized with git revision 24136afd3f87e9580dd3d3fcae28e9b9f166af3e
139:533daf166656 2016-05-23 mbed_official Synchronized with git revision 39fa25d77e83d5ee53d6f77b30dc0c2d380fe034
138:881eab8cab64 2016-05-23 mbed_official Synchronized with git revision 045d99bbaa9199c6d99fd701d1c942b4202a6f7d
137:28723fa54344 2016-05-23 mbed_official Synchronized with git revision b395dd5956dcbb5c3f4336d2d917210041741871
136:5728e9819171 2016-05-23 mbed_official Synchronized with git revision f74fc12313356f861665b8e8a11afcc972a543fc
135:eec55f8ee438 2016-05-23 mbed_official Synchronized with git revision 275100e9694eca820b966a3fb9abc8b5f3dadff2
134:c5ba39804b6b 2016-05-23 mbed_official Synchronized with git revision 99fb83ae2190e05b964e33257cb710c9a300f006
133:0113f86169f0 2016-05-23 mbed_official Synchronized with git revision 03d8ea8e96051c0fa2d0a081f9f84b9c86d9ffb2
132:6cc58ee51cfe 2016-05-22 mbed_official Synchronized with git revision bd78f98496fab2f02162521d7e279d7bd0f0840e
131:830c525a60d5 2016-05-17 mbed_official Synchronized with git revision a1914e17f302c278bbd248878b4255c9b884aa71
130:cd421b1c9b67 2016-05-17 mbed_official Synchronized with git revision 909c76f36c371b38afc09b65949ed944189bb90a
129:8a86d1aafce0 2016-05-16 mbed_official Synchronized with git revision 1d1f7ab1330d44cc5697c682173f7090a7d6b1cb
128:c31e94a47539 2016-05-13 mbed_official Synchronized with git revision 7bd986845c110b2c4e8bc58739a74757dd6ff493
127:c0c383bd32af 2016-05-13 mbed_official Synchronized with git revision 6483faedd2d82f36a7b5e03540fc62721c1fef38
126:4d7eabe73831 2016-05-11 mbed_official Synchronized with git revision 3210b40a919c76e4c0062c036eb0c67acd043372
125:e632577a484c 2016-05-09 mbed_official Synchronized with git revision 7b4f4fc40d0b72877a32d9e786ac4ddd76927c92
124:6a4a5b7d7324 2016-05-09 mbed_official Synchronized with git revision ad75bdcde34d7da9d54b7669010c7fb968a99c7c
123:5dbefb20d136 2016-05-05 mbed_official Synchronized with git revision 53b54323ba1513a5aa427d241594a7c0d1ed8786
122:18a6c3abfbc7 2016-05-04 mbed_official Synchronized with git revision 816233cf5d386bf7219fd0d886985c7193f8c11f
121:7f86b4238bec 2016-05-03 mbed_official Synchronized with git revision 9cef243de23875778f461bbe9a8c1bc47e65212b
120:f2ddb8be7462 2016-04-29 mbed_official Synchronized with git revision d1dc98991286822daacb1d2583e1e184f3240e36
119:3921aeca8633 2016-04-29 mbed_official Synchronized with git revision fe9720f24b1adc71ab6962506ec51290f6afd270
118:1e9abb17742b 2016-04-27 mbed_official Synchronized with git revision 868ca35dfb02565beafef75f12e5f0f1740e860c
117:24bb08393888 2016-04-26 mbed_official Synchronized with git revision 2451ac1026c029ba5d898e607675a269d18e9bb6
116:983bd476082e 2016-04-26 mbed_official Synchronized with git revision 0b67bf08c8c2ce634f489a85e1c044812034bca2
115:33c68e1b9487 2016-04-26 mbed_official Synchronized with git revision e090a88f3a1af2257510fb3e1d4e0c5ad5a30a08
114:fe4fe5cfc3a3 2016-04-26 mbed_official Synchronized with git revision d25daf7fad8fea9180bfa5134105bc6439ed808a
113:b3775bf36a83 2016-04-19 mbed_official Synchronized with git revision 896981126b34b6d9441e3eea77881c67a1ae3dbd
112:df58eca2f41d 2016-04-17 mbed_official Synchronized with git revision 92a345200dc74ae7d0db944a94f028baaa129d7c
111:86e691153a57 2016-04-15 mbed_official Synchronized with git revision 9b277ae859dd9b09ceec43e4c89b18eb6a840cd6
110:ee5a402b756a 2016-04-13 mbed_official Synchronized with git revision 5d695a8e0baf2479154e36a7f46dd15415232ee0
109:5e8787d2b815 2016-04-12 mbed_official Synchronized with git revision 9cd482817dfff9bb35aed9519b28c9d73499694d
108:e46d5651bd87 2016-04-08 mbed_official Synchronized with git revision f28131a577669d25a5a37e7e5901bbad47cd4af6
107:414e9c822e99 2016-04-05 mbed_official Synchronized with git revision dd3c5f7fa8473776950ec6e15c0e4adedb21cf2f
106:c405d2eb506d 2016-04-04 mbed_official Synchronized with git revision e2cb35e9ad726713da701b8a95393473471560b4
105:364b35371a11 2016-04-04 mbed_official Synchronized with git revision 76649d8a973284d599f0d65373a87536ebefe53e
104:e48d70d14486 2016-04-04 mbed_official Synchronized with git revision 2454dc53c78e0e652cb88e9e42bfcd0a095e715d
103:173fc4c67e73 2016-04-01 mbed_official Synchronized with git revision 47c580be869fde4174bc01e0086d51df4bedd852
102:5ce70d0cf6ae 2016-03-30 mbed_official Synchronized with git revision 58c0b22c8c0a1f43dc05df76287cf0a298e0cad5
101:df8ef1d8a4b1 2016-03-29 mbed_official Synchronized with git revision 4694003b106ccf6128595f27744fc6f1264397c3
100:7c647ea3c13d 2016-03-25 mbed_official Synchronized with git revision 4e40445b73e6e935b7d25568a0fab03a338b9a29
99:740f8f9b184c 2016-03-24 mbed_official Synchronized with git revision 286b61db8a8431279e0cdf6bc4f9e9c137d46c79
98:f043b034eb5d 2016-03-24 mbed_official Synchronized with git revision 3e896871e63263518dd05f90bbab6266bf13de25
97:c27a4bafb213 2016-03-24 mbed_official Synchronized with git revision dd3cba536fbbd4e36a7e93fde54c3d3984bdd0f6
96:12647ac05603 2016-03-24 mbed_official Synchronized with git revision ff9d4e2266938d4084a98e85cdec8c96dd084bea
95:75b7d1f8d36d 2016-03-18 mbed_official Synchronized with git revision 1f340445d5333b485923beb9a7216fc54a8efeb4
94:17550cbf442f 2016-03-17 mbed_official Synchronized with git revision 0a0fcbb5fd129d8b72a6d872b6e280b3ee7527e1
93:27c677f25ce8 2016-03-17 mbed_official Synchronized with git revision 3d5d6c2232da4b96000fa5d0b5e72e405f155fa2
92:49efcc0d6d73 2016-03-15 mbed_official Synchronized with git revision 287c3b71f4ca9dab98d9d768f8cac688491abb56
91:ecf78a9c440b 2016-03-15 mbed_official Synchronized with git revision 3afb55095212c88fc1c17177348bc1e16259c1ca
90:bd7e252b15f3 2016-03-14 mbed_official Synchronized with git revision fec574a5ed6db26aca1b13992ff271bf527d4a0d
89:76c2ee472b3f 2016-03-14 mbed_official Synchronized with git revision 768fbd7de22fac9689a0f207deb0786ae282b108