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
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.
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.
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?
Can you please let me know more what is the problem?
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?
I haven’t really tried SD cards yet. Maybe try this post or any other on Google with results for STM32 SDCARD.
Hope this helps.
If it may interest you below there is a tutorial on STM32CubeIDE:
http://www.emcu.eu/first-embedded-progrm-for-stm32-mcu-using-stm32cubeide/
Nice tutorial!
Thank you!
Here is a collection of small example projects using STM32CubeIDE to program the Blue Pill board…
https://github.com/miniwinwm/BluePillDemo
Thank you for your contribution!
Slemi