Prox / RFID
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Resume / Consulting
Contact Me

LDmicro Forum - Test STM32F103 / Bluepill target under ldmicro

(you are viewing a thread; or go back to list of threads)

Test STM32F103 / Bluepill target under ldmicro (by José GILLES)
Bluepill board is a well known, cheap and powerfull board equiped with an STM32F103 32 bits ARM MCU ; it also works under arduino:

It has 128 KB of flash, 20 KB of RAM, runs at 72 MHz and has 2 32 bit ports ; and standard ADC, PWM, USART, I2C and SPI peripherals working under ldmicro.

It can be easily programmed with the low cost ST-Link-v2 compatible emulators:

If you're interested, you can test it in a beta version under ldmicro32 (5.3a) available on my github in 3 languages, with required libraries:


It's derived from ldmicro

This new Blupill target is only available in C mode but you can compile your ladder and upload it to the target without exiting ldmicro with a new flashMcu.bat file

Test it and let me know ?
Sun May 19 2019, 15:40:30
(no subject) (by Calubert)
Hola José GILLES, Esta tarjeta que propones en este foro, no es de el ARM-stm32xx que esta en el Software de LDmicro.
mi pregunta es como se asignan las patas (Pines) ya que este que pones el enlace es de 48 pines.

Bonjour José GILLES, Cette carte que vous proposez dans ce forum, ne provient pas de l’ARM-stm32xx qui se trouve dans le logiciel LDmicro.
ma question est de savoir comment les jambes sont assignées (Pins) puisque celui-ci que vous mettez le lien est 48 pins.

Hello José GILLES, This card that you propose in this forum, is not from the ARM-stm32xx that is in the LDmicro Software.
my question is how the legs are assigned (Pins) since this one that you put the link is 48 pins
Mon May 20 2019, 07:55:18
(no subject) (by José GILLES)
Hi Calubert

It'not (not yet) in the official version but you can test it
by downloading LdMicro32 v 5.3:


Then run and choose the new micro in the list.
Mon May 20 2019, 09:43:17
(no subject) (by José GILLES)

Calubert excepted, nobody is really interested in this wonderful target ?

It'll be included in next official release of ldmicro.
Wed May 29 2019, 03:38:54
(no subject) (by bfwolf)

"nobody is really interested in this wonderful target ?"

Some weeks ago, i suggested to add the STM32F103/Bluepill as ldmicro-target..
But the i never read any reaction by you on my suggestion, so i thought you weren't interested..

I was very happy and pleased, as i saw this post here and that you included the STM32F103/Bluepill in ldmicro, as i also think, this is a really nice and cheap alterantive for arduino-boards! :-)

By the way: Did you know, that most (nearly all) STM32F103/Bluepill boards have 128KB of flash?? xD


If you order the STM32F103/Bluepill boards directly in china, the are really very cheap! I bought a batch of 5 boards for only 8€, shipping included !!! :-)

Thank you very much for your work, José :-)

Wed May 29 2019, 04:29:27
(no subject) (by Calubert)
Tranquilo SR,José GILLES, es demasiado novedoso, la gente esta como loca con alduino, cuando pueda comprare una para jugar ya que uso el atnega 2560 y tiene muchas patillas que me sobran segun proyecto.
yo no estoy muy relacionado con C++, yo soy programador de PLC y toco la mayoría de PLC del mercado.

la verdad tranquilo siempre habrá alguien interesado y es cuando estarás orgulloso de tu trabajo. Tienes mi apoyo.
Saludos Paulino (Calubert).
Wed May 29 2019, 04:30:14
(no subject) (by José GILLES)

Thanks for your support !

I know that most Bluepills have 128 KB of flash and that's what is declared in ldmicro !

Best regards
Thu May 30 2019, 07:21:24
(no subject) (by Mark)
Good morning everyone
I would like to point out that the microcontrollers supported so far are "toys" compared to a 32-bit Arm with resources and possibilities elevated to n compared to a Pic and also to an Atmega, which I also use.
The introduction of this, and I hope other families of microcontrollers is an obligation now also because the eight bits are destined to disappear as reminiscence of the past and the cost in proportion is extremely small.
Surely also the complexity of the programs that will become possible to build will be at the n, and LdMicro will have to develop tools for understanding and help in drawing up the logic of the program that will allow the vision of the various parts easily ..... see sub-programs, visual division for logical parts ..... drivers, functions ..... (I would leave the simulation integrated, but perhaps with the connection to external simulators directly from inside the ide).
A question I wanted to ask is about the generation of the code, and the possible compatibility with standards .... for example, Misra
Congratulations on your effort and great skill, in my opinion.
Fri May 31 2019, 04:08:32
(no subject) (by MGP)
Mark, all very nice but the problem is that there are not enough developers.
Fri May 31 2019, 14:18:18
(no subject) (by Mark)
Yes, I have participated for a long time in free developments etc ...... but now after 41 years of work it's time for me to think about my grandchildren.
Therefore, let the young people go, the world will have to continue thanks to them.
However, I will follow to satisfy the curiosity that never goes away, and if I will be allowed to give small things, perhaps useful.
Mon Jun 3 2019, 06:14:50
Post a reply to this comment:
Your Name:
Your Email:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):