Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
Hallo, I am working with CubeMX. I want to install the package in the repository.In my software, it says that C:/Users/Divya/STM32Cube/Repository/ is my repository location. When I searched, i can't found this folder in my laptop. How to proceed from now? Also, I tried to change the location, but couldn't manage. If you have faced such problem, let me know.Thank you.
Hi I have seen problems with stm32h7 cube uart bug.The Sources for uarts are pll2q but when debugging :It says pclk1 and pclk2 are configured.And even with these values baud rate will not be what I set. I have to divide it by 2 (clock divider is 1).I searched in registers and i see RCC_D2CCIP2R is not initialized(its zero).This register is the clock selection for UART. When i manually set proper value for it the baud rate wont be ok yet. So i think even pll2q is not configured properly too.
Hi all, how are you?. I'm making a project with an STM32F401VE and I've updated the IDE, after that there are about ten dependencies that says something related to inknown dependencies and the .ioc project doesn't opens. I read some over there and some other people had the same problem after the STM32Cube IDE was updated, currently for me is showing this problem with the version Version: 1.5.1, Build: 9029_20201210_1234 (UTC).I tried also to import the project or creating a new project but the behavior is the same. How could this problem be solved?In the meantime I will simply reinstall the IDE
STM32f103vet6It's in the manual that SDIO adapter clock (SDIOCLK = HCLK). When HCLK is set to 72MHz, SDIO_CK is configured through the register SDIO_CLKCR bit 7:0(CLKDIV). When the bypass clock is not used, SDIO_CK=SDIOCLK/[CLKDIV+2], which should be the frequency division of 72MHzBut the default parameter in the code generated by STM32CubeMX is to divide 48MHz. The two macros in the file stm32f1xx_ll_sdmmc.h are defined for 48MHz, and these two macros are used when calling the HAL SD Init function.If used in this way, it will cause overclocking.
Hello Team, Hello i have a Nucleo H745ZI_Q board in this Ethernet without RTOS is working fine but when am going to configure ADC all the three ADCs are shows error message --> Partly Disabled conflict with: ETH: mode RMII even many channels also showing error message . Whats the issue ?? How to resolve this ???? Best Regards,Gagan Gowda G R
Hi all.My team has been working on a project that contains a SD card based on Standard Library. Recently we've decided to migrate to HAL and it started.Fortunately, All part of our project were changed as well as possible to HAL and they're working great but we don't know why SD card doesn't work well.We have not changed peripheral's configuration clocks, but we had to change "clock frequency of the SDMMC controller" to 1.5MHz in HAL while it was 24MHz in STDLibrary. Because, it didn't work at all.In addition, our customers are using a wide range of SD card types and all of them are OK but not great. I mean, FR_DISK_ERR is returned a lot in during of working but our device tries to get FR_OK.Unfortunately, we always receive FR_DISK_ERR in some SD cards while, it worked all the time in our STDLibrary version.Furthermore, we've found if "f_mount" function was called once and after that you take away the SD card and put it again, it will never work until you reset your microcontroller.My
I created new program using latest CubeMX 6.10.0, I use Keil. I upload without any problems.I use ST Link v3 connected to PA13 (SWDIO) , PA14 (SWCLK)The program is running but when I try to connect again it says STM32 not found.I cannot debug, I cannot download again.There is no extra code, only plain code created by CubeMX, all pins are not enabled, nothing.Still the same problem. I connect pin BOOT0 to 3.3V and suddenly I can access the chip again and upload program. When I use program created by older CubeMX, I do not have this problem.Has anybody seen something like this ? There must be something with the code generated by latest CubeMXI haven't check other chips I have noticed this only with STM32F103CBT6. Other might be affected too.
Hello,I'm currently working with the STM32H745I-DISCO board, using STM32CubeIDE and STM32CubeMX v1.14.0 for peripheral initialization. Initially, I enabled SDMMC1 on the Cortex-M7 core, which worked well - the necessary resources were added to my project under the "STM32H7xx_HAL_Driver" folder:stm32h7xx_hal_mmc.cstm32h7xx_hal_mmc_ex.cstm32h7xx_ll_sdmmc.cSubsequently, I attempted to enable SDMMC1 for the Cortex-M4 core as well (while keeping the initializer on Cortex-M7). However, STM32CubeMX automatically disabled the MX_SDMMC1_MMC_Init function for the M4 core. To address this, I unchecked the relevant option in Advanced Settings and regenerated the code. Unfortunately, this didn't update the linked resources for the M4 project, leading to a compilation error due to an "undefined reference to `HAL_MMC_Init'".In an additional test, I enabled SDMMC1 exclusively for the M4 core, which resulted in the removal of linked resources from the M7 project but did not add them to the M4 core. Eve
Posted on April 03, 2015 at 04:23In STM32CubeMX, when I click on a pin, the following are two of the choices amongst others are presented to me. I want to understand what the difference is between ADC1_IN0 versus GPIO_Analog. I have looked through numerous manuals and all over the Internet and all through ST Microelectronics website and cannot find a definitive answer. What is the difference, if any, why would I use one over the other, it at all? #gpio-analog-adc #mx-gpio-analog
In CubeMX when configuring a SPI peripheral I can only choose either 8 or 16 bit, but the STM32G491 reference manual says data size can be from 4 to 16 bit. Is this a bug in CubeMX?(using the newest CubeMX version)
I went to use STM32CubeMX and I get the splash screen then nothing. I downloaded and installed the latest version V6.10.0 and still the same. I am running windows 10 professional. Does anyone else have this problem ? I wonder if there has been a Java update that has broken this ?
We are using CubeMX (incl. FreeRtos) to update our settings.The problem is that CubeMX will always create a default task in the main. We also tried to remove the following line from the ioc file "FREERTOS.Tasks01=defaultTask,0,128,StartDefaultTask,Default,NULL" but it will automatically rewrite it.Is there a way to disable the default task code generation ?Thanks
Hello,Working on an STM32F412 µC, with the last F4 firmware package ans last MXWhen configuring to use SDIO with 1Bit interface, everything works fine. But when configuring to use a 4bits interface, there is an error In BSP_SD_Init(); there is an error when calling HAL_SD_ConfigWideBusOperation()I have tried to make it work with FreeRTOS and FreeRTOS-Plus-FAT and... it work.As I do not always want to have project with FreeRTOS, would it be possible to ST to integrate working SD initialisation in 4 bit mode.Reading the following:- https://community.st.com/t5/stm32-mcus-products/sdio-4-bit-mode-with-stm32cubemx/td-p/406139- https://stackoverflow.com/questions/72984923/stm32f746-sd-card-crc-failing-in-4-bit-mode-but-working-fine-in-1-bit-modeIt seems that the problem is known for a long time, with no solution provided by ST. ST should at least integrate the evolution provide by FreeRTOS to make STM32 firmware package at least work in every mode possible!It seems unbelievabl
Hi everyone. Maybe this my doing or an oversight by ST?CubeMX places the MX_LWIP_Init(); function in the first listed RTOS task witch is far from ideal. In my case the "first task" is dynamically created depending on a multitude of different factors. This resulted in the init function not being called and later being called multiple times during runtime.It's an easy fix, just move the function call somewhere else. It just doesn't seem right that the generation tool does this...(つಠ_ʖಠ)つ
Hello everyone,I'm currently involved in a project and I'm aiming to analyze the peripheral initialization parameters of a specific target by examining the .ioc file. I parsing through the ioc file like a text file. While the .ioc file contains details of the modified parameters, it doesn't include the default values. Given that these values are updated within the STMCUBEMX UI, I suspect that there might be a file within the installation directory that stores this information. Could someone kindly direct me to the specific file that contains these default values?Thank you.
Hi,I am facing an issue with the cubeMx UI. After using it for some time about 10 to 15 minutes, the UI is overlapping each other. Then I need to close the UI and start again. Again the issue is present after some time. CubeMx Version : 6.10.0
HelloI have this Board from WeActStudio: https://github.com/WeActStudio/WeActStudio.MiniSTM32H723 There is the following example which allows displaying the camera on the onboard LCD: https://github.com/WeActStudio/WeActStudio.MiniSTM32H723/blob/master/Examples/08-DCMI2LCD/Core/Src/main.c The example project is generated with STM32CubeMX for Keil uVision. When building and flashing the example with Keil uVision, everything works fine. I would like to port this example project to a Makefile project. I have used STM32CubeMX to generate a Makefile project. The .ioc file is given in the example project. This worked fine. I can build the project after manually adding a few .c files into the Makefile, which CubeMX didn't catch. After flashing the resulting binary, the onboard LCD is working fine. But the Software starts to hang during capture start as there are no HAL_DCMI_FrameEventCallback(). I can verify this with a debugger. The camera seems to be running, checking with an oscilloscope,
I have these working examples for an enhanced package. I work for an ST partner (Cesanta) and ST people in charge of validating the pack for the MadeForSTM32 label requested I moved drivers into a common directory and configure the project to use relative paths in STM32CubeMXhttps://wiki.st.com/stm32mcu/wiki/Introduction_to_STM32Cube_Expansion_Packages 5.1 step 2When I switch the project to use relative paths for the firmware libraries as instructed and generate code again, STM32CubeMX does not modify the .cproject file, so examples won't build anymore.I noticed this in the STM32CubeMX shell log:[INFO ] 2023-11-28 19:04:47,713 com.st.stm32cube.ide.common.services.mx.rcp.CubeIdeServices - Start Cube IDE services[INFO ] 2023-11-28 19:04:47,720 com.st.stm32cube.ide.common.services.mx.rcp.CubeIdeServices - Cube IDE services are relying on '1.13.0.23rc2_generators' product version and '16900_20230602_1109(UTC)' build version[INFO ] 2023-11-28 19:04:47,720 com.st.stm32cube.ide.common.service
Posted on December 16, 2015 at 12:31Hi everybody!I am using STM32F0 and stm32 cube as my development platform. I wanted to know the causes for uart over run error and what is the best solution to handle uart over run error.I am facing this problem in Uart receive interrupt. It is always generating overrun error and i am unable to process uart received data. The uart baud rate is 9600.Any suggestions would be a great help.Thanks #cubemx #stm32 #overr #uart-error
Hello we are using STM32H745XI Discovery board. When we are generating the project from CubeMX and opening in CubeIDE , the files are not generated properly. So that we can't build the project(check in attached png file) --> it is not showing the build button.we are tried in different versions of CubeIDE and CubeMX.Help me in this regards regards,srikanth
Cubemx 6.10.0 generates wrong constant "OPAMP_POWERMODE_NORMAL" for STM32G471 when using LL liberary. I should be LL_OPAMP_POWERMODE_NORMAL
Hi, i`m new to stm32. I have a STM32469I EVAL Rev C Board And Using STM32CubeIDE. I downloaded STM32CubeF4 Firmware Package V1.28.0 from CubeMx but, I can`t find OTG Firmware Upgrade Example for STM32469I EVAL. Where can I find OTG FirmwareUpgrade Example for STM32469I EVAL?
I have a uart peripheral whose baud rate can only be set to 3.125M. However, the baud rate of another uart peripheral with the same clock configuration in the project can be set to 12.5M. I want to know what the baud rate limit is based on? How to increase the baud rate from 3.125M to 12.5M?
Hi,why MBEDTLS cann't work with azureRTOS (Iam using stm32h7) ? Thank you
Java 版本 11.0.20,Cubemx 版本 6.20,路径应该是正确的,但由于某种未知原因它被卡住了。相同的配置可以在另一台计算机上正常运行。
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.