Quick tutorial on new STM32CubeIDE

STM recently unveiled new tools for programming STM32 microcontrollers called STM32CubeIDE. I tried it and created short video while doing it. If you have some spare BluePill boards, you can try it. I used my home made ST-LINK and another BluePill as target. Below is the video:

Thank you for watching!

Slemi

12 thoughts on “Quick tutorial on new STM32CubeIDE

  1. Hi,
    Could you do a tutorial on programming a STM32 into a games controller that has analog inputs?
    I’d like to learn and with the help of your information I was able to load a program into my blue pill using CubeIDE.
    I’ve tried to load this https://github.com/vostrenkov/FreeJoy into my bluepill but it has errors and I don’t understand enough to fix the problems.
    Thanks.

    • The project in your link is done with Keil uVision and does not contain all the files/settings for CubeIDE. You should install that software and it will compile. I believe the free version will be enough to compile. Only thing you need to change is to go to menu Project -> Options for target… and in new window select Output tab and check Create HEX File. This should do it. HEX file is in -> MDK-ARM -> hid_joystick_stm32.

      • I got it to work, I was generating the code with cubemx then Keil uVision, that was an unnecessary step and was causing the problem.
        I used Keil only to build and it worked showing 3 analog axis in windows.
        Thanks for your help.

  2. Thanks for your reply.
    I was able to compile it without errors using Keil uVision and then load the .hex file into the blue pill using ST- link but there’s still something wrong with the program as it comes up as an unknown usb device in Device Manager.

  3. I tried cubeMX and cubeIDE, but none of them did blinky for one reason or other. However, with Keil-MDK, blinky project worked as expected. I don’t understand what could be the problem. Any suggestions?

  4. I have been trying to access an 8 GB SanDisk SD card using STM32F446RE (Nucleo – F446RE board) using a different IDE. But we were not able to even initialize the SD card successfully. Can you please help me by sharing some codes that work on STM32CubeIDE? Or any link or any reference where we can find solutions to access SD card on CubeIDE development platform?

Leave a Reply to Grant Patullo Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.