Skip to main content
themadscientist
Associate II
April 22, 2019
Solved

How to compile with TrueSTUDIO onto a blue pill board?

  • April 22, 2019
  • 3 replies
  • 1838 views

I've not been able to find anything that explicitly shows how to use TrueSTUDIO to compile onto a board, how do you do this???

This topic has been closed for replies.
Best answer by Peter BENSCH

This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

Thank you for your understanding.

Regards
/Peter

3 replies

Tesla DeLorean
Guru
April 22, 2019

How do you believe that using the compiler/IDE to build for Board X is materially different from Board Y? Try not to paint yourself into a corner.

Find something that is a sufficiently close approximation to the board you have and adapt for the specific pins and configuration. Look for example projects on other similar F1 boards/platforms. Are you wedded to TrueStudio? You have some experience with it in other contexts?

Connectivity via DFU/USB or an ST-LINK JTAG/SWD pod is more similar than not between boards.

Check the Blue Pill vendor(s) sites for specific/tailored advice, or schematics to understand connectivity

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
themadscientist
Associate II
April 23, 2019

I'm using the blue pill for prototyping with the intent of using the processor standalone once i prove the code works. I'm using TrueStudio because I thought CubeMX was really convenient for pin configuration and can export to TrueStudio, is there another way to do any of this I don't know about?

turboscrew
Senior III
April 22, 2019

Or compile for the processor (stm32f103C8). Not for a board. There's basically nothing programmable on the board other than the processor itself.

themadscientist
Associate II
April 23, 2019

My intent is to compile for the processor as I'm only using the blue pill for prototyping my code, later i will be using the processor solo on a custom PCB. My issue is that I can't figure out how to compile for the processor with TrueStudio.

Ozone
Principal
April 23, 2019

> My issue is that I can't figure out how to compile for the processor with TrueStudio.

Usually, you start with creating a TrueStudio project for said MCU. The IDE will chose the proper resources (e.g. linker script, startup file) for you.

With CubeMX, you do that already inside Cube - supposedly.

Peter BENSCH
Peter BENSCHBest answer
Technical Moderator
April 25, 2025

This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

Thank you for your understanding.

Regards
/Peter