Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
..
Hello,I can't find 32F072BDISCOVERY , https://www.st.com/en/evaluation-tools/32f072bdiscovery.html in Cube IDE board selector (previously in CubeMX).Is there a plan to add this board?Thank you,David
Hello,I want to generate a single short pulse (adjustable between 100 ns to 1ms). What is the best way ?I think we should use timers, but which mode ? (which CubeMX configuration ?)Moreover I tried to configure one-pulse mode but I can't find documentation or tutorial. Either my settings (trigger mode...) are wrong, either I don't have the proper HAL command to initialise or start the pulse. Which HAL functions are needed ?Thank you,Valentin
For STM32F769I-DISC0 board, STM32CubeMX by default is setting pins PJ5 and PJ13 (User LED pins) as input GPIO. There is a need to change it manually to output mode, otherwise it is not usable.Cube ver 4.27.0
Hello everyone.Now that STSNIP32F0 has been introduced, Is there gonna be support for this device on CubeMX like other microcontrollers?
Hi, i need help in my project. I have a problem with SDMMC1 and fatfs. My goal is to be able to write a txt file on the sd cardDoes someone have an example that works correctly?im using stm32cubemx 5.2.1 and atollic ide.thanks
when i select the STM32H750VBT6 controller in cubemx, it shows cubemx can't lode this MCU?what is the problem ?thanks in advance
Dear All,i encountered a problem with STM32F407ZGT6 in working with external interrupt.i do this by STM32CubeMX and MDK ARM V5.i configure a pin ( PF1 ) as external interrupt mode with rising/falling edge trigger detection. i set it internally pull down and connect it to a micro switch.my problem: when i press the micro switch i expect that the void HAL_GPIO_EXTI_Callback(ut16 GPIO_Pin) executed two times. one time for rising edge and one time for falling edge. but it is executed three times. also when i press and hold down the micro switch, the callback routine executes repeatedly.i see it in debug mode by inserting breakpoint in the above mentioned callback.what is the cause of the problem and what is the solution for it?please consider the my code following.thanks in advance.#include "main.h"void SystemClock_Config(void);static void MX_GPIO_Init(void);int main(void){ /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration------------------------------------
Using RS485 driver enable, specifically on USART 7 and 8, the CubeMX generated code needs to add in MspInit:GPIO_InitStruct.Alternate = GPIO_AF1_USART7;GPIO_InitStruct.Alternate = GPIO_AF2_USART8;respectively.
Use STMcubeMX5.1 , I have found the problem, not the problem of soft armor is that the external crystal oscillator is not soldered.
I want use STM32L476 for USB Disk application.When Test USB 8GB is OK, but 16GB is Not work.Check USB fail.Anyone know where problem?In CubeMXUSB_OTG_FS : Host_Only, VBUS sensingMiddleware USB_HOST : Mass Storage Host Class & default setting(no change)Middleware FATFS : No change(Only Test Max_SS(default 512 -> test 1024, 4096)thanks all.
Hi ST community!I’m starting new project with CubeMX but I want to use the LCD, I wonder how to start a project and use an existing code (LCD Code) should I copy the folder into my new project? If Yes how can I organize the folder in the new project?thanks
STM32CubeMX locks up when whengeneration code if it was opened from the directory where the. ioc file is located.Using version 5.2.1
See the attached project. If I go to change the settings of ADC1, in the "parameter settings" increase the number of conversions from 2 to 3. In the following lines "Rank 3" should appear, but it does not appear:If I try to switch to another peripheral (for example ADC2) the page does not change. If I click on ADC1's "DMA Settings", the parameters of the DMA appear correctly, but if I click on "Parameter settings" again I find the empty page:Therefore it is not possible to set three or more regular conversions. Why this?Best regardsAndrea
Hi All,I don't want STM32CubeMX to generate a call to SystemClock_Config() because the clocks are set up in a bootstrap that runs beforehand (due to XIP Flash). There is an option in the Advance Settings page to do it, but it's disabled. I cannot select the check box to not generate the call (the other check boxes work).Is there a way to enable this feature?Cheers,David
Hi, I have problem running USB on STM32L412KBT. The code hangs inside MX_USB_DEVICE_Init. Sometimes in function HAL_StatusTypeDef USB_DevInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) (file stm32l4xx_ll_usb.c), sometimes in function HAL_StatusTypeDef USB_DevConnect(USB_TypeDef *USBx) (the same file).Using CubeMX 5.2.1, STM32Cube FW_L4 V1.14.0Custom board, stable 3v3 power source with many filtering capacitorsSuccessfully upload code using USB DFU, so I think wiring is OK Tried multiple CPU clock speedTried multiple USB clock sourceTried multiple USB class type CDC, HID, ...When I comment MX_USB_DEVICE_Init all other peripherals seems to work correctly Any help appreciated...
Cube V5.2.1 configured for STM32G070CBTx using STM32Cube FW_G0 V1.2.0 includes stm32g0xx_hal_rcc_ex.h in it's generated code. This header file references 18 "undefined preprocessing identifiers" (i.e. RCC_CCIPR_LPUART1SEL and RCC_CCIPR_LPTIM1SEL, etc.) and therefore, produces 18 Remarks every time the file is included. In my medical application, that's 450 unacceptable messages. It appears these identifiers are not used on the stm32g processors and should not be included in this file.
Hello! I use the BluePill Board. I have created a simple project VCP CDC, compile it, load it, plug the board into the computer everything is OK (file usb_cdc_1.zip). But if I add CAN to the project, the computer no longer detect VCP (usb_cdc_2 file.zip). Tell me what the problem is, what am I doing wrong?
I have an old PCB CAD and 100 pin STM32F746 CPU. I would like to have a component symbol where pins have their functional names. Like for instance USART2_TX/PA2 instead of plain PA2.And the list must contain every pin and be in CSV format.This is of course what my old Pads eats, others may have different CAD SW.Or you could make several PCB Cad formats available.This is a sample of the file I could importPin Group,Number,Name,Type,Swap,Seq.Pin Group,Number,Name,Type,Swap,SeqGate-A,1,RESET/PE2,Undefined,0,Gate-A,2,GPIO_OUT/PE3,Undefined,0,Gate-A,3,PE4,Undefined,0,Gate-A,4,PE5,Undefined,0,Gate-A,5,TurnOff/PE6,Undefined,0,Gate-A,6,VBAT,Undefined,0,Gate-A,7,PC13-ANTI_TAMP,Undefined,0,Gate-A,8,PC14-OSC32_IN,Undefined,0,Gate-A,9,PC15-OSC32_OUT,Undefined,0,Gate-A,10,VSS,Undefined,0,Gate-A,11,VDD,Undefined,0,Gate-A,12,PH0-OSC_IN,Undefined,0,Gate-A,13,PH1-OSC_OUT,Undefined,0,Gate-A,14,NRST,Undefined,0,Gate-A,15,PC0,Undefined,0,Gate-A,16,PC1,Undefined,0,
Whenever I try to open .ioc file from repository https://github.com/STMicroelectronics-CentralLabs/ST_Drone_FCU_F401 with stm32cubemx version 5.2.1 I downloaded a few days ago I get in consoleException in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Index 8 out of bounds for length 8 at com.st.microxplorer.plugins.projectmanager.gui.ProjectChoiceTab.updateToolChainSelection(ProjectChoiceTab.java:1895) at com.st.microxplorer.plugins.projectmanager.gui.ProjectChoiceTab.updateSettings(ProjectChoiceTab.java:393) at com.st.microxplorer.plugins.projectmanager.gui.ProjectSettingsPanel.showDialog(ProjectSettingsPanel.java:104) at com.st.microxplorer.plugins.projectmanager.engine.MainProjectManager.showProjectSettingPanel(MainProjectManager.java:404) at com.st.microxplorer.plugins.projectmanager.ProjectManagerView.getUI(ProjectManagerView.java:168) at com.st.microxplorer.maingui.MainPanel.updateViewsTabPane(MainPanel.java:1145) at com.st.microxplorer.maingui.Mai
I just received a new NUCLEO-H743ZI2, with the Rev V silicon. According to AN5312, the clock can go up to 480MHz (but requires Vcore level VOS0) and the ADC clock has an extra divider.I'm using STM32CubeMX v 5.2.1 with the latest 1.4.0 HAL for the H7 How can I make sure that the code being generated is correct for the Rev V silicon? Also, what's the max ADC clock frequency in Rev V? It used to be 36MHz in Rev Y, but it seems to be 39MHz in Rev V now (for 12 bit conversions). Is that correct? And how do I set adc_ker_ck to 50MHz in CubeMX? There seems to also be a new ADC mode for direct channels that goes up to 50MHz, but only for 4 channels, and I plan to use 6 channels for my project. But for some reasons, now Rev V must use 2.5 samples rate, dropping from 4.5Msps on Rev Y at 36MHz to 4.30Msps on Rev V with 39MHz clock.I definitely love being able to use higher core clock and ADC clock, but the changes between Rev Y and V are really confusing to me and how to ensure CubeMX knows abou
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.