Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
Anyone aware of this problem and any workaround, other than manually changing the generated file? Specifically, RCC_OscInitStruct.PLL.PLLR, RCC_OscInitStruct.PLL.PLLP and RCC_OscInitStruct.PLL.PLLR are not being configured correctly, causing the first call to HAL_GetTick() inside HAL_RCC_OscConfig() to crash.
Hi Im using CubeMX version 5.10, and about to start learning the freertos . Which version comes with CubeMX? I thought it was the version from www.freertos.org , but I see withng cubeMX the drop down allows CMSIS_1 (I am using STM32L4 and F7 processors). Can anyone tell me which one it is , and also a few pointers for a beginner to the freertos?Many ThanksScott
I am using STM32CubeMX, STM32CubeIDE and val board STM32F303RE. All I wish to do is recreate the project/examples with the firmware package using CUBEMX and CUBE_IDE combo.I have been able to get the Examples to work but not as the documents explain. What I do to get the example design "TIMPWMInput" to work. I open STM32CubeIDE under CubeMX assistance, select a board and instruct the tools not to configure peripherals. This give me the project file structure.Next, I go to the folder with the STM32_FW_F3 and open the SRC/INC files within the TIMPWNInput. I simply CUT and PASTE the code right over top the code that CUBEMX created. I literally erase everything the CubeMX created. The design now works.This is not the way it should work as if I update the design via CubeMX it will overwrite everything I pasted providing I keep the items within the USER-BRACKETS which I do.I wish to create the design 100% through CubeMX to look just like the example code. This should not be that hard to do.
Using CubeMX to implement USB CDC on a self powered STM32462 with VUSB connected via PA9 via a resistor divider for automatic bus detection. I have confirmed that I have 3.3V on PA9 when VUSB connected and 0V when it's not. The USB class is CDC and works fine. I need to use PCD (charger detection) which means that I need to detect the presence of VUSB in order to invoke HAL_PCDEx_BCD_VBUSDetect().My question is what calls or setup or direct access do I use to detect VUSB as the the state of PA9. Is it availible as an EXTI interrupt or a IO status register read or a HAL function.
Circular buffer DMA is defined for an ADC.I want it to start and continue to convert forever.If I manually correct the init procedure which was generated, that works well
I use Keil MDK to Build the project.When I into debug mode and run the code the time is still at 0.
I cannot set PLL3R using STM32CubeIDE when working on a Nucleo-H743ZI2 board. Using STM32CubeMX with the same updated firmware, there's no problem selecting PLL3RAfter I create a project with STM32CubeMX selecting PLL3R and select STM32CubeIDE as the toolchain, I can then open it in STM32CubeMX and change settings for PLL3, which are reflected in the ADC clock box. But as soon as I click PLL2P, I cannot re-select PLL3R anymore.If I reopen that same *.ioc file in STM32CubeMX again, I can switch from PLL2P to PLL3R without problems. And if I save it and reopen it in STM32CubeIDE, PLL3R is properly selected and everything works. Looks like a bug to me...
..
Hi!I have a question. I know that the question is similar to https://community.st.com/s/question/0D50X0000APcm2T/stm32cubemx510-adc-dma-continuous-requests-doesnt-workBut I have heard that this bug was fixed in CubeMX 5.2.0. I'm using CubeMX 5.3.0 with Nucleo STM32F446RE board and this I want I get when I start a new project.As you see, "Disable" is only selectable option here. Why? Here is the data sheet:https://www.st.com/content/ccc/resource/technical/document/reference_manual/4d/ed/bc/89/b5/70/40/dc/DM00135183.pdf/files/DM00135183.pdf/jcr:content/translations/en.DM00135183.pdfHave a look at this picture. DMA is available.
Hi, I'd appreciate it if you could answer a few questions.I try to use HAL_CAN_Recive_IT in the HAL example, but it's not automatically set up in CUBEMX. Why? And how do I use the HAL command in TRUESTUDIO?
Today I decided to start a fresh project on my NUCLEO-F429ZI board. As I tried to select the board, I was notified that that board is obsolete, and CubeMX won't generate code for it. Soon, I found that all boards are marked obsolete! So I am pretty sure it is a bug. But that means I can't proceed with my work unless I am willing to spend time on finding and setting up the old working version - if at all it is still available for download. and then merge my code to the latest CubeMX generated code when the bug is fixed. This is a lot of extra work.There should be more stringent testing done on software before releasing it. This is not the first instance of ST's software creating trouble. I do understand presence minor bugs. But the kind of bugs I come across with ST give an impression that the software development processes are far from mature.Examples:When you make some changes in the .ioc file and regenerate the code, once in a while it says firmware not available in repository even t
Hi!I want to learn how to use registers by reading data sheet and write hex. I normally use CubeMX. But I think it's best for me to learn how it works under the hood. To learn registers, I need to look at how other people have done so I can "copy" that knowledge to me. I have done digital output and digital input projects with registers. Quite fun because you have control. Do you know an example collection I can look at?I'm using STM32F4 series.
Yesterday my cubeide is working well. But today when i want to configure project with default peripheral but all board display warning The target device 'STM32XXXX-***"is currently not supported by STM32CubeIDE according 'Obsolete' marketing status The target device 'STM32F072B-DISCO' is currently not supported by STM32CubeIDE according 'Obsolete' marketing statusi tried uninstall cubeide and install again but this problem cant fix. anyone help me fix this problem. Tks
While trying to convert your CubeMXH7 examples to cubemx for testing purpose. I came across some issues in terms of trying to synchronise the settings. I've written a comparison function to check how close I can get the cubemx generated code to the CubeMXH7 examples and found some parameters seems to be missing.```--> SYS Init Correspond to CubeMXH7 Example--> QSPI Init Correspond to CubeMXH7 Example--> SD Init Correspond to CubeMXH7 Example * hnor.Init.WaitSignal != FMC_WAIT_SIGNAL_ENABLE : (got 0x00 = 0) (exp 0x2000 = 8192) CubeMX is missing the ability to set t. * hnor.Init.ContinuousClock != FMC_CONTINUOUS_CLOCK_SYNC_ASYNC : (got 0x00 = 0) (exp 0x100000 = 1048576) CubeMX is missing t.--> NOR Init Mismatched to CubeMXH7 Example--> SDRAM Init Correspond to CubeMXH7 Example--> SRAM Init Correspond to CubeMXH7 Example--> ETH Init Correspond to CubeMXH7 Example * hpcd.Init.dev_endpoints != 8 : (got 0x09 = 9) (exp 0x08 = 8) CubeMX is missing the abilit
This is my clock configuration. This is setting for TIM1, htim1.Instance = TIM1; htim1.Init.Prescaler = 7999; htim1.Init.CounterMode = TIM_COUNTERMODE_UP; htim1.Init.Period = 1999; htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim1.Init.RepetitionCounter = 0; htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_Base_Init(&htim1) != HAL_OK) { Error_Handler(); } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; if (HAL_TIM_ConfigClockSource(&htim1, &sClockSourceConfig) != HAL_OK) { Error_Handler(); } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; sMasterConfig.MasterOutputTrigger2 = TIM_TRGO2_RESET; sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK) { Error_Handler(); }This is how I'm measuring the time for function, TIM1 -> CR1 |= TIM_CR1_CEN; status = RSA_Encrypt(&PubKey_st, Message, sizeof(Message), output); s
When core_cm0plus.h and stm32g0xx_hal_cortex.h are included, IAR Embedded Workbench for ARM 8.40.1 generates a sequence of errors beginning with those shown below. I haven't found another definition for IRQn yet. See attachment for entire Build Window. Any ideas on the cause of these errors?Error[Pe151]: a typedef name may not be redeclared as a parameter C:\Software\NextGen McLaren Working Folder\HandleSafety\SafetyCPU\Drivers\CMSIS\Include\core_cm0plus.h 848 Error[Pe018]: expected a ")" C:\Software\NextGen McLaren Working Folder\HandleSafety\SafetyCPU\Drivers\CMSIS\Include\core_cm0plus.h 848 Error[Pe109]: expression preceding parentheses of apparent call must have (pointer-to-) function type C:\Software\NextGen McLaren Working Folder\HandleSafety\SafetyCPU\Drivers\CMSIS\Include\core_cm0plus.h 852
Hello, I have a feature request relating to ethernet for CubeMX.We have a PHY that is configured via SPI instead of MDIO but CubeMX insists on configuring the MDIO and MDC pins even when they're not required. We have to manually write code to undo this assignment and use the pins for another function instead. A checkbox like the "Activate Rx Err signal" but for MDIO would be nice.
Hi I've configured a STM32F767II with CUBEMX and generated an Atollic TrueSTUDIO Project. PA0 is configured as external interuppt in IT_RISING Mode. The problem is that this EXTI triggers also at falling edges. Other EXTI pins were configured the same way and are working how excpected. Is there a bug in the STM32F7 HAL library for PA0?RegardsDejan
Using the sample application from STM32Cube_FW_F4_V1.24.0\Projects\STM324xG_EVAL\Applications\FatFs\FatFs_uSD_RTOS\SW4STM32 and opening with TrueStudio compiles and works.I'm unable to import the above project to STM32CubeIDE, but that's in the release notes.However, using CubeMX 5.x or STM32CubeIDE to create a simple SDIO + FatFS + FreeRTOS doesn't work, will not write to the SD card. Remove FreeRTOS and undo the DMA changes and it will work.What needs to be made available is an IOC file for all devices like the examples already offered in the CUBE F4 library.Using previous SPL examples from 5 years ago also work.The device I'm currently struggling with is an STM32F407/417, currently in a product with NO-OS but working fine and logging to SD card.The STM32CubeIDE looks promising, but need to be able to create working code.Edit 4th June 2019: Just added a basic project generated by CubeIDE that demonstrates that CubeIDE is unable to create a work
I'm working with the STM32F429ZI (Nucleo) board. STM32CubeMX v5.3.0, generating code for IAR Workbench.I've set a static IP address, and otherwise kept default settings.I've created a basic CubeMX project with just LWIP enabled and unable to ping the board.In the main function call part of code generated calls function MX_LWIP_Init() and in while(1) MX_LWIP_Process() - don't see any error or timeout ,just keeps polling in while loop. ( I could see the ethernet led's ON after passing through initialization phase)Also when i tried the HTTP server(netconn) example with FreeRTOS was able to get the application working.Could anyone suggest what I am missing in my test setup ?
Hi! I'm trying to program a STM32F031C6 with CubeIDE. The CubeMX tool puts out a Project that is c native. Since I wrote my program in C++, i'd like to Change it into a c++ Project. Doing this manually is very error prone. Is there an Option that I missed?Yours timtim
I have wasted so much time over the last day or so trying to generate code for a new project in CUBE MXI can't go back to version 4 that use to work ok, because it's been generated in crappy version 5 !ST you really need to sort your Act Out!!! THIS IS BEYOND POOR, who the hell is writing this crap development software for ST ??? this software is so crap it's unreal, how are professional embedded designer supposed to work with this total garbageit just locks up when trying to generate the project code WTF ?any help will be appreciated , but don't seem to get any of that either ?thanksI have included the cube ioc project file that crashes ???Can't seem to find any error log files anywhere giving me a clue to what's going wrong with this softwarehow can it be that, I have an important project to do, yet due to this poor software I wasting more time trying to work out the bugs and what''s wrong with this software ??there are No error messages, No logs ?? just a frozen program , really poo
OKso we know CUBE MX software is total rubbish as it just locks up when generating what should be my project code,WHERE IS THE SUPPORT FROM ST ??Is This It ? do i give up now or can we actually speak directly with the CUBE MX TEAM of software designers ?well, they should be jumping hoops to speak with me, wanting to get to the bottom of there embracing software bugs what is the next stage in trying to get this resolved, ??????????????does any one at ST care? that design engineers like me just waste hours of our life with this buggy rubbish CUBE MX 5 software ???WHERE IS THE SUPPORT FROM ST SOFTWARE DEPARTMENT1) Apologising for their buggy software,2) Asking me to send them my files so they can rectify their bugs3) Asking me for a detailed analysis of where their software goes wrong etc.COME ON ST..... let get some action going and get this poor quality buggy software repaired, so we can get on developing with ST parts, I have never been so frustrated, I use to develop with MicroChip, .
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.