Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
Am creating a I2C communicaton hub , where i have more than 20 sensor which is having I2C comunication. thing is i need connect all this sensor with in 2 I2C port. am getting confusion. how to write the code implementtion for same above using stm cube.
I've been using CubeMX 4.12.0, and I wonder why does the code generation mess up the linked directories? Can something be done about it?The generation adds "25"s in the path, like:$%25257BPARENT-2-PROJECT_LOC%25257D/cmnThat doesn't work, but :$%7BPARENT-2-PROJECT_LOC%7D/cmnworks fine.
Hello!There is no scrollbar in the windowEdit pins is practically inconceivablep.s. New design of the app is terrible (((
Hi,I tried a simple example today with STM32 Nucleo F103RB and CAN. I only generate Code with CubeMX. I do not add any line. I get a stuff error on my peak CAN if I change the "ProjectManager.CompilerOptimize=6" to "ProjectManager.CompilerOptimize=0" => 0 means no optimization.So if I use the default value everything works fine so I did not get any stuff error. Dose someone confirm that? Is there anything wrong in the HALmany thankscheersmathias
It seems that I can't download anything from st.com. I have just clicked the download button, but nothing happend. What's going on? Is some issue on st.com or others?
..
1.In project manager page,the project location is not support chinese path.2.Generate code Error.
I just installed the latest Atollic package, and the latest STM32cubeMX 4.27.0 plug-in.Created a cube project, edited the configuration, generated code.After code generation I clicked Open Project, but it failed:The newly generated project doesn't show up in the workspace where it was created.If I add the project manually to the workspace, it does not build.How can I get past this?Thanks!PS: Java(s) installed on this workstation:c:>java -versionjava version "11" 2018-09-25Java(TM) SE Runtime Environment 18.9 (build 11+28)Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)c:>"C:\Program Files (x86)\Atollic\TrueSTUDIO for STM32 9.1.0\ide\jre\bin\java" -versionjava version "1.8.0_181"Java(TM) SE Runtime Environment (build 1.8.0_181-b13)Java HotSpot(TM) Client VM (build 25.181-b13, mixed mode)
Hello,another checkbos I just miss was to select devices with ADC with differential mode input capability...
Posted on June 08, 2017 at 02:02Hi ST,There are a couple issues with the definition of _Error_Handler() in main.h as generated in v4.21.0. First of all it needs to be wrapped as follows so it can be included in both .c and .cpp files with the correct linkage:#ifdef __cplusplus extern "C" { #endif void _Error_Handler(char *, int); #ifdef __cplusplus } #endif #define Error_Handler() _Error_Handler(__FILE__, __LINE__)BTW, this should be done for all function definitions in all header files so they work correctly in both .c and .cpp files. I'm sure there are other cases. This is just the one I've run into.Secondly, the _Error_Handler function is defined as taking a char * for the first argument. However, in gcc __FILE__ is a const char *, so in the macro in the header:#define Error_Handler() _Error_Handler(__FILE__, __LINE__)an error is generated. It should be:void _Error_Handler(const char *, int);Thanks,Craig
Hi how can i link a USART PORT (RX and TX PIN) to a USB FS Port to send data via USB FS with USART RX and TX?How can i do that with CUBE MX?
I have configured TIM1 as SysTick().I noticed that the functionvoid SysTick_Handler(void)is no mode generated in stm32f7xx_it.c. Why?According to the UM1718 (DocID025776 Rev 21) pag. 90, "SysTick_Handler calls osSystickHandler when FreeRTOS is used" and it is exactly what I get with previous CubeMX where i had (stm32f7xx_it.c):/** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ osSystickHandler(); /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ }
Hello,If clockmux in STM32cubeMX clock configuration is grayed, does it mean that there is no clock output and the peripheral shall not function ?I try to use just the clock configuration generated code from stm32cubeMX and do the rest code modifications manually.Thank you,ran
Hi all.I'm working on my own board and using 3 separate I2C devices. MPU sensor, current sensor, and an IO expander, all having their own bus. For testing purposes, I've relied on the CubeMX code to generate the base code for me. Only one of the I2C (I2C4) busses work. My oscilloscope confirms nothing is sent out of I2C1 and I2C2. HAL returns HAL_TIMEOUT tooHas anyone had else had similar issues with this?Thanks
Hi,I'm trying to create a project to test the USB Host in HID keybord mode using the NUCLEO-H743ZI board. My keybord worked in the STM32H743-EVAL board and the STM32Cube_FW_H7_V1.3.0 USB Host HID example. I noted that the Eval board example code generate an OTG_FS_IRQ just after the "USBH_Start(&hUSBHost)" function call. Only if the Keyboard is attached. My project runing in the NUCLEO-H743ZI don't trigger the ISR. What could be wrong with my CubeMx V4.27 configuration?
I just genarated a MKR-ARM V5 project, I build it, and have these problem.
Posted on November 06, 2017 at 14:05Hello all,In my test project I want to use the STM32F4 Discovery Board (MCU: STM32F407VGTx) to realize the following simple functions with the help of Simulink and STM32-MAT/TARGET:1) Making three user LEDs (PD12, PD13 and PD14 ) blink one by one, whereby each LED blinks 1 second.2) Using the user button (PA0) to toggle LED PD15. I made the following configurations for my project:1) STM32CubeMX: I only changed the input mode of PA0 from GPIO_ETI0 to GPIO_Input. Other configurations stay as default.2) Simulink: a) Type of Solver: Fixed-step b) Solver: auto c) Fixed-step size(fundamental sample time): auto3) Keil: Nothing changedSimulink models *.slx in three different versions and the MCU configuration file *.ioc are availible in the attachment. You can check them for more details and use them to establish a new project again. According to the simul
Can anyone help me?Here is the log:chdir /home/cxcygzf/STM32CubeMX/.current dir /home/cxcygzf/STM32CubeMXlog4j user configuration file not found: /home/cxcygzf/.stm32cubemx/log4j.propertiesConfigure log4j with default settings from jar:file:/home/cxcygzf/STM32CubeMX/STM32CubeMX!/log4j/log4j.stm32cubemx.properties2019-01-12 12:58:09,972 [INFO] MicroXplorer:486 - Detected Java Version = 1.8.0_1922019-01-12 12:58:09,979 [INFO] ApplicationProperties:181 - Using Application install path: /home/cxcygzf/STM32CubeMX2019-01-12 12:58:09,999 [INFO] DbMcusXml:68 - Set database path to: /home/cxcygzf/STM32CubeMX//db//mcu/2019-01-12 12:58:10,013 [INFO] DbBoardsPdsc:54 - Set plugin database path to: /home/cxcygzf/STM32CubeMX//db//plugins/boardmanager/2019-01-12 12:58:10,014 [INFO] DbMcus:262 - Set plugin images path to: /home/cxcygzf/STM32CubeMX//db//plugins/mcufinder/images/2019-01-12 12:58:10,014 [INFO] DbBoards:224 - Set plugin images path to: /home/cxcygzf/STM32CubeMX//db//plugins/mcufinder/image
Hi!I use an STM32F746 and I configured STM32CubeMX clock tree as is :I just use PLLI2S for the MCO2 output (for Ethernet purposes). I don't use SAI1, SAI2, I2S or SPDIF-RX, so the HAL_RCCEx_PeriphCLKConfig function does not initialize PLLI2S:HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { ... /*-------------------------------------- PLLI2S Configuration ---------------------------------*/ /* PLLI2S is configured when a peripheral will use it as source clock : SAI1, SAI2, I2S or SPDIF-RX */ if((plli2sused == 1) || (PeriphClkInit->PeriphClockSelection == RCC_PERIPHCLK_PLLI2S)) { ... // THIS SECTION IS NOT CALLED: plli2sused == 0 and PeriphClkInit->PeriphClockSelection is not strictly equal to RCC_PERIPHCLK_PLLI2S, although it contains it as a binary mask } ... }The workaround is to initialize it manually after the SystemClock_Config() call : PLLI2SInit.PLLI2SN = 100; PLLI2SInit.PLLI2SP = RCC_PLLP_DIV2; PLLI2SInit.PLLI2SR = 2; PLLI2SIn
Hi, I tried to establish TIM3 (as well as TIM1 and TIM2) of F072RBT6 to work in the Input mode to capture pulses. But, I found that in the "GPIO mode" field for this pin is no an Input mode, but the Output (Alternate Function Push-pull)!! I think it is bug. Please check screenshot of the latest CubeMX. The same bug present for the F072RBT6 in previous CubeMX ver.4 too. There is no such problem with F103C8T6 MCU.
After upgrading from CubeMX 4.27 to 5.0 i found out that HAL_SYSTICK_IRQHandler() call is missing from SysTick_Handler(). Is this a bug or a feature??See SysTick_Handler code from 4.27:void SysTick_Handler(void) { /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); HAL_SYSTICK_IRQHandler(); /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ }and now the same function generated by 5.0void SysTick_Handler(void) { /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ }
Hello.After updating CubeMX to the latest version, the microSD card is no longer formattedMounting, creating files and writing to them is normal.When calling a function:f_mkfs("", FM_FAT32, 0, work, sizeof work);Hangs up in the HAL_SD_WriteBlocks function, in this loop:while(!__HAL_SD_GET_FLAG(hsd, SDIO_FLAG_TXUNDERR | SDIO_FLAG_DCRCFAIL | SDIO_FLAG_DTIMEOUT | SDIO_FLAG_DATAEND | SDIO_FLAG_STBITERR))I tried different MicroSD, the result is the same everywhere.And before that, everything worked fine.Perhaps the reason is due to the fact that in CubeMX in the FATFS settings the BSP item (Detect_SDIO) appeared
Posted on June 30, 2018 at 15:49Hi all: Now I use stm32h743zi, using cubemx to generate LwIP project, but the LwIP option is gray. Dose anyone know that how to fix this. The following picture is the picture what I confige the cubemx project. Thanks.#stm32cubemx. #stm32h7-ethernet
i have tried to generate the lwip code using cubemx for stm32h743zi nucleo but getting .can some one help mw with .ioc file to create a basic lwip program.i have attached the error that iam getting
Right at the moment I have 2 software, Atollic TrueStudio & STM32CUBE_MX . I am pretty confused, which one to use for an STM32-Cortex M4 ? Is there any difference between Atollic TrueStudio & STM32CUBE_MX software? Which one is stable? thanks
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.