Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
We've made a pack (using STM32PackCreator) that contains a few files with a proprietary file extension (.eis). When importing the pack in CubeMX these files are not included.If I rename the files to .txt instead they are included when the pack is imported in CubeMX. I can see that the files actually are in the pack by renaming it to .zip and unpacking it manually. Using STM32H7.Does anyone know how to fix this? Is there a list somewhere with "approved" file extensions that can be modified?Thank youAnders
Has anybody got experience in QLFP128 substitute for QLFP64 using eDesignSuite examples with accompanying FW and Freemarker templates?
I tried enabling the LWIP_SNMP_V3_MBEDTLS and LWIP_SNMP_V3_CRYPTOCan in CubeMX and generated the code, then it is giving me an error as some header files are missing and which are related to MD5 and SHA. In CubeMX, They have mentioned “LWIP_SNMP_V3 enables EXPERIMENTAL SNMPv3 support. THIS IS UNDER DEVELOPMENT AND SHOULD NOT BE ENABLED IN PRODUCTS”.Could you please let me know if we can implement SNMPV3 with NUCLEO-H743ZI2 in the products with authenticatoion and privacy? Does it execute successfully?
HiI have problems with the I2C frequency when I'm generating code with CubeMX 6.12.0 for the STM32U5A9. The timing register from the I2C3 is generated wrong, which leads to a frequency around 350kHz instead of selected 400kHz in FastMode operation.The tool generates 0x0010061A and regarding the datasheet example (see printscreens) it should generate something like 0x10320309.Can you fix that in the next version?Thanks in advance nobody
HiI add ethernet communication to my program with STM32CubeMx and I just compiled and run it. I have a problem:if I disconnect Jlink the board I have a ping error. but I run the code with 3 times click on run in MDK-ARM the board will ping.I also try my app without MX_LWIP_Init();if I comment this line all thing is good.you can find 3-time click video here
... as imho it shouldHi , thanks !
I just updated to CubeMX 6.12.0 and Firmware Pack STM32Cube FW_H7 V1.11.2. I noticed that the internal ADC selection (for ADC3 on STM32H750) is only partially working. The first time you select an internal channel, it works. However, if you then select a different internal channel, it does not enable the new channel. I verified this by reading ADC3_Common CCR register. I also tested with optimizations off to be sure it wasn't an optimization issue. I am using Keil MDK-ARM.To reproduce:1) Call HAL_ADC_ConfigChannel() with channel set to ADC_CHANNEL_VREFINT (do a conversion if desired)2) Call HAL_ADC_ConfigChannel() with channel set to ADC_CHANNEL_VBAT (do a conversion if desired)In the above steps, only VREFEN will be set. VBATEN will not be set on the second call. Switching the order will make VBATEN set but VREFEN will never be set.To work around, I have to manually select the desired internal channel any time I use more than 1 internal
Hi SirI am currently encountering a problem in the current detection part of the FOC. The circuit uses the G431 internal OPA PGA for signal amplification processing and connects it to the ADC channel. However, I have been unable to read the correct value in my current attempts.I have changed to using ADC injection conversion alone, using the PWM signal as the injection conversion signal, and using the power supply to directly input voltage to the ADC pin to make sure that the ADC related code is normal.Later, I will create a separate project for the OPA code with the following settings:No matter how the input voltage changes, the output remains at 3.3V.
I can not find any complete project for USBX or TinyUsb library to drive. Can anyone to help me please?i need USB CDC VCP AND AUDIO DEVICE simultaneously in custom board.
I am using:STM32CubeIDE Version 1.11.0STM32CubeMX Version 6.7.0I used STM32CubeMX to update itself to Version 6.12.0 (to location C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX)Problem:I cannot open/edit BLE_HeartRate.ioc file because it says it was created using CubeMX ver 6.11.0 and CubeIDE is using CubeMX ver 6.7.0.. When using STM32CubeIDE, the 'Help About' still reports STM32CubeMX as version 6.7.0. I have no idea how to tell my CubeIDE to use the newer CubeMX. I would think it would be taken care of automatically. What is going on?
Dear ST, Users have for years been complaining that Cube is not giving them fair warning regarding speed limitations of PC2_C/PC3_C in STM32H7. Customers are having to respin boards because they fail to notice the fine-print in a 300 pages datasheet. See Here and Here . I'm sure other examples could be found. Please make some changes to CubeMX/IDE to protect users against costly respins and time wasted debugging silicon issues. @AScha.3 @heveskar @LCE
Hello, I want to get started using ST microcontrollers. My work computer does not have an internet connection so I need some help installing the software on this computer. I want to use the STM32CubeMXI have downloaded the installation file onto a disk and have installed it on my computer. The problem is when I create a project I don't see any devices to choose. Is there a software package that I need to download and install? Thank you very much,Joe
Hi,I'd like to create a project using your STM32U031K8U6 device, but it seems, that the project template is corrupt.Creating a project by access MCU selector->STM32U031K8U6, start projectProblem is reproducible on 2 computers. Tried already Help->refresh data, no effect. Clould you pls fix that? Cube Version 6.1, but I think it will affect all versions. Cheers,Florian
=< is non-standard. Should be <= instead. Same issue exists in similar warnings for PLLN and PLLR, and possibly elsewhere. I Found this in a G4 project, if that matters.
if you want to use ADC to DAC and have 200hz output. what is the first thing to do? connect the ADC to the DAC or set the output frequency first until it reaches 200hz?
Hi The .mxproject is generated by STM32CubeMX in the code generation step. What is this file used for? Thank you. Pieter.
STM32CubeIDEVersion: 1.10.1Build: 12716_20220707_0928 (UTC)OS: Linux, v.5.15.0-46-lowlatency, x86_64 / gtk 3.24.33Java vendor: Eclipse AdoptiumJava runtime version: 11.0.14.1+1Java version: 11.0.14.1Ubuntu 22.04.01echo $XDG_SESSION_TYPEx11java --versionopenjdk 11.0.16 2022-07-19OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu122.04)OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu122.04, mixed mode, sharing)Fresh installed the IDE The project can be opened compiled nomally.. Attemtping to open an ioc file from the IDE with device configuration tool reuslts in belowI could succesfully install CubeMX though, but the integration in the IDE is so much easier to use to update code. It all worked before, but Ihad to reinstall Ubuntu and now it doesn't after installing CubeIDE. Have a hunch this has to do with the java version, but can't pinpoint what, it is.java.lang.NullPointerException at com.st.microxplorer.maingui.HomePanel.InitStartupPanel(Ho
Bom dia!Instalei o STM32CubeIDE no Ubuntu 22.04, e não consigo criar um novo projeto.Ao Iniciar o CubeMX, consigo selecionar o MCU desejado e, na sequencia, retorna a seguinte mensagem de erro:Executando o IDE via terminal, no momento do erro apresenta a seguinte mensagem:ERROR Chromium process exit code: 133ERROR Crash dump dir: /home/"username"/.config/jxbrowser/7.38.2/crash-reports Como o Erro acontece na execução do CubeMX, tentei criar um projeto direto nele.Consigo selecionar o MCU e definir todas as configurações de Clock, IO, etc.Porém, ao pressionar o botão para "Gerar o Código", nada acontece.Novamente, executando via terminal, no momento de "Gerar o Código", a seguinte mensagem de erro é retornada: [INFO] UserAuth:417 - Internet connection configuration mode: 1[ERROR] ProjectManagerView:732 - java.lang.NullPointerException: Cannot invoke "com.teamdev.jxbrowser.browser.Browser.mainFrame()" because "this.browser" is null Essa mesma mensagem é exibida
I have a DAC signal from an ADC (potentiometer). I have set the frequency from 0-200 Hz but when I run it when I am at 200 and the sign should still be there, the signal on the oscilloscope disappears (just a straight line). does anyone know how to fix it?
CubeMX (6.12.0 anyway) The IOC file created by CubeMX will be different even if you don't make any changes depending on whether you click in a defined memory region listed under Application Regions. Without clicking on anything the IOC will contain a line that says MMTAppRegionsCount=0. But merely clicking on a defined memory region listed under Application Regions will cause the line MMTAppRegionsCount=x (where x is the number of application regions) to be written in the IOC file. There will also be numerous lines that give the parameters for those regions.
Hi I want to generate two PWM having phase shift between them. I am using stm32f410 and cubemx as platform. Could anyone please help.
Several issues here.First issue, the indicated limits on PLLR are wrong:The error suggests the PLL output can be no higher than 150Mhz, which is wrong since the chip supports HCLK freqs up to 170Mhz. Which is also explicitly stated below the HCLK box: Second Issue, possibly related, the automated search feature, which tries to find a PLL configuration that produces a desired HCLK, fails to find a solution when the user chose target HCLK to be 170Mhz:But, if the user sets the target HCLK as 85Mhz, you do get a solution:If we then change the PLLR divider to /2 instead of /4, we get the desired HCLK of 170Mhz, and no violation is flagged for PLL/R (as shown above). Something here is clearly inconsistent. Summary:1. The upper limit for PLLR should be corrected to 170Mhz.2. if addressing (1) doesn't fix it, the automated search feature should be fixed so that it finds a solution for a target of HCLK=170Mhz.3. Because issue (1) exists, the limits for PLLM and PLLN should also be re
Hi,CubeMX Version : 6.10.0Steps to reproduce :Create new project Example selectorBoard : NUCLEO-G0B1REMiddleware : FreeRTOS selectedThere are 3 Examples : select "FreeRTOS_Timers" or "FreeRTOS_Semaphore" and Start-ProjectSelect open with "CubeMX" and see the Pinout & configuration -> NVIC red-icon, klick on NVIC the priority cannot be changed (everything deactivated)
STM32CubeMx 6.12Package for STM32G0 1.6.2STM32G0B1CBT6, Timer PWM DMA2 LL Generates wrong code as follow
Hello, I'm using STM32F030C8 and I have created 4 PWM waveforms.I want to create PWM and stop it after one cycle.I'm thinking of how to create PWM and stop directly after one cycle. Is there any other way? Thank you.
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.