Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
I would like to know if there is any "easy" way of getting the following setup working:NUCLEO-H723ZG dev boardEthernetLwIPSTM32CubeMX projectNo FreeRTOSBeing able to ping the dev boardI've found the following (and can get them running):https://community.st.com/t5/stm32-mcus/how-to-create-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308 But it has FreeRTOShttps://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H723ZG/Applications/LwIP/LwIP_TCP_Echo_Server But it does not use STM32CubeMXAs soon as I try to remove FreeRTOS or add STM32CubeMX something breaks. There was some news that such an example could be provided:https://github.com/stm32-hotspot/STM32H7-LwIP-Examples/issues/1#issuecomment-1273500646Perhaps there is an update? Alternatively, what is the easiest way to ping the NUCLEO-H723ZG dev board starting from an STM32CubeMX project? I am interested in creating a small TCP server.
My MX Repository has grown to more than 40 GB which is not exactly fun on the SSD of my MacBook. So I was wondering what made it so big.There seem to be all the zip files of all installed firmware packages. Does CubeMX/CubeIDE ever use them again?And what about the older revisions of the firmware packages? Is it safe to remove them?
It seems STM32CubeMX has a bug related to the STM32H5's HMI BSP component. If you do not wish to use this BSP component and want to configure the affected pins manually (like with other boards that do not have this HMI BSP component), the project will not properly reload the saved settings. Steps to reproduce:1. Start a new STM32H5 project in STM32CubeMX (v6.10.0)- Specify board: NUCLEO-H563ZI- Select: "without TrustZone actived"- Unselect: "Human Machine Interface"2. Change the configuration of one of the pins related to the LEDs, (Blue) Push Button, or ST-LINK UART- The related pins are:- PB0 (LD1, Green)- PF4 (LD2, Yellow)- PG4 (LD3, Red)- PC13 (Button)- PD9 (UART RX, for STLINK VCP). It's also worth noting the label applied is "VCP_TX" here, which is confusing as it does not match the function of the pin (I think someone wanted to match net-names instead of labelling it with the pin's function).- PD8 (UART TX, for STLINK VCP) Same as above this is labelled as "VCP_RX" and
Hi everybody,I installed the last version of STM32Cube IDE (1.2.0) on two different computers, one is win7 an dthe second one is win10. When i strictly follow the tutorial to create a working project, I can see in both situations that the src folder is not created after STM32CubeMx perspective has been invoked. I cannot find any solution on the net, any solution or suggestion will be more than welcome. I must add that I can see a mx.scratch file is temporarly created too. I think that an erro log is created but I do not know hwere it is stored. Thanks,ol.
Hi,I am trying to configure multiplexed OCTO SPI for the above MCU.Only Chip Select Port 1 NCS comes up as an alterantive for OCTOSPI1, and for OCTOSPI2 the Chip Select Port is is disabled, I would have expected Port 2 NCS to come up here... Is this a bug or am I missing something?
Hello,i'm trying to set up a new project with CAN in Interrupt mode. Therefor i generate a project with stm32cubemx and enabled the interrupt 0 for fdcan1 and also in the NVIC-settings the Interrupt is enabled:In polling mode, i can receive Frames and got no problems. When i try the to use the NVIC, the ISR-Adress is wrong an it don't jump to the generated "FDCAN1_IT0_IRQHandler". The Controller jumps to an undefined Adress: In the startup_stm32l553cetx.s the spelling of the ISR is correct.I've tried to get some more informations about the vector table. The ISR for fdcan_it0 should be in 0xbf900dc, the function of NVIC_GetVector gives me the Adress 0xbf97755.Do you have any idea for a solution?Greetings
After updating STM32Cube IDE and Cube MX I have ran to a problem of not being able to enable certain middlewares, in this case LoraWan. I did not have this problem before updating. I was wondering if there is a new process in enabling this middleware? When looking at 'manage software packs' in mxcube, the pack that pertains to the chip I am using is shown as installed and contains lorawan. But the enable button of the lorawan middleware is unelectable. Any suggestions?
I am adding ethernet connectivity to an existing STM32H743 project and am using the STM32CubeIDE V1.9.0 / STM32CubeMX V6.5.0 and H7 firmware FW V1.10.0. I have followed the guides on setting up the various memory settings and have had success getting a TCP echoserver working. However, I need to modify the responses from the echoserver and as soon as I start to add my code to run the necessary logic to determine the responses, I get memory related problems, causing either a mem_handler fault or failing an ASSERT. The failure I am currently getting is an ASSERT that outputs: Assertion "pc->custom_free_function != NULL" failed at line 767 in ../Middlewares/Third_Party/LwIP/src/core/pbuf.c. I have had a look at where the pbufs are being allocated and they appear to be in the RAM_D1 area. Is this correct and if so, any ideas what is causing this problem? Many thanks.
在使用CubeMX生成Makefile工程文件时,在Mid中间件选项中选择“X-CUBE_ALGOBUILD”选项,并添加DSP Library,但是在最后的生成的项目文件中并没哟dsp.lib文件,应该是一个bug,望修复
Hello,I use STM32CubeMX in a shared project and different developers use different tools to work with its output. So e. g. I want code generation with a makefile output while others use the STM32CubeIDE.Currently every time when I click "generate code" the project is saved and its .ioc file is overwritten. This is annoying since after I push commits, the next person has to change it again (and adding it to the .gitignore would mean I have to remember including it again when I make actually meaningful changes in the project file). Code generation is not needed a lot after everything has been set up, but nonetheless this is annoying since quickly trying out some stuff without remembering to revert everything manually is not possible. How do I turn this off? I only want to save the project when I explicitly ask CubeMX to do so.
WHILE PROGRAMMING STM32F407 "DEV_TARGET_RESET_ERR'' ERROR IS REFLECTING
STM32CubeMX release 6.9.0 contained support for processing before and after code generation. The documentation does not appear to be updated to describe how this works.What kind of file and scripting is expected for this feature?
CubeMX version 6.10.0Chip is STM32H563IIKxFirmware package is STM32Cube FW_H5 v1.1.1 (which is the latest shown in the software packages manager).Neither USB_DEVICE nor USB_HOST is listed in middlewares:As can be seen, my project involves FreeRTOS which eliminates THREADX and USBX as options.All the information I can find online about creating a USB CDC (Virtual COM Port) implementation involves configuration using USB_DEVICE middleware. What is the correct path now, since USB_DEVICE is not present? Switching to THREADX is not a feasible option.
I want to use STM32U5 ADF in LPBAM Mode, I can't see the ADF option in the CUBE MX LPBAM design configuration. I want to use ADF in stop 2 mode with LPDMA and SRAM4 I have the ready code for ADF and LPDMA I wish to operate them in LPBAM Mode.
HelloI've seen tons of posts about this, I'm hoping I'm just missing something simple, I would really love to get this working. STM32H723ZG, DMA TX works, I can send a sine wave fine but the RX buffer never changes and is never filled. I've put the RX and TX buffers in D2RAM but this seems to make no difference. DMA half and complete callbacks trigger fine, everything else seems to be running right the RX just wont fill. I2S = 96khz, 32bit on a 32bit frame, DMA= half word, circular __attribute__ ((section(".rxBuffer"), used)) __attribute__ (()) uint16_t rxBuf[8];__attribute__ ((section(".txBuffer"), used)) __attribute__ (()) uint16_t txBuf[8]; HAL_I2SEx_TransmitReceive_DMA (&hi2s2, txBuf, rxBuf, 4); //in flash file.buffers(NOLOAD) :{. = ALIGN(4);. = ABSOLUTE (0x30000000);*(.rxBuffer). = ABSOLUTE (0x30000040);*(.txBuffer)} >RAM_D2
We are using custom board with STM32H735. We were debugging the same issue as this one. In the reference manual RM0468, we discovered this note:I think this means that even when not using calibration unit, FDCAN kernel clock must be <= than APB1 peripheral clock. My question is why does CubeMX Clock Configuration not check this requirement? Would you consider adding this check?
Hi, engineers of ST company. I want to consult you a problem about generating code for 'SysTick clock source'.Let us look at the first picture from documentation PM0215 page 63, there introduces the function of 'SysTick control and status register', and says that the 'CLOCKSOURCE' bit(bit 2) is to select the clock source for SysTick.Then let us look at the second screenshot from STM32CubeMX-6.1.2, the red highlight rectangle part is used to let us configure which clock source to be used for SysTick, HCLK(HCLK/1) or HCLK/8.Combine the above two picture, I think if we choose to use HCLK(HCLK/1) for SysTick, then the 'CLOCKSOURCE' bit from 'SysTick control and status register' will be set to 1, and if we choose to use HCLK/8 for SysTick, then the 'CLOCKSOURCE' bit from 'SysTick control and status register' will be set to 0.If my understanding is correct, then the function of STM32CubeMX to produce code for the 'CLOCKSOURCE' bit might be wrong. Because whether I choose HCLK
I use with CubeMx to generate FreeRTOS in stm32hf, and i would like to upgrade to version newer than FreeRTOS 10.3.1 (because security issues in this version) so, i took manually the newer FreeRTOS files(10.5.1) and replaced them instead what that CubeMX generated, except from FreeRTOSconfig.h file, its work well.the questions is,does it's enough for upgrading of new version(even though, FreeRTOSconfig.h file that cubeMX generated in older version ,was left)? if there is any expected of releasing new ver of FreeRTOS in CubeMX? there is any reason that CubeMX not upgraded from 10.3.1 ver, til now(there is any issue in newer versions than 10.3.1)?.thanks. thanks.
Hello community,I use STM32CubeMX 6.10.0 in Ubuntu 23.10.Each time I start a session, I noticed that about 65 MBytes of data are used in ~/.stm32cubemx/.jxbrowser-7.35.1/Profile/xxxx which are never deleted when I exit.A new profile subfolder is created each time, whereas I am the only user of the tool on my system, what does that mean ??After a few weeks working, the total amount of wasted space can reach a few GBytes !Note that I get the same issue with STM32CubeIDE 1.14.0, see my message here https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-creates-a-lot-of-garbage-in-user-home-directory/m-p/622710#M23007The only difference is that with STM32CubeMX it occurs when using the "Manage Embedded Software Package" menu, whereas with STM32CubeIDE it occurs always...
Hello community,I have just installed the latest release 6.10.0 of STM32CubeMX on latest Ubuntu 23.10 and tried to play a little with it.Previously I was using a very old release in my projects and uninstalled it quite a long time ago for many reasons.Now the first thing I notice is this kind of connected stuff which obliges me to create an account and login every time I need to download a new MCU pack. What is the point to do that ? As far as I know, this contents is public and has always been for years. Moreover it is fully available in GitHub repositories. I don't get the added-value for a single user like me to be logged to do that. Is there any big data analysis behind ? I know I have to consent to let ST collecting personal data when I install the tools, but hey ST... be honest and tell us what you really do with them. I am just basically using your tool, I am not doing sensitive things and I don't own sensitive data either.Most of the time my way of working is totally off-line t
Hi,I need help configuring a USART connection between a STM32L452RE Nucleo Board and a ESP8266-01 wifi chip. My goal is to send AT Commands from the STM32 to the ESP8266.I currently have my USART TX and RX connected to the RX and TX respectively of my ESP8266 board, and I've noticed that the LED is flashing on the ESP8266 when debugging through these commands, indicating that a signal is indeed being sent via my USART. However, i've noticed that the data has been scrambled on send and receive, as if i change the password to my wifi hotspot, I am unable to connect to it. By piping the USART1 RX directly to my serial monitor, I noticed a significant amount of scrambling.I have proved that this sequence of commands works as intended, and have been able to connect my ESP8266 to an arduino uno, as well as an STM32 bluepill using RX and TX in default mode, but my attempts to get my project to work on the STM32L452RE have failed.The way that I am piping the commands is shown above, and the ou
Hi all, Currently I am trying to program the STEVAL-MKI109V3 carrying the STEVAL-MKI227KA sensor board via the STM32cubeMX and IDE platforms. However the STEVAL-MKI109V3 board is not available on the STM32cubeMX software. Are there any expansion packs or such that I can download to support a preconfigured board like the MKI109V3? Thanks in advance!
I'm using STM32H733VGT6, USB configured as: External Phy: Device_Only,Speed: Device Full Speed 12 Mbit/s, USB tacting from HSI48 And initialization ends up in Error_Handler(), anyway.. All is up-to-date, updated today, software packages, etc, STM32CubeMX version: 6.10.0 Initialization trace is:MX_USB_OTG_HS_PCD_Init() -> HAL_PCD_Init(&hpcd_USB_OTG_HS) -> runs USB_CoreInit (line 184 of stm32h7xx_hal_pcd.c) -> runs USB_CoreReset (line 101 of stm32h7xx_II_usb) -> returns HAL_TIMEOUT (line 1413 of stm32h7xx_II_usb) -> returns to Error_Handler() Any suggestions? Thanks in advance
I use STM32L431 with STM32CubeMX generating code.If my main function execute like below, the power consumption is 0.35mAint main(void){ HAL_Init(); SystemClock_Config(); MX_GPIO_Init(); MX_DMA_Init(); MX_LPUART1_UART_Init(); MX_USART1_UART_Init(); MX_RNG_Init(); MX_TIM2_Init(); MX_USART3_UART_Init(); MX_TIM15_Init(); MX_RTC_Init(); for(;;) { HAL_UART_DeInit(&hlpuart1); HAL_UART_DeInit(&huart1); HAL_UART_DeInit(&huart3); HAL_SuspendTick(); HAL_PWREx_EnableLowPowerRunMode(); HAL_PWREx_EnterSTOP2Mode(PWR_SLEEPENTRY_WFI); HAL_PWREx_DisableLowPowerRunMode(); SystemClock_Config(); HAL_ResumeTick(); HAL_UART_Init(&hlpuart1); HAL_UART_Init(&huart1); &nbs
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.