Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
Versions:STM32CubeMX 6.12.0FreeRTOS X-Cube-FREERTOS 1.1.10 (FreeRTOS Kernel 10.5.1)STM32U5 MCU Package 1.6.0Although STM32CubeMX now has support for FreeRTOS, it does not appear to recognise the FreeRTOS support (https://www.freertos.org/Security/04-FreeRTOS-MPU-memory-protection-unit) for the Cortex-M33 MPU: It also does not include mpu_wrappers.c, which means I cannot enable configENABLE_MPU in FreeRTOSConfig.h manually without also copying this from the canonical FreeRTOS kernel release.I have, in fact, manually imported mpu_wrappers.c and turned on configENABLE_MPU. Everything appears to work quite nicely.Why is this option not supported?What, if any, dragons have I unearthed by turning it on?If the there are no dragons, then clearly this is an oversight and should be included in later releases. It adds a frustrating extra step to upgrading FreeRTOS versions with CubeMX.
Is there an IOC file available for the LwIP_HTTP_Server_Netconn_RTOS Example project? I am working with the Nucleo-144 with the STM32F439ZI. Although the example project is for the 429, it works on this board. I want to be able to use CubeMX to add more middleware to the project.Mike.
Hi, @Amel NASRI By the way, RCC clock auto configuration is also wrong. but result showing: which will mess up UART baud rate ( I have to chage UART clock source to HSI to get correct UART output, the old is PCLK1), same issue as the post you linked. CubeMX 6.13.0 and MCU Package H7 v1.12.0 produce i... - STMicroelectronics Community These issues are fundamental, need to be resloved with high priority. Peter
I want to synchronize two SAI interfaces together, but I can not select the "Synchrounous slave" option unless I enable master block in the same SAI. I Have Master enabled in the other SAI and "External Synchro out" as well. When I enable Master in the same SAI, I can even select other SAI as the Sync input. It seems like a bug, but maybe I'm missing something. Im using CubeMX 6.12.0 and STM32H563ZIT6. Thanks
I installed the latest CubeIDE hosted on a Mac to demo a NUCLEO-H755 board over USB. Starting from a clean CubeMX code generation, I've managed to successfully create a basic application to blink the user LEDs and use the pushbutton (along with basic use of the debugger), but I would like to be able to configure the Virtual COM Port (VCP) to use as a debugging tool before proceeding to the next step of getting the Ethernet working. Unfortunately, I have not been able to figure out how to get the VCP to work. In CubeMX, I have USART3 selected as the VCP with the correct pins per the schematic, but for some reason the only available selection is "disabled". I suspect this might be because the NUCLEO board support package (bsp) is somehow controlling configuration of the VCP and not allowing changes from CubeMX. Here are my questions:1) Does the NUCLEO bsp automatically configure the VCP, or is there some other way to configure?2) Do the VCP (over
from one moment to another the "device configuration tool" stopped working, it no longer shows anything when opening the .ioc file, the strangest thing is that it stopped doing it on all my computers almost simultaneously, and without even having updated the IDE or something .
Hi,I want to add support for the "Opus" audio codec to my STM32H7 product. I found that ST has already developed middleware for Opus called "X-CUBE-OPUS." I expected to find it in STM32CubeMX under "Pinout & Configuration" -> "Software Packs" -> "Manage Software Pack" -> STMicroelectronics. However, I couldn't find the package there. Instead, I downloaded the package from the ST site (https://www.st.com/en/embedded-software/x-cube-opus.html#overview) and tried to add it using the "From Local" button, but I encountered an error.How should I add the middleware to my existing project? I don't need an explanation project; I just want to add the middleware to my current project.Thanks for the help.
Hi,I am trying to find a solution to support different build configurations for the same MCU but different revision of PCB builds. PCB revisions could happen because of reassignment of pins and peripherals. I am using standalone version of CubeMX to generate code. So, I will end up with two different .ioc files for each revision and when I generate code, 2 separate project files are generated.Is there a way to have a single project, but 2 different build configurations for each ioc file? Looks like CubeMX doesn't support this, but are there any tricks as a workaround ?
I'm trying to set up a MPU region to block out DCACHE from my SDMMC1 peripheral but I notice whenever a region is activiated in CubeMX, the "region start" field will not let me type any hex value in. Some red text below says that region start must ALWAYS be 0x0. So my quesitons are: 1) If region start must always be 0x0, WHY is it a text field that I can enter something into?2) Why must a region always start at 0x0? The region I want to block out from the DCACHE does not start at 0x0... I looked at some config documents for other chips (the example was an F7 i believe), and the MPU config allowed typing any hex value into the region start. I'm wondering if there's a bug here? Or maybe I just don't understand the H5 MPU enough.
I saw a short thread from 2020 that mentioned this and solved the problem by increasing the specified stack size from 350 to 512. At the time, there was no discussion of why the auto-generated stack is too small in the first place; and I have seen no follow-on/alternate discussions (or, at least, ones I can find).FWIW, I have a theory and a suggestion for improvement...We have two builds with identical CubeMX configurations, one of which works fine and one of which breaks in that specific way -- we must increase the stack size from 350 to something bigger (we use 512).As near as we can tell the difference between the two is that one (the one that works) is built as a 'C' project using the 'C' compiler; and the other (the one that breaks) is built as a 'C++' project using the 'C++' compiler (but with no actual C++ source files in the simplified test build -- they both use exactly the same source code and .ioc template).My theory -- and it is only a theory -- is that the 'C++
Hi,I am trying to configure the AES accelerator on STM32H523 MCU. But I couldn't find an option to configure AES engine in CubeMX. I have double checked Reference manual and I found the AES engine in the MCU ref manual. I looked at the ST HAL and the AES is defined under CRYPTO module. The only modules available under Security areRNG, PKA, HASH, and of course the Global Trust Zone GTZC. My CubeMX version is 6.13.0
Does ST publish a roadmap of features/enhancements for CubeIDE? I'd really like to know what is planned for STM32CubeIDE for the dual core H7 chips. For example, in Project Manager->Project, there is a setting "Dual Core Boot Mode", but it is greyed out. When will this be available? I'd like my CM4 to do boot initialization (for example of the RCC) rather than the CM7, but it seems this is not possible to generate out of CubeIDE right now.
Using STM32H533RE and successfully got SPI1 doing DMA transfers with HAL_SPI_Transmit_DMA() one shot at a time. As soon as I select Circular transfer and re-gen, the above function fails because a bunch of fields in my DMA_HandleType for that DMA channel are left at 0. I get a bunch of NEW inits for the DMA_NodeConfTypeDef. I decided to cut and paste the handful of items from the old HAL_SPI_MspInit() when in non-circular mode, and paste them into the circular config re-generated HAL_SPI_MspInit() and voila DMA SPI in circular mode works fine. Is this a cube MX bug? Or am I missing something? See attached screenshots
I just started a new project with FreeRTOS on the board.When generating code via MX, there is a message about Systick configuration issue.The problem is, I cannot change the configuration about SYS and TIM.What can be the issue? What do I have to change in config?
System versions macos 15.1.1 stm32cubemx 6.13, stm32cubeide1.17. When I generate code using cubemx and select stm32cubeide in the toolchain, an Eclipse prompt box will pop up, indicating that The Eclipse executable launcher was unable to locate its companion shared library, I have replaced several recent versions of stm32cubemx, but the problem still exists. Have you encountered similar situations? Can you provide a solution? I'm almost going crazy with my Mac
Can someone please explain to me how this is even possible on the same device? They are the exact same device yet I can not seem to get the same pin config in different projects.The one project somehow got the PIN Layout where PB6(SCL) and PB7(SDA) is the I2C1 BUT on the other exact same device the I2C1 operates on PB8(SCL) PB7(SDA)?When I run the I2C1 on the PB8(SCL) PB7(SDA) config it works fine.When I run the I2C1 on the PB6(SCL) and PB7(SDA) config it does not work.When I try and reconfig my PB6(SCL) and PB7(SDA) to be PB8(SCL) PB7(SDA) then I can not set PIN8 on the AF register....
There are error displays (red markings) in the following cases:STM32Cube_FW_H7_V1.12.1STM32H743VIT6SYSCLK <= 240MHz (actually, for any frequencies from 225.5 to 240MHz)HPRE Prescaller = 1 There are no errors in cases where HPRE >= 2, for example, for SYSCLK = 480MHz.Please see the screenshot
STM32CubeMx can't establish a connection when I run "Check Connection" under connection parameters.What ports do I need to have enable for the STM32CubeMx to be able to connect to the update server?
All my apps LWIP/RTOS based bugged after STM32CubeMX migration to 6.13 (from 12.1).Went back to 12.1 to solve the issue.
Hello,I get error messages in Cube MX trying to configure the ADC in STM32U031F6Px to Not Fully Configurable.To reproduce:Start a new project, choose STM32U031F6P6 as MCUGo to ADC, check any channel (e.g. temperature)Change sequencer to "sequencer set to not fully configurable"The steps create error marks identical to this post (assigned ticket numbers 186012 and 186009 and should be fixed in CubeMX v6.13.0). Its also described in this post, linking to the first and saying it should be solved in v6.12.1.The error messages do not appear if I use the same procedure for e.g. STM32G031F6P6 or STM32C031F6P6. Can you confirm this is a bug in CubeMX, or do I have to configure something more to use the ADC in not fully configurable? If it is a bug, is it safe to generate code with the error flags in CubeMX present? I use stm32CubeMX v6.13.0 and v1.2.0 of "STM32Cube MCU Package for STM32U0 Series". Running windows 10 if that's interesting. Best regards Edit: I also can't see
Hello, I recently upgraded my CubeMX to V6.12.1 from V6.6.1. All of a sudden, I have realised that when I generate code from the updated CubeMX, it removes my Post build command line from my IAR EWARM project. Is there a new setting or such that I am missing that does not do that? Or is it a CubeMX problem? I thank you in advance!Makarand
Hello! I'm new to the Cube IDE and i want to work with the Chinese board DevEbox with STM32H743VIT6 on it. Before i worked with Arduino Framework where i tested the sd card, ethernet and other basic functions. I wonder, if it and how it possible to use the same DevEbox in Cube IDE as IOC file for example. Should i configure it all by myself or maybe someone has already made and shared it? I would be grateful for any solution.STM32H7 Series
I have intermittent problems in STM32CubeIDE 1.8.0 opening a .ioc file. When I double click on the file in the Project Explorer, I get a progress bar titled "Loading IOC". When things are working well, as soon as that bar fills up, it is replaced with a progress bar titled "Completing IOC Load"; and when that fills up, the configuration screen is dsplayed.Sometimes the IDE gets into a state where the first progress bar will fill up, but the second one never appears. Instead, the window hangs--I get a spinning cursor, and the Windows message "not responding". This lasts forever. If I force quit the IDE and retry, many times, eventually it starts working again.How can I keep this from happening, and if it does happen, how can I reliably and quickly recover?
Hi,I have updated IDE and MX, and found that the usart buad rate setting is wrong: setting 115200, but actually baud rate is 57600 (half setting). Is it new ST firmware error or not? I am not sure that the other clock settings is right. Please help to check. Thanks.here is the attached is my usart_test, software.
Hi,I have tried to load a Project (.ioc file) build with CubeIDE 1.15.0 in the newly released CubeIDE1.16.0 (with CubeMX 6.12.0).This give me an error on ADC1:1) I can't select Vbat as ADC source (as working on CubeMX 6.11.0)2) I get a warning about ADC_Regulare_ConversationModeThe attached picture shows to the left the 1.16.0 and to right the 1.15.0 versionIs this a known problem with the CubeMX 6.12.0?
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.