Skip to main content
Associate II
November 5, 2024
Solved

Getting started with STM32 MCU Discovery Kit [STM32F072B-DISCO]

  • November 5, 2024
  • 3 replies
  • 2042 views

Hi,
I am new to the STM32 Discovery boards. I've chosen the STM32F072B-DISCO as my Discovery kit and am currently exploring how to begin developing applications with it.
As per the 'Getting Started with STM32F072DISCOVERY' video and the UM1715 User manual, the software development tools mentioned are IAR Embedded Workbench, Microcontroller Development Kit for ARM (MDK-ARM) by Keil, and TrueSTUDIO by Atollic.

Screenshot 2024-11-05 180527.pngScreenshot 2024-11-05 190926.png
Could you please inform me if the board is compatible with the ST Development tools such as STM32CubeMX and STM32CubeIDE? Could you kindly assist in identifying the IDE and SDK, along with a sample application, in order to kickstart the development process?

 

Thanks and regards,

Prasanth

Best answer by liaifat85

The STM32F072B-DISCO Discovery kit is compatible with STM32CubeMX and STM32CubeIDE, two widely used development tools from STMicroelectronics. These tools are often more convenient than the legacy options (IAR Embedded Workbench, Keil MDK-ARM, and Atollic TrueSTUDIO), and they are well-integrated into the STM32 ecosystem. STM32CubeIDE allows debugging via the ST-LINK debugger built into the STM32F072B-DISCO board. Connect the board via USB, select ST-LINK in the debug configuration, and you’ll be able to set breakpoints, inspect variables, and step through your code.

https://www.theengineeringprojects.com/2021/10/first-project-using-stm32-in-stm32cubeide.html

3 replies

liaifat85Best answer
Visitor II
November 5, 2024

The STM32F072B-DISCO Discovery kit is compatible with STM32CubeMX and STM32CubeIDE, two widely used development tools from STMicroelectronics. These tools are often more convenient than the legacy options (IAR Embedded Workbench, Keil MDK-ARM, and Atollic TrueSTUDIO), and they are well-integrated into the STM32 ecosystem. STM32CubeIDE allows debugging via the ST-LINK debugger built into the STM32F072B-DISCO board. Connect the board via USB, select ST-LINK in the debug configuration, and you’ll be able to set breakpoints, inspect variables, and step through your code.

https://www.theengineeringprojects.com/2021/10/first-project-using-stm32-in-stm32cubeide.html

Associate II
November 8, 2024

Hi @liaifat85, I really appreciate your helpful response to my question. The link you provided was instrumental in guiding me on how to kick off a project with STM32CubeIDE and STM32CubeMX. Thank you!

mƎALLEm
Technical Moderator
November 5, 2024

Hello,

STM32CubeIDE and STM32CubeMx are compatible to all STM32 MCUs.

You can start from CubeMx and start a project based on the board:

 

SofLit_1-1730817713054.png

Select the board:

SofLit_2-1730817766734.png

In the project manager tab, select the IDE and generate the code:

SofLit_3-1730817850926.png

You can inspire from the examples provided in Github: https://github.com/STMicroelectronics/STM32CubeF0/tree/master/Projects/STM32F072B-Discovery

Hope it helps.

 

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Associate II
November 8, 2024

Hi @mƎALLEm,
I really appreciate your help in resolving my question. I checked out the link you shared, and I was able to access the example projects. Everything worked perfectly, and I could verify it with my hardware. Thanks for your support!

Associate II
November 8, 2024

Hello,
I have another question. I'm currently working with the STM32F072B-DISCO and have begun with the 'Capacitive Touch' demonstration project. I would like to debug the application while it's running by monitoring and displaying the variables in real-time. Is there a tool available that supports this? I haven't been able to find this information in any of the user manuals. I would really appreciate your assistance in resolving this. Thanks.

 

Regards,

Prasanth