Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
stm32cubemx i want common shared driver folder to all my project
Hello,On starting a new project with new board, we need to have a STM32CubeMX, but in the cubeH7 example package, I do not find any STM32CubeMX project file.How do I create STM32CubeMX project file with the example ?Thanks,ran
..
Hi,Looking at the block diagram in the datasheet, ABH1, AHB2, AHB3, AHB4, AXI are listed as supporting 200MHz.Cube (v5.0.0, H7 v1.3.0) however will not allow them to be set higher than 100 MHz, and says the must be <- 100MHz in the hover text.Is cube or the datasheet correct?Thanks,Jacob
hifor example i download https://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube-led1.htmlbut cubemx cant add it !problem during load of selected file.this package version is not managed on this version of stm32cubeMX.please help me.tnx
Hello:I am trying to come to an understanding using timer configurations with CubeMX/HAL. I hope someone can point me in the right direction. This is specifically for timer capture, but is probably applicable to PWM generation, and/or PWM capture too. This is using the Nucleo-L476RG demo board.In general, I am spinning my wheels on the relationship of these things that all seemingly affect the frequency of an interrupt an capture. In the newest CubeMX, there is an example in: "STM32Cube_FW_L4_V1.13.0\Projects\NUCLEO-L476RG\Examples\TIM\TIM_PWMInput"In the readme file, it states that:The minimum frequency value to measure is (TIM3 counter clock / CCR MAX) = (80 MHz)/ 65535 &nb
Hello,All the time I re-generate the code in CubeMX5 it deletes all my code in the main.cI have Mac OS High Sierra and use SW4STM32, working with MCU STM32F103C8.I tried all the options in the Code Manager / Code generation tab and nothing :tired_face:Edit1:I notice some code is left outside the main loop, otherwise all code inside the main() disappear.I also tried the old version of CubeMX 4.27 and the same problem arrises. I wonder if it has something to do with SW4STM32.Edit2:I uninstalled everything and re-installed again, it seems to be working now. I am not sure what was the problem. I will keep you updated if problem arises again.
That would be very bad. Those symbols are like a data privacy skull and crossbones warning.
HelloTo generate code cubemx try to donwlad stm32cube_fw_f7_V1140.zip without success.Is it possible to have a link to download it in a different way ?Thanks,
Hi,I am trying to compile a generated Makefile project on an Ubuntu machine (18.04 LTS). The compilation works fine on Windows 10.But on Ubuntu, I get the following error:kai@ubuntu:~/workspace/makefile_test$ make arm-none-eabi-gcc build/main.o build/stm32f4xx_it.o build/stm32f4xx_hal_msp.o build/stm32f4xx_hal_tim.o build/stm32f4xx_hal_tim_ex.o build/stm32f4xx_hal_rcc.o build/stm32f4xx_hal_rcc_ ex.o build/stm32f4xx_hal_flash.o build/stm32f4xx_hal_flash_ex.o build/stm32f4xx_hal_flash_ramfunc.o build/stm32f4xx_hal_gpio.o build/stm32f4xx_hal_dma_ex.o build/stm32f4xx_hal_dma.o b uild/stm32f4xx_hal_pwr.o build/stm32f4xx_hal_pwr_ex.o build/stm32f4xx_hal_cortex.o build/stm32f4xx_hal.o build/system_stm32f4xx.o build/startup_stm32f429xx.o -mcpu=cortex-m4 -mthumb - mfpu=fpv4-sp-d16 -mfloat-abi=hard -specs=nano.specs -TSTM32F429ZITx_FLASH.ld -lc -lm -lnosys -Wl,-Map=build/makefile_test.map,--cref -Wl,--gc-sections -o build/makefile_test.elf /usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/
All text in the CubeMX standalone application is really small when viewed on a HiDPI screen. Some symbols and controls are also too small.Please make sure that text and symbol size adapts to the screen resolution.
Hello,The first time code generation with CubeMX 5.0.0 for TrueSTUDIO worked just fine. Then I added a GPIO configuration and tried to re-generate the code resulting in the famous message "The Code is successfully ... but TrueSTDUDIOproject generation have a problem.". Following is the log showing the error:[...]2018-12-20 16:04:42,820 [INFO] CodeEngine:184 - oldGeneratedFile, D:\tmp\STM32\es32t\Src\main.c_save2018-12-20 16:04:42,959 [INFO] CodeEngine:202 - Generated code: D:\tmp\STM32\es32t\Src\main.c2018-12-20 16:04:43,641 [INFO] ProjectBuilder:1412 - Time for Copy HAL[1] : 89mS.2018-12-20 16:04:43,651 [INFO] ProjectBuilder:1974 - Project Generator version: 3.0.02018-12-20 16:04:43,667 [INFO] ConfigFileManager:779 - The Die is : DIE4482018-12-20 16:04:44,390 [INFO] ToolchainGenerator:120 - stack trace : java.lang.NullPointerException at generators.TrueStudioGenerator.replaceLocationUriNodes(TrueStudioGenerator.java:119) at convertor.Convertor.generat
Hello everybody! You know, I wasn't the only one who had many problems getting the SDIO and FATFS to work on certain versions of CubeMx/HAL so a downgrade was necessary to get the job done. Now, with the advent of the brand new CubeMx 5.0, is there any known issues reported so far with the code generated, especially that of the SDIO and FATFS? I'm now working with version 4.17 with FW package 1.13.1 (STM32F4). Also, any significant change to the FreeRTOS API with this new version of CubeMx? The one I have now is 8.2.3 and I'm very comfortable with it. I really don't have time to learn a new API in case of any. Thanks
Hello,After succeeded to run CDC device on FS port, I'm trying to get HS port working in HS mode, as I'm interested in lower latency. But cannot find any simple guide to set it up in Cube. Trying to enable USB_OTG_HS (External Phy = Device_Only), it gives me some errors/warning signs in Peripherals that I'm not sure how to correct. The project generates, builds and runs, but the port is not detected by PC when I plug in the cable into HS socket.For FS mode, I just configured main Clock from HSE, 48MHz USB clock and CDC_Receive_FS/CDC_Transmit_FS handlers (just to get simple echo mode, i.e. redirect input to output), but in HS it's not that simple. Is there any example available?Thank you!
Hello,I use stm32f303 discovery board and try to enable usart 1 as described in ..stm32cuvef3/projects/STM32303C_EVAL/uart/hyperterminalDma example. When I set USART1 and it's relative pin and ports I see the output as expected but I am not able to send anything to the microcontroller. Receive interrupt doesn't even fire.#define USARTx_TX_PIN GPIO_PIN_4 #define USARTx_TX_GPIO_PORT GPIOC #define USARTx_TX_AF GPIO_AF7_USART1 #define USARTx_RX_PIN GPIO_PIN_5 #define USARTx_RX_GPIO_PORT GPIOC #define USARTx_RX_AF GPIO_AF7_USART1I try to swap the receive pin to PE1 which also has the alternative functionality of USART1it doesn't trigger the interrupt, again.Finally when I change the port to USART2 and its relative pins as..#define USARTx_TX_PIN GPIO_PIN_2 #define USARTx_TX_GPIO_PORT GPIOA #define USARTx_TX_AF GPIO_AF7_USART2 #define USARTx_RX_PIN GPIO_PIN_3 #define USARTx_RX_GPIO_PORT GPIOA #define USARTx_RX_AF GPIO_AF7_USART2in this way I can send and receive using dma as expected without
Hi. I'm KAI. I want to configure the system to receive the sensing value by ADC.The system configuration I am currently thinking is as follows.The system is the same as the attached file. In STM32F103RB, the serial data and the SR clock signal are input to the shft register and shift register output signal is transferred from the shft register to the sensor unit. During this high input signal, the ADC is selected through a 3-bit MUX control signal and received as an STM32F ADC input. The timing diagram at this time is the same as the attached file.PB13 and PB15 use the same timer as TIM1_CH3N and TIM1_CH1N, respectively, and I wonder if I can make TIM1_CH3N of PB13 like the attached timing diagram.I am wondering if PB7 (TIM4_CH2) is master and PB13 / PB15 (TIM1) is slave and it is possible to synchronize PB13, PB15, PC6, PC7, PC8, ADC_SAMPLING signal.I wonder if this is the most commonly used method in these systems.I am developing for the first time using STM and since I am a beginne
PLEASE PLEASE PLEASE Ditch STM32CubeMX version 5.This is the Worst software I have ever has the misfortune to use.Previous versions were bad but I would happily go back now I see how bad V5 is.AndyP.S. Your forum software is only marginally better than STM32CubeMx V5
I'm reading the values of the mouse coordinates as well as the buttons, however I do not know if I'm missing any configuration or if I do not know how to interpret the values correctly, but they seem to be strange.When I move mouse to left the values range from 0x01 to 0x09;When I move mouse to right the values range from 0xF1 to 0xFF;The same thing happens up and down.Is that correct?
I update my Stm32CubeMX to 5.0 and wish to open an old project, bus the load dialoag cannot display chinese charasters
It is grayed - always. What is wrong?
Hi All,In the Cube I see only version 9.0 is available while I would prefer to start with the version 10 as it has static allocation.Is there a way to update the Cube? Or can I just overwrite FreeRTOS files? I am afraid all the time I press on the Generate Code, my version 10 will be overwritten.Thanks!
I am using the latest version of STM32CubeMX to set up a STM32F103 processor. In the ADC section, it will not allow me to enable the 'scan' mode. Incidentally, I greatly preferred the previous STM32CubeMX's layout and operation.
Under Windows 10, im finding that CubeMX cant see windows network shares/drives.This is a huge problem as my company keeps all project files on shared network drives.Please get this fixed!Also... the new GUI/layout in 5.0.0 is terrible!Why is there this trend to make all GUI objects/fonts huge, smoothed, slow-moving, etc?We are engineers, not primary school students. The GUI should be compact, plain, simple and snappy. 5.0.0 is none of those things.It's a backwards step.
Hello,I installed CubeMX version 5.0.0. It works but the the used police is so tiny that it is quiet impossible to read menus and contents.How to set a larger police of the CubeMX editor.
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.