Introduction: Bharat Pi "Redpill" Integration in STMCUBE IDE (Tool Installation)

About: Bharat Pi is an IoT prototyping platform for students, innovators, startups and developers. A simplified board with an all in one compute network and storage on a single board to build rapid prototypes, colleg…

The "RedPill" in Bharat Pi is a development board designed for prototyping Internet of Things (IoT) projects. It is based on the STM32G0 series microcontrollers (MCUs) from STMicroelectronics, specifically the STM32G071CBT6TR.

The RedPill's key feature is that it provides access to all 48 pins of the MCU. This allows you to connect a wide variety of sensors and other devices to the board for your IoT projects.

Supplies

  • STM32CubeMX, a tool to set and graphically program all STM32 boards and products
  • STM32CubeIDE, the free IDE to develop the STM32 software
  • STM32CubeProg, a tool to load/spy software in the STM32 memory
  • STSW-LINK007 Board firmware upgrade

Step 1: Install STM32CubeMX

Install STM32CubeMX

This is a free graphical software configuration tool from STMicroelectronics. It's the starting point for most STM32 projects.

What it does:

  • Configure your chosen STM32 microcontroller by selecting peripherals (like timers, GPIOs, communication interfaces) you want to use.
  • Generate initialization code for these peripherals, saving you time writing boilerplate code.
  • Export the configuration and generated code to various IDEs like STM32CubeIDE or others.

Register on www.st.com web site if necessary.

Unzip the downloaded file and launch the SetupSTM32CubeMX-xxx corresponding to your OS

please click the link to download the Setup STM32CubeMX-xxx

https://www.st.com/content/st_com/en/stm32cubemx.html#st-get-software


Step 2: Install STM32CubeIDE

This is a free Integrated Development Environment (IDE) from STMicroelectronics specifically designed for STM32 development.

What it does:

  • Provides a complete development environment for writing, compiling, debugging, and flashing your STM32 code.
  • Integrates well with STM32CubeMX, allowing you to directly import your project configuration and generated code.
  • Offers features like code completion, debugging tools, and project management.

Register on www.st.com web site if necessary.

Unzip the downloaded file and launch the STM32CubeIDE-xxx corresponding to your OS.

please click the link to download the Setup STM32CubeIDE-xxx

https://www.st.com/content/st_com/en/stm32cubeide.html#st-get-software




Step 3: Install STM32CubeProg

This is a free firmware programmer and debugger tool from STMicroelectronics.

What it does:

  • Allows you to load compiled application code (.bin files) into the flash memory of your STM32 board.
  • Provides debugging functionalities like setting breakpoints, examining memory, and stepping through code execution.
  • Works as an alternative to using an ST-LINK debugger/programmer within an IDE.

Unzip the downloaded file and launch the SetupSTM32CubeProgrammer-xxx.exe corresponding to your OS, and follow the instructions.

please click the link to download the Setup SetupSTM32CubeProgrammer-xxx.exe

https://www.st.com/en/development-tools/stm32cubeprog.html#get-software




Step 4: Boards Firmware Upgrade

STSW-LINK007 is a firmware upgrade application specifically designed for ST-LINK/V2, ST-LINK/V2-1, ST-LINK/V3, and even the original ST-LINK debuggers/programmers. It allows you to update the firmware on these devices through their USB port.

You can download STSW-LINK007 for free from the STMicroelectronics website: 

https://www.st.com/en/development-tools/stsw-link007.html