{"id":11909,"date":"2024-01-22T16:59:44","date_gmt":"2024-01-22T14:59:44","guid":{"rendered":"https:\/\/deepbluembedded.com\/?p=11909"},"modified":"2024-01-22T16:59:49","modified_gmt":"2024-01-22T14:59:49","slug":"stm32-blue-pill-pinout-programming-guide","status":"publish","type":"post","link":"https:\/\/deepbluembedded.com\/stm32-blue-pill-pinout-programming-guide\/","title":{"rendered":"STM32 Blue Pill Pinout & Programming Guide"},"content":{"rendered":"\n

In this article, you\u2019ll find the STM32 Blue Pill Pinout Diagram<\/strong> for both blue pill boards based on the STM32F103C8T6 & STM32F103C6T6. You’ll also learn how to program & simulate STM32 Blue Pill Projects with STM32CubeIDE, Arduino IDE, and Proteus ISIS software. Without further ado, let\u2019s get right into it!<\/p>\n\n\n

Table of Contents<\/h2>\n
    \n
  1. STM32 Blue Pill Pinout Diagram<\/a>\n\n\n
  2. STM32 Blue Pill Board Features<\/a>\n\n\n
  3. STM32 Blue Pill Programming Example (CubeIDE)<\/a>\n\n<\/li>\n
  4. STM32 Blue Pill Arduino Programming<\/a>\n\n<\/li>\n
  5. Simulating STM32 Blue Pill Board (in Proteus)<\/a>\n\n<\/li>\n
  6. Wrap Up<\/a>\n<\/li><\/ol>\n\n\n
    \n\n\n

    STM32 Blue Pill Pinout Diagram<\/strong><\/h2>\n\n\n

    The STM32 Blue Pill board comes in two variations; One is based on the STM32F103C8T6 target microcontroller, and the other is based on the STM32F103C6T6. They both have the same board layout and pinout diagram, the differences between the target microcontrollers are the internal specs of the MCU (like RAM, ROM, Peripherals, etc).<\/p>\n\n\n\n

    \"STM32F103-Blue-Pill\"<\/figure>\n\n\n\n

    <\/p>\n\n\n

    Blue Pill Pinout Diagram (STM32F103)<\/strong><\/h3>\n\n\n
    \"Blue
    STM32 Blue Pill Pinout Diagram (STM32F103C8T6 \/ STM32F103C6T6)<\/em><\/figcaption><\/figure>\n\n\n\n

    <\/p>\n\n\n

    \n
    \u2755 Note<\/div>\n\n\n

    Not all GPIO pins on the STM32 blue pill board are 5v tolerant. To keep everything on the safe side, you need to use a 3.3v logic level on all GPIO lines so you don’t over-drive any IO line by mistake.<\/p>\n\n<\/div><\/div>\n\n\n


    \n\n\n

    STM32 Blue Pill Board Features<\/strong><\/h2>\n\n\n

    The two variants of the STM32 blue pill boards share the same “board features” which are as follows:<\/p>\n\n\n\n