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
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
toOptimise for size (-Os)
History
Remove unnecessary folders
2017-04-27, by mega64 [Thu, 27 Apr 2017 23:56:38 +0000] rev 148
Remove unnecessary folders
fully rebuild, now based on mbed-dev v160. restore lost files
2017-03-16, by mega64 [Thu, 16 Mar 2017 07:17:23 +0000] rev 147
fully rebuild, now based on mbed-dev v160. restore lost files
fully rebuild, now based on mbed-dev v160
2017-03-16, by mega64 [Thu, 16 Mar 2017 06:15:53 +0000] rev 146
fully rebuild, now based on mbed-dev v160
Change peripherals and pins definitions from LQFP64 to LQFP48 case.;
2016-08-29, by mega64 [Mon, 29 Aug 2016 01:00:12 +0000] rev 145
Change peripherals and pins definitions from LQFP64 to LQFP48 case.;
Bug fix (system_stm32f1xx.c) initialization HSE with external xtal (e.g. bluepill). Remove unused files.
2016-08-28, by mega64 [Sun, 28 Aug 2016 17:20:54 +0000] rev 144
Bug fix (system_stm32f1xx.c) initialization HSE with external xtal (e.g. bluepill). Remove unused files.
Added targets.json file for the supported targets in the release
2016-08-02, by screamer [Tue, 02 Aug 2016 14:07:36 +0000] rev 143
Added targets.json file for the supported targets in the release
Synchronized with git revision db49c1edebc3516ee61197641f7cfbdeaea5482f
2016-05-26, by mbed_official [Thu, 26 May 2016 10:00:14 +0100] rev 142
Synchronized with git revision db49c1edebc3516ee61197641f7cfbdeaea5482f
Full URL: https://github.com/mbedmicro/mbed/commit/db49c1edebc3516ee61197641f7cfbdeaea5482f/
Release v121
Synchronized with git revision b32f7a9aaf404cba2342b4f3cf268c581046626b
2016-05-24, by mbed_official [Tue, 24 May 2016 13:30:14 +0100] rev 141
Synchronized with git revision b32f7a9aaf404cba2342b4f3cf268c581046626b
Full URL: https://github.com/mbedmicro/mbed/commit/b32f7a9aaf404cba2342b4f3cf268c581046626b/
Synchronized with git revision 24136afd3f87e9580dd3d3fcae28e9b9f166af3e
2016-05-24, by mbed_official [Tue, 24 May 2016 11:30:12 +0100] rev 140
Synchronized with git revision 24136afd3f87e9580dd3d3fcae28e9b9f166af3e
Full URL: https://github.com/mbedmicro/mbed/commit/24136afd3f87e9580dd3d3fcae28e9b9f166af3e/
Fix timer #816 issue for STM32F0 and STM32F1
Synchronized with git revision 39fa25d77e83d5ee53d6f77b30dc0c2d380fe034
2016-05-23, by mbed_official [Mon, 23 May 2016 16:00:17 +0100] rev 139
Synchronized with git revision 39fa25d77e83d5ee53d6f77b30dc0c2d380fe034
Full URL: https://github.com/mbedmicro/mbed/commit/39fa25d77e83d5ee53d6f77b30dc0c2d380fe034/