Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
Hello,I have been working in a project with the mentioned MCU and by now i have been working it with SMPS_SUPPLY and VOS3 to work at 100Mhz Both CM7 and CM4.By now days i need to boost it up to 400Mhz and 200Mhz, so i need to change from VOS3 to VOS1 but it is not available in my CUBEMx version 6.8.0 for all types of Supply i only have VOS3 and VOS2.Not only that issue, if i for example try to use VOS2, i get stuck at:while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {} but when changing back to VOS3, it works fine.I tryed VOS2 to change from 100Mhz to 150Mhz in both, but got the mentioned issue.I found this thread: STM32H747 freezes waiting for VOSRDY - STMicroelectronics CommunityWhere some ppl said that is possible to not use this, but it feels strange...Also found this one: STM32CubeMX 6.8.1 and STM32CubeIDE 1.12.1 released - STMicroelectronics Communitywhere it is fixed an issue with the version of Mx and IDE i am working with, but not for H7 Series But F7 serie. Probably
I've created a project in the STM32CubeIDE environment, using the STM32CubeMX integrated configurator (STM32CubeIDE Version: 1.0.2, STM32CubeMX Version: 5.3.0).I have added in project configuration a prebuild step that calls bat file that collect some information from the source control management tool, and put them in some #define in an include file, and a post build step that calls an other bat file to rework the just created binary file.At this point, if I change something in the CubeMX (just an IO config is enought, for example) and I regenerate the code, the pre build and post build settings are deleted.This is a very annoying beheviour, because it doesn't allow to automate the workflow. Are there any workarounds to bypass this beheviour?thank youPaoloP.S. I've realized just now that exist an other post for the same issue for stand alone version of CubeMX and ATOLLIC TrueStudio here: https://community.st.com/s/question/0D50X0000A4mi6iSQA/stm32cube-v50-overwrites-postbuild-steps-wh
Hi! I have built a project in CubeMX for STM32U5A9ZJTxQ and generated the code for Keil uVision5.When rejecting the generated project, Keil does not find the pack with the desired device, offers to manually select the device and gives an error:Error #550: Requested device STM32U5A9ZJTx(STMicroelectronics) not found for target 'U5A9_LTDC' I can select STM32U5A9ZJTxQ myself. However, this has to be done after each code generation, which takes a lot of time.
I've been having problems with the CubeMX interface for quite some time now, starting 1-2 years before Windows 11 was released.The problem with the interface can appear both after 10-15 minutes of working in CubeMX and immediately after starting the program.I always use the latest versions of CubeMX.The problem remained after:- updating CubeMX;- reinstalling CubeMX;- updating Java SE JDK 16 to Java SE JDK 20;- Updating Windows 10 to the current Windows 11- Changes to video cards gt250 -> rx450 -> gtx960
Is there any explanation to how to use production DevEUI, JoinEUI, AppKey and NetwKey, rather than the hardcoded se-identity.h?I have searched all over, application notes, youtube and even studied examples and the actual code, but unable to find out how it is intended to be put together.I tried to populate the LoRaMacNvmData_t passed in OnRestoreContextRequest in lora_app.c, but it is some "BackupContexts" being passed, that seems to be ignored (for this purpose).Am I expected to rely on FLASH_IF_Read(nvm, LORAWAN_NVM_BASE_ADDRESS, nvm_size);and flash from an external computer, rather than generate it internal to the MCU and report it to external system during test/calibration?
is there an example or steps for exporting a makefile script in CubeIDE?
It is impossible to download the latest STM32Cube MCU Package for STM32L4 series (1.18.0). https://www.st.com/en/embedded-software/stm32cubel4.htmlI enter my user name and password but the download never starts. I downloaded the latest STM32CubeMX an it downloaded fine.Please fix this.
The otherwise excellent STM32CubeMX tool has a bug in its Configuration Report output (reached via the File > Generate Report command). In the Peripherals and Middlewares Configuration section of the report, the left and right columns of the output are reversed or (more likely) line-wrapped.See attached screen shot for an example -- this continues for many pages.I could not find a better way to report this, so could the developer of this STM32CubeMX tool please to look into this issue, because it makes the report output very awkward to interpret.Note that the STM32CubeIDE suffers from the same problem; it probably uses the same report generator.Thanks in advance on behalf of all your customers.-- David Adams
Hello Community, Since the latest release, we faced issue with lost files and folder in Keil workspace after code regeneration. Temporary solution: Generate the code as usual Go under the MDK-ARM folder under the project repository and add an empty file named "project.uvmpw" The added folders and files in Keil will be kept when regenerating code. Permanente solution: A permanent solution will be implemented in a patch release (CubeMX 6.9.1) which will be released in the near future.
In document programmin manual, PM0253, SHPR1-3 registers allow to set priority for following handlers:but Debug monitor writes to reserved field PRI_12:The same ambigious is in Cortex M4 and perhaps in all
Hello,I have update a CubeMX project from V6.6.1 to V6.7.0.After update, without any changes, the clock configuration has a lot of errors. The CPU has a maximum clock rate from 480MHz, but the new CubeMX V6.7.0 allow only 200MHz!?!The Error:"D1CPRE Clock frequency must by <= 200MHz"Attachment: The Clock configuration and a lot of red fields.Please fix this problem and help me what is going wrong. Thank you very much.
I'm currently having trouble adding BSPs my project using the STM32F769I-DISCO. After generating the code using STM32CUBEMX/IDE, I then downloaded the BSP file and copied and pasted it into the Drivers folders. I then manually added all the necessary folders into the "Paths and Symbols", but for some reason it keeps returning a build error. Could anyone point out what I'm doing wrong? Thank you for your time and help!Photo showing the project structure: Photo showing "includes":
Hey all, I am attempting to use the CubeMX to enable and generate code for the WolfSSL middleware. When I do, it seems to not generate all the files. One that is missing for example is evp.c. However, it seems that none of the .C files are generated, just the header files. What setting am I not choosing?I downloaded the source from https://www.wolfssl.com/ and saw that there are many files missing from the code generation from CubeMX. What do I need to change?For reference, I am developing on a STM32L476 using the Nucleo-64 development board.My compiler is GCC-ARM-NONE-EABI and I am using VSCODE and CMAKE. None of that really matters at this point, I am just wondering why the C files are not generated.
Saw issue in another thread about CubeIDE 1.13.1 unable to generate code from F7 1.17.1 (https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-v1-31-1-error-when-using-1-17-1-fw-patch/td-p/588887).Interestingly, CubeMX v6.9.1 (Windows) won't even acknowledge that CubeF7 1.17.1 exists. It will show 1.17.0 as installed. If I then manually install the patch (this PC has no internet access), CubeMX then says 1.17.0 is NOT installed and doesn't even show a place holder for 1.17.1.CubeMX 6.9.1 downloaded on 29 Aug 2023, zip file 560,642,010 bytes.
I'm working on a project in speed control of a pmsm and i am using ADC1 and 7 channels of the ADC to sample 7 different inputs. The ADC gets triggered from TIM2 and i'm doing the conversions every time i get a callback. At first the adc works fine with the V/F control scheme, but when i switch to the closed loop control adc starts mixing up the sampled values though the sevens channels. The callback code is the following: void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc){ HAL_ADC_Start_DMA(&hadc1,(uint32_t*)adc_value,7); Ia= I_coef*adc_value[1]- I_const; Ib = I_coef*adc_value[0]- I_const; Ic= I_coef*adc_value[2]- I_const; ha= Hall_Binary_Conversion(adc_value[3]); hb= Hall_Binary_Conversion(adc_value[4]); hc= Hall_Binary_Conversion(adc_value[5]); Vdc = 5.5*V_coef*adc_value[6]; wmeas =Speed_calculation(ha, hb, hc, Ts);th = Angle_calcu
Dear Members,I am using STM32L4P5VGT, STM32CubeMX 6.9.1, and STM32Cube_FW_L4_V1.18.0.In our board, we are using external ADC(16 bits with 8 CH, SAR, and simultaneously S/H. ADC sampling rate starts from 2K to 16K. In our use case, there will be multiple such boards in the field at different locations, and sampling of all these ADC should be in sync as much as possible. For this purpose, onboard GPS PPS output is used to realign the Sampling PWM output of the MCU which is the trigger of ADC start, if it drifts at every second. The MCU is also using TXCO with very low ppm. It is also expected that if the PPS pulse is missing due to weather conditions, PWM output should continue without sync till the GPS recovers.The scheme used as follows and it is working fine as per requirement:1. The TIM2, CH2 is used as PPS input (ICP direct mode), and2. The TIM2, CH1 is used ADC Start Conversion input (PWM Generation CH1 mode)3. TIM2 timer used, Slave with Reset Mode, Trigger Source TI2FP2, Clock so
I encountered a problem with building project from STM32CubeMX v6.9.1 with generated Makefile and CMSIS_V2 enabled. Starting build by 'make' returns an error 1 for /main.o "Can not find specified file". On the other hand, when using CMSIS_V1 everything is building without errors.Is it something with CubeMX or CMSIS_V2 need some extra configuration, when using makefile from Cube? I am using GNU Make 3.81 for Windows and tried build it with two version of GNU Arm Compiler: v10.3-2021.10 and 9 20-q1-update.
STM32CubeIDE 1.13.1 was released on st.com as well as an in-tool update patch aligned with STM32CubeMX v6.9.1 that is available for download.Main issues fixed in this patch:This patch release fixes the issues related to the following cases:STM32CubeMXTicket 157216: X-Cube-FreeRTOS: compilation Error with IAR.Ticket 157222: CubeMX v6.9 deletes Folder added by user when regenerating the code using MDK-ARM.Where do I obtain CubeIDE 1.13.1, CLT 1.13.0 and CubeMX 6.9.1?For IDE 1.13.1: STM32CubeIDE - Integrated Development Environment for STM32 - STMicroelectronicsFor CLT 1.13.0: STM32CubeCLT - STM32CubeCLT is a toolset for third-party integrated development environment (IDE) providers, allowing the use of STMicroelectronics proprietary tools within their own IDE frameworks. - STMicroelectronicsOr update your current installation of STM32CubeIDE using: Help > Check for updates.Updating STM32CubeIDE, the post-update restart fails. STM32CubeIDE must be restarted manually.For MX 6.9.1: STM32
Hi,I decided to upgrade my STM32CubeMX to the latest version 6.9.1.my project was generated first with STM32CubeMX 6.5.0 - so I had to copy the IOC manually.I checked multiple times that all configuration is the same like it was, and it is. when I'm calling the LWIP method udp_new() I'm getting NULL and than I can't send any UDP message.I did a debug and notice this is happening under "do_memp_malloc_pool" function in the memp.c file this is not happening in the old code generation. it there special configuration that I'm not aware of? thanks for the help!
Dear Members,I am using STM32L4P5VGT, STM32CubeMX 6.9.1, and STM32Cube_FW_L4_V1.18.0, which are the latest for the product.Our custom board has an SD card (SPI), and USB Host-FS, using dual Storage and both are working, The maximum possible code (drivers, fatfs, USB host, no freeRTOS) is used from CubeMX except user code. In the documentation given that when an SD card and USB pen Drive are used, during the mounting of both drives, we should use as below.frResult = f_mount(&SD_Drv, "0:", 1); // for SD need "0:" and usb need "1:"frResult = f_mount(&USB_Drv, "1:", 1); // for SD need "0:" and usb need "1:"The code generation by CubeMX for the function void MX_FATFS_Init(void){ /*## FatFS: Link the USBH driver ###########################*/ retUSBH = FATFS_LinkDriver(&USBH_Driver, USBHPath); /*## FatFS: Link the USER driver ###########################*/ retUSER = FATFS_LinkDriver(&USER_Driver, USERPath);
I understand the reason behind it and it is a very useful feature, but please add the option to disable it when it's not needed. Most of the time I just do a one-off configuration using the cube configurator and then I write my own code. Also, the way the comment blocks are written makes everything very tiring to follow, so maybe it could be useful to be able to define different styles of comments.
Hello.I am a student who is currently studying related to stm32 at the university.I'm learning how to install and use the program because it's my first time using the stm32 board.I would like to apply the expansion package that you gave me to the NUCLEO-H743ZI2 board.The professor gave me a file in exe, and when I ran exe and installed it, there were many files, but among them, there were four Tests folders in the projects folder -> NUCLEO-H743ZI folder -> Applications folder -> STL folder.And when you go into one of the files, it's in the SW4STM32 folder.There were two files, the cproject file and the .project file.I'm curious about how to open and apply the expansion package installed like this.No matter how much I look for it, I don't think it shows how to apply the expansion package, so I came here.It may seem strange that I am not in the English speaking area, but I would appreciate it if you could reply.
Its ectremely clever from you to release an update without really testing it and its not even simple bug. its huge. try create project for the STM32H747 Discovery and u see by your self!!
Does anyone know how to import an IOC file into an existing project?I was trying to have two IOC files; one for issue 1 of the hardware and one for issue 3 and swapping between them, but something's gone funky with it and now the project won't recognise the IOC file even though it's there in the directory.If I move the two IOCs out of the project directory and then try and import them, but right clicking on the project, selecting import and then import IOC file, Cube spits its dummy out and tells me"Project is already existing within current workspace" Whatever than means.I have valid IOC files, why won't Cube accept them and what do I do to fix this please?Ta.,
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.