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

by bharatpi in Circuits > Arduino

93 Views, 0 Favorites, 0 Comments

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

Screenshot 2024-03-19 130706.png

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

Install STM32CubeMX

Screenshot 2024-03-19 114020.png

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


Install STM32CubeIDE

Screenshot 2024-03-19 120110.png
Screenshot 2024-03-19 120125.png

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




Install STM32CubeProg

Screenshot 2024-03-19 120619.png
Screenshot 2024-03-19 120632.png

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




Boards Firmware Upgrade

Screenshot 2024-03-19 121113.png
Screenshot 2024-03-19 121122.png

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