Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
I am experiencing issues while trying to operate the BR2804 1700Kv BLDC motor with the IHM07M1 motor controller and either the L476RG or G071RB board. we are just using the software like cube mx , cube ide to genarate code . while using L476RG , all pin are matched with IHM07M1 but even after changing some values in mc workbench , the motor only rotates for a short duration (2 or 3 seconds) before encountering startup failure or speed feedback issues. Additionally, the motor sometimes produces a struggling noise during the startup process.
In cubeMX, Il gave a user name 'led1_rouge' to PI1.When I go to Keil microvision, intellisense gives me two names : led1_rouge_pin led1rouge_gpio_portWhat is the difference between them ?Jean
I wish to run sample code/examples on X-NUCLEO-NFC08A1 and NUCLEO-L476RG development board.Is there any guide describing step by step procedure of adding X-CUBE-NFC6 expansion to STM32CubeMX∕IDE?
Apparently in v2.8 TF-A the RCC device tree block changed significantly for the STM32MP157CAAx board as this commit shows:https://github.com/STMicroelectronics/arm-trusted-firmware/commit/3cf2edd6b87ca5c131108c533761d26cb0539d5eSo old device trees from v2.6 will not work anymore. We need to be able to generate device trees for v2.8, when will STM32CubeMX be able to generate those? Can you help us @Olivier GALLIEN ?
Hi,we are using a stm32u575zit6q Controller. Having a trust zone enable with dual bank support.our application is to communicate stm32u575zit6q controller to the other MPU with SPI peripheral using DMA.In this case MPU is behave as a SPI master and stm32u575zit6q is SPI slave.Master SPI Frequency is 4Mhz.It is used as fullduplex communications.This is the SPI Slave Configuration of the stm32u575zit6q.hspi3.Instance = SPI3;hspi3.Init.Mode = SPI_MODE_SLAVE;hspi3.Init.Direction = SPI_DIRECTION_2LINES;hspi3.Init.DataSize = SPI_DATASIZE_8BIT;hspi3.Init.CLKPolarity = SPI_POLARITY_HIGH;hspi3.Init.CLKPhase = SPI_PHASE_2EDGE;hspi3.Init.NSS = SPI_NSS_SOFT;hspi3.Init.FirstBit = SPI_FIRSTBIT_MSB;hspi3.Init.TIMode = SPI_TIMODE_DISABLE;hspi3.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;hspi3.Init.CRCPolynomial = 0x7;hspi3.Init.NSSPMode = SPI_NSS_PULSE_DISABLE;hspi3.Init.NSSPolarity = SPI_NSS_POLARITY_LOW;hspi3.Init.FifoThreshold = SPI_FIFO_THRESHOLD_01DATA;hspi3.Init.MasterSSIdleness = SPI_MASTE
I have a simple question. How to "attach" external interrupt to pin "selected" as Alternate Function of some peripheral in CubeMX. For example:I set PA8 as TIM4_ETR signal. Then i want to add external interrupt on the same pin. How to do that in CubeMX ? Thanks.
Hi, Lot of people had this issue, nothing worked for me and I think it might be a newbie mistake. I'm trying to communicate in USB between my PC (host) and a stm32f429ZI board (device). The size of the heap shouldn't be an issue as it seem like the memory allocation for the header is static. But I still tried to increase it to 0x2000. I also tried to change the PC and the stm32f429zi board. No success.Here are the schematics for the USB pins of this board. I measured:VCC 5.1VD- 0VD+ 2.9VID 0VGND 0VI tried to activate the VBUS as well even if my power source is from the PC and that I get the 5V on VCC, no improvement My STMcube settings and clock:Usb device is activated and set to Communication device classMy windows driver is this one: The MX_USB_DEVICE_Init() function runs with no problemAny lead?Thanks
Hi ,Do I need Cube MX to use Motor Control Workbench?I am currently trying to control a motor using Cube IDE and Motor Control Workbench.When I execute "Generate the project" in Motor Control Workbench, "STM32Cube MX not found" is displayed and I cannot proceed from the situation. I previously saw the article in the STM32 microcontroller development support tool that "Cube IDE has all the functions of Cube MX built-in." Therefore, I thought that Cube MX is included in Cube IDE.
I paired the HSE and PLL clocks for the USB to provide 48 MHz and a system clock of 72 MHz. I've seen that the ESOF,RESET, SUSP, and ERR interrupts seem to hit me first and that the CTR interrupt never occurs,based on what I've observed in the USB_ISTR register. I've tried using default endpoints, but I still can't figure out what's creating this problem. Please assist me in solving the issues at hand.
Hello,I've been having difficulties saving projects in STM32CubeMX. I've tried versions 6.8.1, 6.8.0 and 6.7.0, as well at the latest versions of Java SE 20, 19 and 17.Saving has worked exactly once, the window no longer opens whenever saving is invoked by any method I can find (save, save-as, pressing save when exiting unsaved project, the save prompt when generating a report).Running it with "java -jar STM32CubeMX.exe" I consistently see this error in the logs: Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Comparison method violates its general contract!at java.base/java.util.ComparableTimSort.mergeHi(ComparableTimSort.java:870)at java.base/java.util.ComparableTimSort.mergeAt(ComparableTimSort.java:487)at java.base/java.util.ComparableTimSort.mergeCollapse(ComparableTimSort.java:413)at java.base/java.util.ComparableTimSort.sort(ComparableTimSort.java:213)at java.base/java.util.Arrays.sort(Arrays.java:1041)at java.desktop/sun.awt.shell.Win32ShellFolde
I am using stm32f334. it has hrtim timers. based on its manual it also has HRTIM_SCIN. but I don't know where should I find its setting in the CubeMX to activate it
Hi all,We are about to start evaluation in the following development environment specified by the module manufacturer.ST Micro NUCLEO-L073RZKeil μVision V5 ( V5.29 )STM32cubeMX (V 6.0.1 ,STM32Cube MCU Package for STM32L0 1.11.3)We cheked the Pack Installer in the μVision, in the devices tab, we can select the STM32L073RZ, in the boards tab, we can not select the NUCLEO-L073 only L053RB.please cheke attached the files.what should we do?Please advise how to deal with this problem and how to solve it.Best regards,sss_jpn
Does anyone meet this problem?I use Stm32Cubex to do a freertos & sdcard with sdmmc, it work good,but it has a problem, it the board power on first and not press reset button.the first f_open will return FR_NOT_READY and the f_mount is FR_OK. then any fatfs api will not work, all return FR_DISK_ERROR.but if i power on the board and press reset button, it work.
..
Hi all,We are about to start evaluation in the following development environment specified by the module manufacturer.ST Micro NUCLEO-L073RZKeil μVision V5 ( V5.29 )STM32cubeMX (V 6.0.1 ,STM32Cube MCU Package for STM32L0 1.11.3) Attached files are the project manager screen.The firmware package version is displayed so that we can select either 1.11.0 or 1.11.3, but selecting 1.11.3 will result in an error.Could you give me some advice on how to deal with it?Best regards,sss_jpn
Hello,I use a STM32H7A3ZI-Q board, and I can't select TrueSTUDIO as IDE in the project settings ... Any idea ? Thanks for your support.Maxime
Hello everybody,i am using STM32G071RBTX and stm32cubide, using ADC1 for 10 analog pins and i nead to start conversions and read value of them one by one.my problem is there are 10 analog pins which means 10 channels but i do not know how can i read them while there is just 8 number of conversions.can anyone give me any clues?
I am using NUCLEO-F401RE board with X-NUCLEO-IKS01A3 extension board for a pedometer application. The sensor data from board is displayed on Command Shell Console in STM32CubeIDE but want this data is text or csv file for further analysis. Can somebody help me with this?
Hello,I am working with a STM32H743 and an Ethernet controller which I drive with SPI.So I don't use the ETH config in CubeMX (and I can't because pins are already taken by other functionalities), but I'd like to use the LWIP package which can't be enabled without ETH IP configured. Is it really impossible to enable or is there an other way ?Thanks in advance.Regards,Sulian
Hello friends, I am starting to use "CubeMX", I want to configure memory, static RAM and LCD. But I'm having trouble figuring out how to configure these peripherals, do you have a guide to configure this peripheral and CubeMX?Thanks!
I have stm32h745i-disco for my project and use PA0_C and PC_3 for output. and when i use usual HAL_GPIO_WritePin() it is not working. Should i change something to make it work? Please help
I don't know if this also affects non-makefile projects. But when the code is generated, the linker script name used in the Makefile is different than the actual name of the linker script file. Running make causes this error: /opt/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: cannot open linker script file STM32G070CBTx_FLASH.ld: No such file or directory collect2: error: ld returned 1 exit status The difference is in the lower/upper case "x" letter at the end of the model name of the target. Changing the "x" fixes the issue and the linker works.This issue was not happening before as I could verify with an older project. Minor thing, but I hope it can be fixed or this post helps somebody with the same problem.
how to reproduce:generate a new C project for Nucleo-G431RB with all default settings.enable TIM1 with internal clock sourceset the prescaler to 170-1set code generation for TIM to LLgenerated code: /* USER CODE END TIM1_Init 1 */ TIM_InitStruct.Prescaler = 170-LL_TIM_ETR_FILTER_FDIV1_N2; which is incorrect (and finally killed a motor driver). For HAL code generation, everything looks fine: /* USER CODE END TIM1_Init 1 */ htim1.Instance = TIM1; htim1.Init.Prescaler = 170-1; Fun fact: Attaching the .ioc, .zip or .tar failed: The attachment's tim1_bug.tar content type (application/x-tar) does not match its file extension and has been removed. KnarfB
I'm still struggling with the ethernet code. I have some custom hardware that where several H743 controllers are powered on at the same time and sometimes they don't get all a connection (no IP address from dhcp). But I can reproduce this error as well with a NUCLEO_H743ZI2 rev. E-01 when I power it from ext. 5V, or unplug/plug the STLink Jumper.I have traced it downto a reset timout error from LAN8742_init(). The error code is not checked in the Cube generated software, it looks like this:https://github.com/JojoS62/Test-H743ZI2-lwip/blob/79bd3eb6f7d82179384d7a70a9411745cac3ca20/LWIP/Target/ethernetif.c#L252What can be the reason that the soft reset sometimes fails?
I have selected NUCLEO-L073RZ as per our development board specification.Similarly, I am using the manufacturer specified version below.I am using STM32CubeMX version 6.0.1.The Firmware Package Name and Version is STM32Cube MCU Package for STM32L0 1.11.3.Kail version is uVision V5.29.When I opened the project in Keil and tried to compile the new, I got following error :startup_stm32l073xx.s: error: A1023E: File "C:/Users/<user-name>/STM32Cube/Repository/STM32Cube_FW_L0_V1.11.0//Drivers/CMSIS/Device/ST/STM32L0xx/Source/Templates/arm/startup_stm32l073xx.s" could not be opened: No such file or directoryI just verified the directoryI found that the directory was empty, hence the project couldn't compile.Hence, I have following questions:Why does the 'C:\Users\<user-name>\STM32Cube\Repository\STM32Cube_FW_L0_V1.11.0\Drivers\CMSIS' show empty?
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.