Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
Ubuntu 23.10Tried to load an older project in 6.12.0, CubeMx Asked to convert or continue. Selecting continue.IT start to unzip the tarball and then stops. cube has no error screen, but the log shows as followsUpdating to CubeMX 6.12.1 yields the same result. Looked up the tabrall and it can be opened.Note: With the option MIGRATE could open the project.2024-09-19 20:55:38,081 [INFO] I2cTimingTraitement:330 - 0x10C0ECFF2024-09-19 20:55:38,101 [INFO] I2cTimingTraitement:330 - 0x108082C42024-09-19 20:55:39,806 [INFO] MicroXplorer:468 - Change Database Path :2024-09-19 20:55:39,806 [INFO] MicroXplorer:498 - Change Database Version : DB.6.0.1202024-09-19 20:55:39,900 [WARN] ThirdParty:871 - waiting for thirdparty lock release [close project]2024-09-19 20:55:39,900 [INFO] ThirdParty:873 - entering critical section [close project]2024-09-19 20:55:39,900 [INFO] ThirdParty:883 - exiting critical section [close project]2024-09-19 20:55:39,911 [INFO] PinOutPanel:1561 - setPackage(No
I can open the project generated by STM32CubeMX normally, but when I try to open it through the folder, it becomes unresponsive and keeps lagging. Why does this happen, and what can I do to fix it?
Hello everyone, I have the following question: when, as in the attached image, you see a peripheral like the USART1 in yellow (in conflict with other peripherals), is it still possible to use it? I ask this information because I am looking for a NUCLEO card that best meets my specifications and I want to avoid buying a card for which I can not use the peripherals I need to the fullest.
Hello, I'm working on a project using the STM32F429I-DISC1 board and need to implement CAN communication. I'm using TouchGFX for the GUI, and when I generate the code, only CAN2 is available as an option. CAN2 is mapped to pins PB12 (CAN2_RX) and PB13 (CAN2_TX), but according to the board schematic, these pins are already connected to USB_OTG_HS_ID and USB_OTG_HS_VBUS. Is there any way that I can use CAN with this type of project? I see no other alternate pins. FMC and LTDC are taking up all the other options. Thank you.
I like to use the CubeMx 6.14.1 generated code (up2date firmware packages) to use DAC 1+2 with GPDMA in circular mode (Standard-Request-Mode)The 1st thing that makes me wonder: Although I selected "Standard Request Mode" in CubeMX a configuration for Linked-ListMode is generated. Nevertheless this seems to work with ADC. On DAC Channels 1+2 I get a Data-Transfer-Error although I can't figure out a CubeMX missconfiguration for now. See my attached .ioc File for Reference.Expectation: CubeMx generated Standard Request code when selecting this in the GUI. Expectation: DAC generates HAL_DAC_CH1_COMPLETE instead of HAL_DAC_CH1_ERROR with DTE bit set.DMA-Start-Code:HAL_DAC_Start_DMA(&hdac1, DAC_CHANNEL_1, (uint32_t*)output_buffer[0], SAMPLE_BLOCK_SIZE * 2, DAC_ALIGN_12B_R); HAL_DAC_Start_DMA(&hdac1, DAC_CHANNEL_2, (uint32_t*)output_buffer[1], SAMPLE_BLOCK_SIZE * 2, DAC_ALIGN_12B_R);with output_buffer being a global:int16_t output_buffer[3][2*SAMPLE_BLOC
I'm working on a project that needs both TouchGFX GUI and CAN communication. After configuring my STM32F429 with TouchGFX, I'm unable to enable CAN1 in STM32CubeMX. From what I understand, CAN2 is a slave/dependent peripheral that requires CAN1 to be active, so I need CAN1 functioning first. If I create a can task with CAN2 it does not work (Loopback mode), and if I enable CAN1 the display will stop working.Is there a recommended pin configuration that allows both TouchGFX and CAN to coexist?Has anyone successfully implemented both TouchGFX and CAN on the F429?Thanks!
I would like to use ADC1_IN15 and ADC1_IN16 in STM32U073MCT6 for measuring voltage and current.However, it says that it is available if sequencer set to not fully configurable for Sequencer on parameter settings.I will do anything with sequencer. I am just measure the voltage value with adc.when I select the 'set to not fully' parameter, after that, error occurs in ADC_Regular_ConversionModewhat can I do? for just measure the adc value?
The code for USART6 is not generated by STM32CubeMX tool for STM32F207ZGT6 MCU. I am trying to generate the baremetal code. I have created a default IOC file for this MCU, and configured USART6 as Ascychronous mode. After this I wanted to configure the clock for the USART, but the clock configuration is not visible for USART6.I tried generating the code after this, this step was successful. However, I don't find any code related to USART eg., initialization, RX/TX functions. I have tried configuring the USART6 for Synchronous mode, this also doesn't generated the USART code.I have aswell tried the other USART/UART interfaces for Asynchronous and other modes, the result is the same. Clock configuration not visible, and the related code is not generated. Can you please let me know if any additional configuration to be done in addition.
Hi,Can you please help me for below I am using NUCLEO-C071RB development board ,I am generating the code using CUBE MX software(V6.14.1) following steps I have followed Step 1:Selected the board as NUCLEO-C071RBStep 2:From project manager I have selected the Toolchain/IDE as EWARM and other configuration as below Step 3:Clicked on generate code Step 4:a .eww file is generated and I opened the file using IAR software the code builds completly without erros but, I am getting the following notification during opening of file Step 5:The code builds ok with no error so now I have tried to debug that code it will not Step 6:I have right click on project and tried to look the core or device but it is not detected as below (the core should be Cortex MO+and there should be Device name My question is: Could there be an issue with the CubeMX IDE that's preventing it from detecting the STM32C071RBT6 microcontroller?Step 7: I navigated to the ST folder in th
Last question. Can I use stm32cubeMX also for my project or is it better to continue with CUBE IDE?
I cannot find the lwIP component for FreeRTOS in the latest STM32MX options.I installed the package FreeRTOS from the package install STMicroelectronics tab but lwIP is not available nor do I see and option to install the package.Can this be installed locally? Do I have to integrate the hard way?
I'm trying the example for STEVAL-STWINBX1 but when i use cubemx/cubeide example selector for STEVAL-STWINBX1, i only see 3 BLE and 1 NFC example but the SDDataLogFilex is missing.Is this normal ? How can i get the SDDataLogFilex example ?
Hi all,I am currently using the Nucleo-H723ZG and having difficulties with the clock management using version 1.12.1 of the stm32h7 cubeMx package.The first symptom I encountered was that my USART2 baudrate was three times lower than expected. A few researches led me to posts where similar issues where described and supposed to be patched in 1.12.1 as in this post.Digging a bit more on the subject, I noticed that HAL_RCC_GetPCLK1Freq(); and HAL_RCC_GetPCLK2Freq(); were both returning very strange values. Both functions output 429687488 which is way to high considering that STM32CubeMX caps the value at 137.5Mhz in the GUI. Following on this I got the following results:HAL_RCC_GetHCLKFreq() -> 859374976HAL_RCC_GetSysClockFreq() -> 1718749952which doesn't look wright at all...Am I missing anything here ? Is is possible that my stlink outputs a frequency above the standard 8MHz ?I am pasting my SystemCLock_Config() fonction, in case I messed up something in it:/** * @brief System C
I'm using STM32CubeMX 6.14.1Recently I was added DAC to my project. I doesn't suppose to use DAC with interrupt, I wasn't enable it, but occasionally I was enabled DAC callbacks.Generated the code for Makefile based project.In the end of building process, linker thrown errors:/usr/lib/gcc/arm-none-eabi/12.2.1/../../../arm-none-eabi/bin/ld: build/stm32f0xx_hal_dac.o: in function `HAL_DAC_Init':/home/tovis/nusi/worke/STM32/F051_ccl/Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dac.c:304: undefined reference to `HAL_DACEx_ConvCpltCallbackCh2'/usr/lib/gcc/arm-none-eabi/12.2.1/../../../arm-none-eabi/bin/ld: /home/tovis/nusi/worke/STM32/F051_ccl/Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dac.c:304: undefined reference to `HAL_DACEx_ConvHalfCpltCallbackCh2'/usr/lib/gcc/arm-none-eabi/12.2.1/../../../arm-none-eabi/bin/ld: /home/tovis/nusi/worke/STM32/F051_ccl/Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dac.c:304: undefined reference to `HAL_DACEx_ErrorCallbackCh2'I made some investigati
Hi ST Community,I'm currently working on a project using the STM32F429ZI and trying to use the HASH peripheral for SHA1/SHA256 operations. However, I’m facing two issues:HASH peripheral not visible in STM32CubeMX:I expected to find the HASH peripheral under "Cryptography" or similar in the Peripherals tab, but it doesn't appear as an option in the CubeMX interface.I’ve verified that I’m using the latest STM32CubeMX v6.14.1 and firmware package for STM32F4 v1.28.2.I believe HASH support is available for STM32F429ZI and if yes, is there any option to enable it using CubeMX and when I added it manually, facing below issue.2 .Unknown error when using HASH_HandleTypeDef:I manually included the following headers in my code#include "stm32f4xx_hal.h"#include "stm32f4xx_hal_hash.h"When I try to declare, HASH_HandleTypeDef hhash; I get an Error[Pe020]: identifier "HASH_HandleTypeDef" is undefined during compilation. The
I'm trying to use the DMA engine to drive a GPIO output port, with each update triggered by a timer to achieve a particular waveform. It's trying to run, but I'm getting a TEIF (transfer error flag) and not seeing anything on the GPIO pins. I can't figure out where the problem is.My targets are:1. Target Dest GPIO Port F (all 16 bits)2. TIM4_CH2 (DMA1 -> Channel 2 -> Stream 3). Note that I also have TIM4_CH2 routed to an alternate pin function so I can view the timing, and it is working correctly.3. Data source is Memory/Internal RAM buffer (uint16_t array)Here are my register setups:1) S3NDTR = 0x100 (number of transfers == internal RAM buffer size)2) S3M0AR = 0x200000c0 (address of internal RAM buffer)3) S3PAR = 0x40021414 (GPIO F's ODR register) 4) S3FCR = 0x21 (default reset val, leaving in direct mode)5) S3CR = 0x4032c41Other notes: I'm following the rules and setting up everything before enabling the "EN" bit. I've tried various combinations of fifo/direct mode, and al
STM32CubeMX verion: 6.14.1 pNodeConfig.DataHandlingConfig.DataExchange = DMA_EXCHANGE_DEST_BYTE; pNodeConfig.DataHandlingConfig.DataAlignment = DMA_DATA_RIGHTALIGN_ZEROPADDED;
Posted on May 26, 2017 at 13:35Hi,How do I enable the STM32CubeMX version 4.21.0 to generate sysmem.c file under startup folder? The file seems to be missing. The older version of STM32CubeMX automatically generates it.#stm32
Hello,I need to download the STM32Cube FW_L0 V1.12.3 package to start a new project but the connection is impossible.When I click on the "Enter myST account information" on the STM32CubeMX tool there is no action.I did not have any issue to download the STM32CubeMX tool.How can I solve this issue?I am blocked, can I download this package from the web site?Best regardsMich
Hi, I’m using STM32CubeMX to configure peripherals and IAR Embedded Workbench for debugging. However, I’ve noticed that whenever I regenerate the code using CubeMX, the application code I previously wrote in IAR gets erased.Is there any setting or configuration in CubeMX that prevents it from overwriting my application code when I regenerate code after making configuration changes?
I just updated my STM32 plugin in eclipse and now I cant compile anymore.```Errors occurred during the build.Errors running builder 'CDT Builder' on project 'STMTest'.Cannot invoke "String.startsWith(String)" because "prefix" is null```Always this error and in the log file too
Hi,I am trying to generate a project using STM32CubeMX v6.11.1 Linux using the NUCLEO-U5A5ZJ-Q project template.I am happy to use either a Makefile or a CMake based build, but unfortunately both have issues. If I select a Makefile build, and click Generate, the project is created, but the stdout log of STM32CubeMX provides this warning: No such linker file: /home/user/STM32Cube/Repository//STM32Cube_FW_U5_V1.5.0//Drivers/CMSIS/Device/ST/STM32U5xx/Source/Templates/gcc/linker/STM32U5a5xx_FLASH.ld No such linker file: /home/user/STM32Cube/Repository//STM32Cube_FW_U5_V1.5.0//Drivers/CMSIS/Device/ST/STM32U5xx/Source/Templates/gcc/linker/STM32U5a5xx_RAM.ld If I try to build with make, I see this issue reflected in the build: arm-none-eabi-gcc build/main.o build/stm32u5xx_it.o build/stm32u5xx_hal_msp.o build/stm32u5xx_nucleo.o build/stm32u5xx_hal_adc.o build/stm32u5xx_hal_adc_ex.o build/stm32u5xx_hal_dma.o build/stm32u5xx_hal_dma_ex.o build/stm32u5xx_hal.o build/stm3
So I've opened a brand new project for the board STM32U5A9J-DK (ThreadX) via TouchGFX Designer. I generated the code and flashed into the board. No issue.I opened the .ioc file, added the USB_OTG_HS and the USBX with the Audio Class. I've then generated the code with CubeMX. The code is correctly generated but the Makefile used by TouchGFX Designer is not updated. Once trying to compile and flash for the target, you'll have that the .h files are missing.The fix is to manually add to the gcc/Makefile:usbx_os_path := $(cubemx_middlewares_path)/ST/usbx os_source_paths := \ AZURE_RTOS/App \ USBX/App \ $(cubemx_os_path)/common/src os_include_paths := \ AZURE_RTOS/App \ USBX/Target \ USBX/App \ $(cubemx_os_path)/common/inc # USBX source paths usbx_source_paths := \ $(usbx_os_path)/common/core/src \ $(usbx_os_path)/common/usbx_device_classes/src \ $(usbx_os_path)/common/usbx_stm32_device_controllers # USBX include paths usbx_include_paths := \ $(usbx_os_path)/common/core/i
I have a custom board that uses STM32F746VGT6 MCU and 1894K-33LF Ethernet IC. I have an old STM32CubeIDE project that allows to configure Ethernet parameters (such as duplex mode, speed, autonegotiation) from internal MX configurator. Generating new code with MX changes the libraries to newer version that differ significantly in how Ethernet and PHY are initialised. Also it's not possible to configure as many Ethernet parameters as before. How to configure external Ethernet PHY with newer libraries?
Hi, I know this question have been asked several time, but STM32CubeIDE and STM32CubeMx are only generating .c file... this is very frustriating, time consuming and source of multiples error when working with cpp environment. We have to manually rename .c to .cpp file and vice et versa after each modification... this is so 1990 workflow. Does this implementation have been planned in the future or shall I forget about it ? Thanks for your reply.
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.