Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
Hi,I just watched this video here: How to build an USBPD Sink application using the X-Cube-TCPP software pack - YouTube which explains how to build up a project with TCPP package for CubeMX.I use the newest CubeMX 6.11.1 but it looks different than in the video: means that the tab "PDO Sink" is missing. Any idea?Best regards,Achim
STM32CubeG4 v1.3.0 contains STM32 OpenBootLoader 2.0. How is this used/accessed? I cannot find it anywhere in STM32CubeMX.I have STM32CubeMX v6.0.1 and STM32Cube MCU package for STM32G4 series v1.3.0.
I'm trying to generate a project from a .ioc file automatically on a headless system. This sees to be a very common source of problems. Is there a definitive solution for this? Otherwise I'm just here adding my vote for ST to add support for this.OS: OpenSUSE.I can't find a way of doing this with the STM32cubeIDE install. But if I install STM32cubeMX separately then the docs say you can do this via a script using ./STM32CubeMX -s yourscript. That nor the -i (for interactive) arguments work. The solution as provided in threads from 2019 is to do: "java -jar /path/to/STM32CubeMx -q yourscript". Why are the docs still wrong / why is this workaround still required when this has been a reported issue for 4 years?The next issue is that even this workaround isn't true CLI, as it still requires a display, if you try to run this headless you get: No X11 DISPLAY variable was set,And when running it on the local machine I see a small gui progress bar, and then a dialogue box pops up asking if I'm
I have been using STM32 microcontrollers for development for several years, and I am very grateful that development ecosystems such as CubeMX and Cube IDE helped me speed up development.However, the latest version of Cube MX requires user login, and I confirmed that login is not possible due to the security policy of the company I work for.The login window became unresponsive and the program had to be forcibly closed.This was very annoying.Will manufacturers actually gain much benefit by encouraging users to log in?I cannot agree.Rather, with this software structure, there will be people like me who cannot use it.I present a solution for users like me.1. First, log in in an environment where CubeMX can be used normally (general network environment).2. Then, you will see the userauth folder in the folder below.C:\Users\[user name]\.stm32cubemx\plugins3. Copy the userauth folder and paste it into the same folder on the computer where cubeMX cannot be logged in.Through this, there was no
i am using mxcube version 6.1.1 so i want to code for udp ethernet ping working code for mx cube version 6.1.1.
Has anyone found an error in CubeMX when trying to use one of the examples (specifically I2C_OneBoard_Communication_IT_Init) where CubeMX is stating that it is based off of the V1.3 software package. My updater says that V1.3 is not available, but the CubeMX is still requiring it to be downloaded. TIA
Hi to all,I use the Device MSC provided by CubeMX.I wrote my own diskio.c file and every works fine with an SD of 2Gb formatted in FAT.When I use n SD of 8Gb formatted in FAT32, WIndows take about 2 minutes to access the root directory. After this time, the Mass storage works fine.What is the delay in enumerating files in FAT32?Attached my usbd_storage_if.cP.S.: FATFS works great with the same user_diskio.c and user_spi_diskio.c (attached)Thanks to all.
Hi, I had to manually navigate to the /usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/ folder to create the desktop shortcut.Xubuntu, VERSION="22.04.2 LTS (Jammy Jellyfish)"
there is a strange phenomenon. I write some chinese comments in main.c and other files. when I use cubeMX to regenerate the code. the comments in main.c are partly changed and can't be display correctly. but the comments in the file that don't be regenerated by cubeMX are correct and don't be changed.then I regenreate the codes by stm32cubeMX.the mistake happend. I use the defualt configuration. but when I set encoding with GBK. the problem disappears.
Dear STM32CubeMX/STM32CubeIDE users We detected an issue linked to unavailability of some Cube packages for multiple STM32 series. This misbehavior is caused by an issue in the published database used by our tools. The issue is currently under investigation and fix will be provided ASAP. This would required a ‘Refresh Data’ operation on your side. We apologize for this inconvenience. > Updates : The issue is now fixed BR,Semer.
Hello,I'm new on STM32 devices and would evaluate some MCU.I bought my eval kit, install the IDE and stuck on an error 1 minute after install ....I have this error each time I start a new project.I'm on Debian 12 and use the generic linux version.Also tried in root, but same problem.Someone can help me ? Thanks !
I install STM32CubeMX Ver 6.11.1. The page does not load when I log in to the accountThis prevents the firmware package from being downloaded
Using Nucleo 32H723ZG board, would like to add WolfSSL to it Working on an SSH server app.Using the LwIP_HTTP_Server_Socket_RTOS example... watching this video:https://youtu.be/pUd2HEfBp3w?si=jiB2MysS9unIuVDr&t=1727It appears that my problem is this example does not generate an ioc file so that the pack I downloaded and put into CubeMX will not be applicable. Is this right? Will I just have to construct the example project and import it by hand?
Hi, I create a new project with STM32CubeIde 1.15.1 (but same with 1.10.1)I add SDRAM 1 - BANK 1When I debug this project, after HAL_SDRAM_Init function in MX_FMC_Init(), I can wath the memory in MEMORY BROWSER at address 0x60000000.But on reference manual, SDRAM should be at 0xC0000000.I select Default mapping in Bank Mapping : If I select bank swapped, I have my datas at 0xC0000000.Is it a bug of STM32CubeIDE ?
Hello,I'm working on a CMake F030 based project, generated with STM32CubeMX (MX and firmware package up to date to last version)So the CMakeList.txt link to a stm32cubemx library. Generating the basic project is ok. But now, I have created a libPWM that is in its own directory, with it own CMakeList.txt. It add some compilation_option such as -Wconversion and -WerrorThe pwmLib has to be linked to the stm32cubemx (for Driver include, cpu information...)But as the stm32cubemx is an interface, when generating the libPWM, it rebuild the stm32cubemx (for example Libs/libPWM/CMakeFiles/libPWM.dir/__/__/Drivers/STM32F0xx_HAL_Dreiver/Src/stm32f0xx_hal_flash_ex.c.obj) The problem is that it use the compile options that were defined in libPWM (-WConversion -WError). And the compilation failed because there are conversion warning in Drivers.How to avoid the stm32cubemx to be recompiled when linking to it, or how to avoid my compilation option to be propagate to the stm32cubemx lib when recom
Dear All, In my project, I am using STM32F405RG MCU for file read/wirte operations using FATFS.I declare the physicaldrive as USB DEVICE (Mass storage Class) ,while I am generating a code for USB DEVICE(Mass Storage Class) its only works for STM32CUBEMX V6.3 and its not working higher version of 6.3. If any specific reason behind that,please guide me. STM32CUBEIDE V1.12.1 STM32CUBEMX V6.3
Hi, I am frequently getting tired while working with the STM32H743ZIT6 144-pin Nucleo board / STM32H743IIT6 controller board and an externally connected Ethernet module using a communication protocol. Despite trying many different ways, it is still not working. The Ethernet module cannot be pinged.I’ve tried older versions of STM32CubeMX, including 5.0.0, 5.4.0, 6.10.0, and 6.11.1, as well as older firmware versions, but it still isn’t working.I have only used the Keil MDK-ARM V5 toolchain.Can anyone please help me with this communication protocol? If anyone has worked with the controllers I mentioned above, could you please share your code? Thank you!
Using STM32CubeMX 6.3.0 with a dual core STM32H755 micro I have a dip switch I wish to be able to read from both cores. Some peripherals (like TIM1 for example) have check boxes for runtime contexts that let you check M7 and M4 to access the peripheral from both cores and define which core contains the initialization. For the GPIO the CubeMX 6.3.0 GUI has drop box selectors instead of check boxes that force choice of M7 or M4 or free, it doesn't look like there is a way to have CubeMX place the pin name definitions into the generated code for both cores. Is there a clean work around besides just going around CubeMX and programming it manually?
I would like to know if there is a way to NOT enable interrupts during the initialization of the EXTI. See below for snippet /* EXTI interrupt init*/ HAL_NVIC_SetPriority(EXTI0_IRQn, 0, 0); HAL_NVIC_EnableIRQ(EXTI0_IRQn); HAL_NVIC_SetPriority(EXTI3_IRQn, 0, 0); HAL_NVIC_EnableIRQ(EXTI3_IRQn);I want to be able to control when I enable the IRQ but there doesn't seem to be any option to do this.if I uncheck the Enabled option within the NVIC Configuration tab, it completely removes the setup and IRQ callback, which is not what I want.Basically, I want something like /* EXTI interrupt init*/ HAL_NVIC_SetPriority(EXTI0_IRQn, 0, 0); HAL_NVIC_DisableIRQ(EXTI0_IRQn); HAL_NVIC_SetPriority(EXTI3_IRQn, 0, 0); HAL_NVIC_DisableIRQ(EXTI3_IRQn);I just don't see any way to accomplish this. I suppose in my current circumstance I could initialise before the MX_GPIO_Init() function, that way I can be certain that if the external interrupt fires, my code will be ready for it.However,
The STM32CubeMX has a Clock Configuration page that can be captured in the "Generate Reports"I like to Print this page to configure clock timings and divide counters. The problem is that many of the values are very light, the ones that you can't change but are still important to read.Before Printing, I want to be able to darken the stuff that is to light to read (my eye sight isn't the greatest).I have tried to print on Tabloid size pages (11 x 17) to make them more legible but the original is a light color and a bit map, not vector fonts. I have tried loading the image into paint programs to darken the fonts colors, but they use antialiasing that results in several light colors to make the image.REQUEST for Update:Can the Fonts be actual fonts in the PDF, or a Bold be used to the "daker fonts" so the dim/ghosted fonts can be dark but not bold or something so this great tool can be more useful?
Every time I try to generate code using the latest version of CubeMX, the software freezes and remains unresponsive for hours. I have tried using previous versions, but the problem persists. How can I resolve this issue?Screenshot is attached below.Please help regarding this issue.
Hello ,, can anyone share the code for generated with cubeMX version 6.1.0 and above. ethernet with udp pinging works code . the code should able to run in keil... thanks.....
Hi there,I was working on a project that uses the STM32H7S7I8T6 and was a bit confused when I saw the pinout that is given in the IOC graphical editor or whatever it is called exactly. It seems like the pinout for the LQFP176 GFx was used instead of the non-GFx version. For example if we look at the bottom right-hand corner then we see some big differences between the packages:Specifically on the right side we see a bunch of power domain pins on the GFx version, but those aren't there on the non-GFx version:Now if we look at the online CAD model that ST provides, we see that the pin numbers and names match up with the non-GFx version:Now if we look at the pinmap for the H7S7I8Tx in the CubeIDE then we see that it supposedly uses the GFx pinout, which I think is incorrect:Of course this doesn't make a difference when programming the microcontroller, but it is a confusing to say the least.Is this something I did wrong in the CubeIDE, or is this an actual incorrect pinmap?
Hi there, I am a new at SMBus communication. I design a board. Board have STM32F103 MCU and BQ40Z80. I need to make a communication between STM32 MCU and BQ IC but I couldn't find parameter settings in CubeMX. Software is STM32CubeMX Version 6.11.1 I also attached a picture that shows there is no parameter settings for SMBus. If anyone has sample code for SMBus communication that will be helpful. Best Regards, BY
ST Community highlights – April to June 2026
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.