Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
Hi everyone,I'm trying to configure LWIP for a custom board using stm32h730 and ksz8863mll PHY.Unfortunately within CubeMX there is no advanced settings tab in ETH and in LWIP on Platform Settings tab there is nothing but LAN8742 selectable.As far as found in other posts I should be able to select something like userPHY.Am I missing something or is this just another bug in CubeMX?I'm aware I'll probably have to implement some custom code for the ksz8863mll but I would really like to tell CubeMX not to basically revert all my changes whenever I press generate...
I have a situation where I use all I/O on an STM32L476RG. One of the units only sends UART data, so I want to configure the LPUART for Rx Only to keep the Tx pin free as GPO.Cube has "Advanced Setting"; I've selected "Receive Only". But unless I enable the transmitter pin, Cube reports an error and refuses to generate code -> so it seems Cube ignores my Advanced Settling? How to get this fixed?STM32CubeIDEVersion: 1.11.2Build: 14494_20230119_0724 (UTC)FW Package = STM32CubeFW_L4_V1.17.2
Yesterday I was able to generate code normally using STM32CubeMX. But today I am generating code again using STM32CubeMX with a lot of undefined code. I sent the file to a friend and found that he generated the code once again using STM32CubeMX and it worked. But my computer still can't generate normal code again.
Hello,I am working on STM32h745 controller. In cortex M4 I enable two ADC3 channels. Read the ADC value using DMA method. Only one time I get the ADC value after that it shows busy. Also I changes the sampling time, but no effect. But that ADC3 channels properly work in cortex M7 using DMA method. Can you please help me.
When DMA is used, the MX_DMA_Init shall always be called before any other HAL_***_Init (where *** is any peripheral with a HW dependency on DMA init code).A regression was detected in the previous STM32CubeMX version 6.3.0 (STM32CubeIDE Version: 1.7.0 ) generating a wrong order of initialization functions.This issue was fixed in the latest STM32CubeMX version 6.4.0. Thus, newly created project with this version will generate the correct initialization functions order.Because the calling order is saved into the ioc file, the misplacement call to MX_DMA_Init() remains the same when trying to migrate automatically an old project from a buggy old version to the fixed version. The order stays the same and the generated code will be unfunctional.For any old ioc file created by any STM32CubeMX version up to 6.3.0 included, hereafter some steps to overcome this misbehavior:Open the saved .ioc file (already created with 6.3.0 version) with any text editor installed in your machine and delete th
Hi There, I'm trying to use the STM32H743Zi2 nucleo board for test purpose. I configured the board with default settings ( when asked by CubeMX after selecting the board for a project). Means i basically did nothing (except assigning 1 ADC ppin and leaveing the rest untouched). I then tryed to configurate the Clock to use the 480MHz advertised in the datasheet, but Cube MX seems to be willing to accept only CPU Clocks below or equal to 300MHz. There seem to be a rounding problem while setting up the PLL values, as in the ioc file they appear to come out with decimal values that don't exist.main problem is still that even if setting values way below the 480MHz, CubeMX doesn't accept anything above 300MHz ( according to the hint given while hovering the error with the mouse)I had that problem once with another board, and had no other choice than restarting the project from the scratch, but that didn't work out that time. Cube MX is up to date(v6.7.0), and MCU Package also ( v1.11.0 for
..
I use STM32F7508-DK generate freertos LWIP project, I can build the project,and download the target,the project can get an ip from router,but I could not ping it,by debug, the HAL_ETH_IRQHandler(){}the error code is HAL_ETH_ERROR_DMA, hal version is 1.17.0
I will give you some context about what I am doing and my problem.I am using a STM32H723ZG board for a project. In this project I must sample the signal coming from an image sensor that sends the pixel values as pulses with analog amplitudes. This sensor also provides a trigger signal so that the pixels data should be sampled at the rising edge of the trigger signal (an example is shown in the image below).T_SAR (sampling time in terms of ADC clock) and T_SMPL (conversion time in terms of ADC clock) define how long the sampling and conversion process takes. Based on the application note How to get the best ADC accuracy in STM32 microcontrollers, it is difficult to estimate the Sampling Time for the ADC in order to fill completely the internal capacitors. So I used the SAR stimation tool (shown in the page 37 of the mentioned application note) to estimate that 8.5 adc cycles were necessary for the sampling operation for a 16- bit ADC with a resolution of 12 bits in fast channel (th
Hi!I'm trying to get a LAN9303 to work with an STM32F753.Surprisingly, I don't see in the Cube how to activate the LWIP (it's greyed out...) in the Cube.How can I manage to activate it?To sum up my project, I'm looking to do something simple:My electronic card is connected to a PC via a Switch (3 sockets on the Switch - 2 to the card (lan9303) - 1 to the PC).From my electronic card, I want to send two Ping commands to the PC (one from each of the LAN9303 ports).Would you have an example that I can figure out how to achieve this?
We are pleased to announce you that the official release of STM32CubeMX v6.7.0 is available for download hereWhat is new in STM32CubeMX V6.7.0?New CPNs: STM32WL STM32WL5MOCHxBoards:STM32WB STEVAL-PROTEUS1 STM32F0 STM320518-EVALST32WL B-WL5M-SUBG1"CAD Resources" support in CubeIDEI-Cube "MadeForSTM32" examples description generationSTM32L5: Cohabitation CubeAzure USBX (pack) & UCPD (MW)STM32F7 and STM32F4: Both ETH_RX_BUFFER_SIZE and ETH_RX_BUF_SIZE constants are specifying the size of the same bufferMWs upgrade:TouchSensing v2.2.8 for WBUSB Device Lib v2.11.1 for L5, WB and H7USB Host v3.5.0 for H7USBPD Library v4.1.0 & device l5_v5.0.0 for L5USBPD Device v3.4.1 for G0Open Thread 1.3 for WBKMS v1.1.9 for WLMain fixed issues130537 [Project Manager] Wrong call order for MDMA/DMA Init functions119809 [MX-L5][CodeGen] Warning generated when IP initialization as a pair of .c/.h125698 [Cortex-M7] No default MPU configuration is proposed126668 [MX-HRTIM][LL] Issue in HR
Hello,I've started using the FDCANs on a STM32H735G-DK, trying to communicate FDCAN1 with FDCAN2, as a start using HAL and Cube MX and the repository examples.All com with extended IDs was working, standard IDs when FDCAN1 as transmitter worked, but the other way did not work.So I checked the filter settings and found that all of FDCAN1's filters with sFilterConfig.IdType = FDCAN_STANDARD_ID; and sFilterConfig.FilterConfig = FDCAN_FILTER_TO_RXBUFFER;had some crappy numbers, so FilterID1 was not what it was set to.Strangely, this only happened to FDCAN1.I checked the registers for some memory overlap, all okay, then I reset the sFilterConfig at the start of the init function, and all of a sudden filter IDs were okay.void MX_FDCAN1_Init(void){ FDCAN_FilterTypeDef sFilterConfig = { 0 };...I still don't get why that happened only to FDCAN1.
Hi,I installed the latest version of STM32IDE on Mac (Ventura 13.2.1 (22D68))STM32CubeIDEVersion: 1.11.2Build: 14494_20230119_0724 (UTC).the interface opens without problems. When instead I try to create a new project, a satellite update program opens and everything closes (crash), I can't get out of it.Can you help me ? Thank you
Why do I need to debug my project every time to make it stm32 work?What is the reason why the system does not work when I turn it off after disconnecting it from the computer?For the system to work, I need to connect it to the computer, then when I debug, it works without any problems.
Hello,I was trying to setup a prototyping project using the NUCLEO-L031K6 examples. But the current CubeMX version 6.7.0 does not seem so know about this dev board at all.Is this a bug or is this nucleo board not fully supported by CubeMX?
I've reviewed numerous similar posts and the UART_TwoBoards_ComIT example, but have found no solution. My code is being generated by Cube 6.6.1 for the STM32F446. The UART5 Global Interrupt is enabled. My code and the example code both contain UART5_IRQHandler(void), HAL_UART_IRQHandler() and HAL_UART_RxCpltCallback(). After my app calls HAL_UART_Receive_IT(), UART5_IRQHandler() is being called, presumably with every character received. But HAL_UART_RxCpltCallback() is never called. I am only interested in HAL_UART_RxCpltCallback() after all data has been received. I've found no instructions on how to enable HAL_UART_RxCpltCallback(). It seems to happen magically. Must UART5_IRQHandler(void) interrupt be enabled to get HAL_UART_RxCpltCallback() enabled? And how do I get HAL_UART_RxCpltCallback() to work? Thanks.
hello. I've never used STM32 before.I'm trying to use it this time. It requires several pins of GPIO and 3 channels of I2C.I searched and the STM32F301 seemed suitable, so I designed a circuit using it.I tried setting the PIN using a setting tool called CUBEMX, but there seems to be something wrong.If I set up I2C3 of STM32F301 using cubemx, exclamation marks appear on all I2C channels.can i know what is the problem?
Is there an official github page for STM32CubeIDE and/or STM32CubeMX to which we can raise an issue regarding the software as well as provide a fix for it? That way the community can contribute to this software (even though it probably is a closed source software).
I am trying to test a CustomHID from the STMCubeMX code and the project does not seem to work as intended.When I use the HID Standalone example for the STMH735G Dev Kit the project works as intended however when I try to set it up with the CustomHID windows gives this error. I changed the clocks to match the HID Standalone project with a max clock of 520mhz.Wondering what I am doing wrong or if there is some setting that needs to be modified for this to work properly. Looks like everything is setup and should work already but doesn't
This is using STMCube and an STM32F4-discovery with an STM32f429I
Hello,I am testing a STM32C0 MCU to see if it might be good for a project I'm working on attracted by the price point, but I have to say that I have some unexpected problem.Among several the most relevant is multichannel DMA based ADC conversion that, no matter what I do, I can't have working.The application runs the error callback at the first conversion start.The ADC is in single conversion mode triggered by software and I have set a timer running every 50 milliseconds to run the conversion. I have also tried to connect the timer directly to the ADC to trigger automatically the conversion but the result is absolutely the same.The system is running at 48MHz.The conversion works correctly in interrupt mode on a single channel.Can anyone help?This is my code:#define ADC_CONVERTED_DATA_BUFFER_SIZE ( 2UL) /* Init variable out of expected ADC conversion data range */ #define VAR_CONVERTED_DATA_INIT_VALUE (__LL_ADC_DIGITAL_SCALE(LL_ADC_RESOLUTION_12B) + 1) extern TIM_Ha
I am using the SW pins as GPIO outputs for Softpwm generation.(DMA+GPIO)All works great if i do "continue", but when i decide to "migrate" the cubeMx to the last version and i click regenerate code.... the SWDIO and SWCLK pins are not used as GPIO outputs.
Hi everyone,I'm working on a project with an STM32L072C6T6.I'm using LPUART1 DMA to get data from my LPUART with interrupt when the bus go idle.My soft working when, after power on the device, i push the reset button of the MCU. All start correctly.But when I try turn on my device with only power ON, no interrupt from LPUART occur.I have verify my data send on my LPUART bus, it's OK (all data receive and good quality of signal)I use DMA for LPUART and USART1 and USART1 works great with every power on method and i have implement LPUART in the same way that USART1I have debug the DMA state (HAL_DMA_GetState) and i have seen that when my error occur it's because my DMA state for LPUART stay ready and never become busy like my USART1.I check in the same time DMA error (HAL_DMA_GetError) but no error occurDo you have advice that can put me on a way of a solution ?I attached CubeMX configuration screen and function that i use to use the LPUART DMA.Best regards,Lamvoid HAL_UARTEx_RxEventCallb
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.