Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
Missing pre-processor symbol check in file "Middlewares/ST/ST_Cryptolib/Inc/Commonn/types.h"current line 49:#if !defined(_STDINT_H) && !defined(__stdint_h) && !defined(_STDINT) new line 49:#if !defined(_STDINT_H) && !defined(__stdint_h) && !defined(_STDINT) && !defined(_GCC_STDINT_H)To solve this bug add ``&& !defined(_GCC_STDINT_H)`` on line 49. Cheers,Andreas
Hi, I have configured My RTC with LSE of 32.768Khz for STM32G0B1CETxAnd In NVIC Setting RTC & TAMP interrupts are enabled..All these are done using Cube MxAfter HAL_RTC_Init() call from main; RTC_TAMP_IRQHandler is getting called continuously. Time and alarm is configured after HAL_RTC_Init(). which is not even called.Any inputs could be helpful.Thank youSuraj Prem
hi everyone, i got a problem when i use MX generate code and open folder,i try to reinstall and didn't solve。it shows not responsible
Hi, we are working on an open-source library OS in Rust for embedded architectures, result of a collaboration between the French research institution INRIA and the Freie Universität Berlin, called Ariel OS. Our OS currently supports a variety of STM32 MCUs and we expect the list to grow with time.To streamline user experience, we would like to provide some ways of automatically generating the clock configuration for the STM32 MCUs. We are envisioning a utility where users simply ask for specific frequency ranges for specific clocks and this utility would figure out the correct dividers/multipliers/multiplexers to use to comply with the users requirements.To achieve this, we would need to be able to recreate the entire clock tree logic. As far as I understand, CubeMX recreates the clock tree in software and is able to calculate frequencies based on the chosen/defaults values of the clock parameters for any MCU using some kind of configuration file. For our project we would need to
Hi, I am using the Nucleo-H7A3ZI-Q Board and was trying to use the DMA to transmit SPI frames. Only creating simple SPI TX Circular DMA request works when generating the code from STM32CubeIDE 1.12.1 (with STM32CubeMX 6.8.1). I get two linker scripts STM32H7A3ZITXQ_FLASH.ld and STM32H7A3ZITXQ_RAM.ld. In the STM32H7A3ZITXQ_FLASH.ld, I get this memory sectionMEMORY { ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 2048K DTCMRAM1 (xrw) : ORIGIN = 0x20000000, LENGTH = 64K DTCMRAM2 (xrw) : ORIGIN = 0x20010000, LENGTH = 64K RAM (xrw) : ORIGIN = 0x24000000, LENGTH = 1024K RAM_CD (xrw) : ORIGIN = 0x30000000, LENGTH = 128K RAM_SRD (xrw) : ORIGIN = 0x38000000, LENGTH = 32K }When I was generating the code from STM32CubeMX (alone) to generate code with the "toolchain/IDE" option set to Makefile, the same code does not work. Diff reveals no difference in Core/ and Drivers/ folders (Firmware version are the same in IDE and MX : STM32Cube
Hi,After STM32CubeMX update to the 6.15.0 version, the HAL_DMA_ConfigChannelAttributes() calls get removed in the generated FSBL and Appli (secure) code while no changes in the *.ioc file have been made.Could you please elaborate on the behavior and consequences?
Hello, what do I wrong? I am trying to setup a new stm32f7xx project, with CMSIS_V2 and LWIP.I use only the CubeMX application at the version 6.15.0, I have tried several hours to get this setting but nothing working.If I select CMSIS_V1 the LWIP use the RTOS (WITH_RTOS is Enabled), if a switch to CMSIS_V2 it is disabled.All settings are CubeMX default. CubeMX says CMSIS_V2 is working with F7. Is this a bug at the CubeMX? Or what do I wrong? thanks a lot.
Recently I'm trying to setup CLion and STM32CubeMX as I want to switch to a new IDE (By the way, the fact that STM32CubeIDE still doesn't have features like auto-triggered content asist, and that its poor, buggy GUI has bad compatibility with high DPI screen are just annoying). However, when I successfully generate the project in CubeMX and open it in CLion, CLion refuses to compile the project no matter what. I tried the bundled MinGW, CubeCLT1.18 and the older 1.16, and also CLion 2025.1, 2025.1.2, 2025.1.3. All didn't work. Up till this point I've been using CubeMX 6.15, and so I tried to install and use the older version (6.14.0). Everything suddenly works then. The project compiles without problem. Therefore, I suspect that there are some problems in the newest release of CubeMX (6.15) that are generating faulty CMake files.Here are some screenshots of what happened. I used the same version of CLion and CubeCLT in the same configuration on two projects generated by CubeMX6.15 and
16bit SDRAM with 4 banks, 9bit column address, 13bit row should show as 32MB memory area,but it is shown as 16MB.You have to change column address bits to 10bit and back to 9 bits to set the value correctly (32MB).It is dangerous beacause code generated with wrong 16MB area generate exception, if more memory have been used.
When I try to log in to my ST account in STM32CubeMX, it sends me an error message that says, 'This feature requires an internet connection.' However, my internet connection is working well, and I can use other browsers to surf the internet normally. How can I solve this problem?
When I assign pinouts for LED1 and LED3 on the NUCLEO-H753ZI in STM32CubeMX with the BSP selected, they are no longer assigned when the project is reloaded.
When I use cubeide, it is OK to select c++ as targeted language. However, I can not find such a option in cubemx. Does cubemx support to generate c++ project with cmake? If not, could it be supported in the future?
Hello,I'm working with the Nucleo-H7S3L8 board in a macOS development environment, and so far, the experience has been quite frustrating. The documentation is inconsistent, scattered across multiple sources, and often inaccurate. This has made development more difficult than it should be.For context:I’ve previously worked with the Nucleo-F401RE, and the development experience was significantly smoother — configuration was straightforward, and documentation was far more coherent.Here's the issue I'm currently facing:I imported the Template_XIP project into STM32CubeIDE. The project compiled, uploaded to the board successfully, and I was able to debug without any issues. However, after attempting to enable SPI1 using both STM32CubeIDE and STM32CubeMX, and generating code based on those settings, I encountered the following build error in the Template_XIP_Appli project: /Users/xxxxxx/STM32Cube/Repository/STM32Cube_FW_H7RS_V1.2.0/Projects/NUCLEO-H7S3L8/Templates/Template_XIP/Appli/Src
HiI'm working on a firmware based on a STM32WL libraries example, specifically LoraWan_End_Node for WL55JC.The example sends data every 10s but also performs several operations using leds and timer. I need to remove some parts of this original code and sometimes write outside the USER_CODE_BEGIN/END sections.The problem is, when I use CubeMX it will restore the original code where I changed it. Is there any way to prevent this restoring? And at the same time be able to use the CubeMX.Thanks
I just updated CubeMX to 6.15.0 and I can't start a new project anymore.The spinning wheel keeps sinning forever after going File/New Project or clicking on any on the shortcuts on the right side of the screen under "I need to:" section.I tried to refresh data, use auto-refresh under connection and updates, etc. Nothing works.I'm on Windows 11 Home, Version 24H2.Older projects still work after conversion, I can still open older .ioc projects, but the dialog is asking me to migrate the project and I don't want to do that in case I need to downgrade the CubeMX application.Is there a way to downgrade to a pervious version?Thank you!
void MX_WWDG_Init(void){/* USER CODE BEGIN WWDG_Init 0 *//* USER CODE END WWDG_Init 0 *//* Peripheral clock enable */LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_WWDG);/* USER CODE BEGIN WWDG_Init 1 *//* USER CODE END WWDG_Init 1 */LL_WWDG_SetCounter(WWDG, 64);LL_WWDG_Enable(WWDG);LL_WWDG_SetPrescaler(WWDG, LL_WWDG_PRESCALER_1);LL_WWDG_SetWindow(WWDG, 64);/* USER CODE BEGIN WWDG_Init 2 *//* USER CODE END WWDG_Init 2 */} void MX_IWDG_Init(void){/* USER CODE BEGIN IWDG_Init 0 *//* USER CODE END IWDG_Init 0 *//* USER CODE BEGIN IWDG_Init 1 *//* USER CODE END IWDG_Init 1 */LL_IWDG_Enable(IWDG);LL_IWDG_EnableWriteAccess(IWDG);LL_IWDG_SetPrescaler(IWDG, LL_IWDG_PRESCALER_4);LL_IWDG_SetReloadCounter(IWDG, 4095);while (LL_IWDG_IsReady(IWDG) != 1){}LL_IWDG_ReloadCounter(IWDG);/* USER CODE BEGIN IWDG_Init 2 *//* USER CODE END IWDG_Init 2 */}int main(void){LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_SYSCFG);LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);NVIC_SetPriorityGrouping(NVIC_PRIO
stm32h7r/s in appli context.Enable FreeRTOS.Timebase Source is TIM6.TIM6_IRQHandler is empty. void TIM6_IRQHandler(void){/* USER CODE BEGIN TIM6_IRQn 0 *//* USER CODE END TIM6_IRQn 0 *//* USER CODE BEGIN TIM6_IRQn 1 *//* USER CODE END TIM6_IRQn 1 */}
hi i use STM32cubeMX to generate project files in STM32cubeIDE, and hope use some bsp function(like BSP_XSPI_NOR_Init) in this project, but no matter how i try, i can not find any bsp function in it.who knows to solve this problem?(Now I have to manually handle this issue by copy this function from other .c,and this method is very inconvenient )thanks!!!
Hi allThis is shiva actually am trying to read the MT25QL512ABB flash ID details using QSPI on STM32H750XB-DK but am getting as three bytes as 0xDD in Quad mode but in single line mode am reding zero am not able to read correct details of flash ID can you please give me solution for it.Thank you,regards ,shiva chary
Hi,I am completely new to the st family of microcontrollers and an amateur.Before I had my setup running with an esp32 but I just missed the performance I need so I switched. I tried to configure within cubemx and import into platformio for furher developmentI want to connect three audiodevices using i2s (2 receive, 1 send) with the stm generating the necessary clocks for it and I am really struggleing to do so. I want to run 48 kHz and was wondering if you have any ideas how to set it up properly. Thanks for helping
Hello, From the UM2408 document, the HSE is connected to ST-Link MCO output which is supposed to be 8MHz.When you select Nucleo-H755ZI-Q board, the HSE input is locked to 25MHz. Is it a CubeMX bug or does the MCO clock really 25MHz ?
Hii working on stm32u083rctx with U0 fw package v1.3.0 and CubeMX 6.15. On CubeMX i initialized lpuart3 in half-duplex mode on PC4 pin. I notice that PC4 is only possible to set as open-drain. I want to select PC4 as push-pull. In function:void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)if i change PC4 init line form:GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; to:GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;my code is working. I don't known if it is correct configure push-pull when lpuart3 is in half-duplex mode. So i ask if it's safe to do that. Thank you.Best regards.Enrico
hi, cube ide updated with latest version 1.19.0 have bug as below picture . By default quad spi is disabled and i could able to select quad spi in older version cube mx by using old project and continue with old cube mx version not migrate .
Hello!We have recently updated our STM32CubeIDE to a newer version (1.19.0, from 1.18.0) and we have encountered an issue when using CubeMX. Whenever we launch the code generation some code sections in the file 'app_freertos.c' get duplicated. For example:/* Definitions for defaultTask */ osThreadId_t defaultTaskHandle; const osThreadAttr_t defaultTask_attributes = { .name = "defaultTask", .priority = (osPriority_t) osPriorityNormal, .stack_size = 1024 * 4 }; /* Definitions for i2c_Task */ osThreadId_t i2c_TaskHandle; const osThreadAttr_t i2c_Task_attributes = { .name = "i2c_Task", .priority = (osPriority_t) osPriorityAboveNormal, .stack_size = 512 * 4 };will become:/* Definitions for defaultTask */ osThreadId_t defaultTaskHandle; const osThreadAttr_t defaultTask_attributes = { .name = "defaultTask", .priority = (osPriority_t) osPriorityNormal, .stack_size = 1024 * 4 }; /* Definitions for i2c_Task */ osThreadId_t i2c_TaskHandle; const osThreadAttr_t i2c_Task_attributes = { .n
Hi, When I moved the default pin assignment to the alternative, in this it is PA15, as the below picture shows PA15 now sports a "pin" icon. What is the significance of this please? Edited by ST Moderator to add the right label.
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.