Developer support experience survey - We value your feedback
Join discussions in the Product Forums. Ask questions, learn from your peers, and share insights on ST solutions to accelerate your design journey.
Most recent activity
Hello, I needed the pin list of the STM32F767NIH7 for library purposes, but when I tried to export the pinout to CSV in Cube MX, some alternative functions seemed to be missing. Here’s something I noticed: RTC_* AFs were missing, no pins had them, except RTC_REFIN on PB15. DS11532 Rev 9 Table 11 has the alternative functions listed for pins, but not Table 13. All the WKUP AFs were missing as well. DS11532 Rev 9 Table 11 has the alternative functions listed for pins, but not Table 13. PC13 and PI8 doesn’t have any AF as the result, I didn’t check if other AFs match with the datasheets. Cube MX itself had the AFs on the pins as expected, the missing ones were only in the CSV export. Is this an error in the device database? Please see images below for details, thanks! The export function I usedCSV line for PC13, showing no AFAlternative functions in Cube MX
Hi,I need some information regarding VBUS sensing configuration in MCSDK. Here’s the relevant screen when editing a board:I am confused because R1, R2 and R3 are not marked on the schematic so don’t know what they refer to. My guess is that R1 is the top resistor in the voltage divider, R2 is the bottom one? But this is just a guess. Maybe R3 is series to the MCU pin? It’s nowhere to be found on the picture.Also please explain the need for an explicit “Bus Voltage Divider” parameter. Isn’t this redundant provided that it’s determined by the resistors? Or is this something else? What’s the idea here?Thank you, Szabi
In the "Debug Configurations" window (or at least that is the only place I have verified it so far), when scrolling down to access the options at the bottom, the mouse pointer might accidentally hover over a combo box. If you continue scrolling, the combo box cycles through its options down to the last value before the main window continues to scroll.This can cause (and has caused me) quite a few headaches while debugging one of my projects.I believe the correct approach would be to disable this scrolling behavior for combo boxes to prevent accidental changes.Best regards!
I’m using an STM32WB6MM-DK as a BLE sniffer and all works well until I try to “follow” a connection as described in https://wiki.st.com/stm32mcu/wiki/Connectivity:STM32_Sniffer_for_BLE_User_guide#Following_a_connectionAfter carefully following the instructions, I get nothing. When I try to paste the original 00:00:00:00:00:00 back into the target window and starting a capture, the window or save or not pops up and when I select discard, it seems to start, but no data is captured. On hitting stop, an error window pops up to the extent of “attempting to use a port that is not open.”Am I doing something wrong or have the Wireshark plugin scripts changed recently?
We are developing the CoCaptain Bosun, a battery-powered marine tracker and anchor alarm for sailing yachts (ESP32-S3, LTE Cat-1 modem, dual-band GNSS, 1S Li-ion with BQ25895 charger, boat supply 9-32 V). Prototype run of 5-10 boards at JLCPCB, 4 layers, 90 x 70 mm. The schematic was drawn in KiCad 10; sheet titles and some comments are in German.The attached sheet shows the ISM330DHCX (U17) and the IIS2MDC (U18) on the shared I2C bus (3.3 V).ISM330DHCX in Mode 1, SDx and SCx tied together to GND via 10 kΩ. Is a common resistor acceptable? IIS2MDC: C1 = 220 nF, about 1.3 mm from pins 5/6. Is this close enough? INT/DRDY is not used and tied to GND through 100 kΩ (forum reports of high idle current with the pin floating). Is a pull-down the right choice, or should it be left open with the interrupt disabled?Thank you very much for your time.Best regards,Robert FraefelCoCaptain (cocaptain.ch)
… but ST documentation is still referring to it as “Azure”; eg, https://dev.st.com/stm32cube-docs/mw-usbx/2.0.0/en/docs/markup/faq.html and:and:https://wiki.st.com/stm32mcu/wiki/Introduction_to_USBX#Introduction I think this is also out of date:There are now USBX examples available without ThreadX - aren’t there?
In STM32CubeMX v6.17.0, in the left side of the Pinout & Configuration panel, if the mouse cursor is within a table that lists peripherals, the scroll wheel doesn't do anything. I expect it to scroll the window. You need to move it outside of the table but still within the bounds of the "Categories" tab in order to scroll up and down. This is super annoying because it means you have to have the cursor on the far left or far right of this window otherwise a table will appear when scrolling and the mouse wheel will stop working.In the screenshot, having the cursor anywhere in the red box will stop it from scrolling. I expect it to scroll the green scrollbar.
With the recent split of STM32CubeIDE and STM32CubeMX, I'd like to propose a dark mode option be added to STM32CubeMX.In consideration of the competing priorities for STM's software development team, I have two suggestions for how this proposal could be implemented:The first suggestion is the typical route: STM's in-house software development team add the UI theming and inputs to switch between dark and light mode.The second suggestion is less typical: make STM32CubeMX open source and let the larger software community assist with adding dark mode. Perhaps the source could be placed alongside other repositories in STM's current GitHub account....The benefits of adding such an option would be as follows:Consistency with STM32CubeIDE, from which STM32CubeMX was split from (STM32CubeIDE already has a dark mode)Consistency with the vast majority of other software in the industryConsistency with what has become a common user experience across operating systems, browsers, and setups in g
Helloi’m using USBX 6.4.0 with CUBEMX to make a custom id device on a stm32H5 everything work fine BUT my report descriptor have four report ID i wanto to use :hid_event.ux_device_class_hid_event_report_id = 3;// some data in the bufferux_device_class_hid_event_set(hid_custom, &hid_event); and in order to do that i have to change custom_hid_parameter.ux_device_class_hid_parameter_report_id = UX_FALSE;to custom_hid_parameter.ux_device_class_hid_parameter_report_id = UX_TRUE;in the function: UINT MX_USBX_Device_Stack_Init(void) i can’t find in cube MX the property to change.. where is it?? thank you in advancebest reguards
I'm trying to configure and generate a project with STM32CubeMX for the STM32WBA5MMGHx BLE module.When enabling the STM32_WPAN middleware, the ADV_TRACE module gets automatically enabled under Utilities. This in turn requires to enable at least one UART/LPUART peripheral, otherwise type UART_HandleTypeDef is undefined and compiler throws and error:../../Core/Inc/app_conf.h:304:8: error: unknown type name 'UART_HandleTypeDef'; did you mean 'RTC_HandleTypeDef'? [build] 304 | extern UART_HandleTypeDef huart1; [build] | ^~~~~~~~~~~~~~~~~~ [build] | RTC_HandleTypeDefThe STM32_WPAN throws a warning about not configured/wrong Platform Settings.Is there any possibility to configure STM32_WPAN without ADV_TRACE enabled?Used STM32CubeMX version is 6.17.0 and WBA firmware v1.19.0 and cmake project is generated.
I found what looks like a reproducible STM32CubeMX code generation bug for STM32H5 USBX device projects.I tested this on a fresh project, so this does not appear to be a migration issue from an older codebase.ProblemCubeMX generates these USBX init functions:MX_USBX_Init()MX_USBX_Device_Init()MX_USBX_Device_Stack_Init()However, the generated call flow only invokes:MX_USBX_Init()MX_USBX_Device_Init()and never calls MX_USBX_Device_Stack_Init().That is a problem because MX_USBX_Device_Stack_Init() contains the actual device stack setup:ux_device_stack_initialize(...)class registrationux_dcd_stm32_initialize(...)Without that function running, the USB peripheral can start and receive a reset interrupt, but USBX has not been given valid device framework pointers yet.Observed failureWhen USB_DRD_FS_IRQHandler() fires and the USB reset path runs, the code eventually reaches:HAL_PCD_ResetCallback()_ux_dcd_stm32_initialize_complete()_ux_utility_descriptor_parse(...)and h
CubeMX 6.16.0's "Memory Management" Tool assumes Rx_PoolSection size to coincide with the Eth "Rx Buffers Length" - is that correct? I used CubeMX 6.16.0 to create a project for an STM32 H755ZI-Q.Then I opted to use the Tools -> "Memory Management" tool and afterwards enabled the ETH [ethernet] component. This automatically generated the required sections in the "Memory Management" tool. Great.Then I enabled LwIP [with RTOS and CMSIS v2] and generated code.Compiling this code worked - linking however did not. It told me the contents of Rx_PoolSection were too big, i.e. the section too small: EBoxNG3_CM7.elf section `.Rx_PoolSection' will not fit in region `Rx_PoolSection'region `Rx_PoolSection' overflowed by 225668 The buffer for the RX_POOL is declared in CM7\LWIP\Target\ethernetif.c:98:#define ETH_RX_BUFFER_CNT 12U LWIP_MEMPOOL_DECLARE(RX_POOL, ETH_RX_BUFFER_CNT, sizeof(RxBuff_t), "Zero-copy RX PBUF pool");with__attribute__((section(".Rx_PoolSection"))) extern
Using project setup from NUCLEO-U3C5ZI-Q, when ADC1>ADCs_Common_Settings>Mode is set to `Dual regular simultaneous mode only` CubeMX fails to generate the HAL_ADCEx_MultiModeConfigChannel() call to configure the ADCs for dual mode. This must be manually added by the user, otherwise the slave ADC does not trigger conversions. I believe this call was supposed to generate in MX_ADC1_Init. Am I missing something here?Here is my ioc file:#MicroXplorer Configuration settings - do not modifyADC1.Channel-2\#ChannelRegularConversion=ADC_CHANNEL_3ADC1.ConversionDataManagement=ADC_CONVERSIONDATA_DMA_CIRCULARADC1.DMAAccessModeView=ENABLEADC1.EOCSelection=ADC_EOC_SINGLE_CONVADC1.EnableInjectedConversion=DISABLEADC1.ExternalTrigConv=ADC_EXTERNALTRIG_T1_TRGOADC1.IPParameters=Rank-2\#ChannelRegularConversion,Channel-2\#ChannelRegularConversion,SamplingTime-2\#ChannelRegularConversion,OffsetNumber-2\#ChannelRegularConversion,MonitoredBy-2\#ChannelRegularConversion,NbrOfConversionFlag,NbrOfConvers
Hi,I'm using STM32H5F5LJHxQ. External HSE Oscillator is 48MHz. RTC clock mux is set to HSE_RTC, divider set to "/48" and the tool shows correctly that RTC clock is 1000kHz (48MHz / 48).During my tests I discovered a wrong RTC time, error ~2%. (1.2 seconds deviation per minute)In the generated function HAL_RTC_MspInit() is see: (49 instead of the expected 48)PeriphClkInitStruct.RTCClockSelection = RCC_RTCCLKSOURCE_HSE_DIV49; If I change the configuration in CubeMX to create a divider of 47, the correct RCC_RTCCLKSOURCE_HSE_DIV47 is generatedIf I change the configuration in CubeMX to create a divider of 49, the correct RCC_RTCCLKSOURCE_HSE_DIV49 is. generated.If I manually set the correct RCC_RTCCLKSOURCE_HSE_DIV48 in the sources, the RTC runs correctly. Regards,Gunnar BohlenHMS Networks
I attempted to convert a CubeMX project to start using the “Generate peripheral initialization as a pair of ‘.c/.h’ files per peripheral” option and CubeMX left three peripheral handle declarations in main.c which conflict with the declarations in their individual files: handle_LPDMA1_Channel0, hlptim1 and hlptim3. Many other peripheral handles were correctly removed from main.c, including other LPDMA channel handles.Can anyone help me figure out what’s going wrong and how to fix it? I suspect that this may be because they are used in our LPBAM setup.
CubeMX allows the user to change the Preemtion Priority of the “System service call via SWI instruction” / SVCall_IRQn.When its not at the default value of 0, CubeMX generates this HAL_NVIC_SetPriority(SVCall_IRQn, X, X); inside HAL_MspInit(). When USE_FULL_ASSERT is enabled this function call triggers an assert. Namely assert_param(IS_NVIC_PRIO_INTERRUPT(IRQn)) where IRQn is SVCall_IRQn and IS_NVIC_PRIO_INTERRUPT(X) checks if IRQn is != to SVCall_IRQn.I noticed this on a STMU385, using CubeMX version 6.18.1Best Regards, Cecil
STM32CubeMX 6.18.0MCU: STM32H563RIT6To my understanding, this uses STM32CubeH5 1.7.0 Start a new project and enable ThreadX and NetX Duo.In “NETXDUO Mode and Configuration”, enable “NX Core”, “Crypto” and “TLS”In configuration, parameter column “NetXDuo” there are check-boxes for:TLS CORENX_SECURE_TLS_ENABLE_TLS_1_1NX_SECURE_TLS_ENABLE_TLS_1_3NX_SECURE_TLS_TLS_1_2_ENABLEDNX_SECURE_TLS_TLS_1_3_ENABLED This is a bug.According to https://github.com/eclipse-threadx/rtos-docs/blob/1e36a62618de3771c973196e7648cba50d19cf1f/rtos-docs/netx-duo/netx-duo-secure-tls/chapter2.md#configuration-options the proper configuration options areNX_SECURE_TLS_ENABLE_TLS_1_3 Defined, this option enables TLSv1.3 mode. TLS 1.3 is the newest version of TLS and is disabled by default. NX_SECURE_TLS_ENABLE_TLS_1_0 Defined, this option enables the legacy TLSv1.0 mode. TLSv1.0 is considered obsolete so it should only be enabled for backward-compatibility with older applications. NX_SECURE_TLS_ENABLE_TLS_1_1
I want to manage a uart in reception with a DMA in circular mode using "low level" functions on a STM32U575ZITxQ processor. The initialization of my code is done with STM32CubeMx 6.13.0.In the "Project Manager->Advanced Settings", I chose "LL" for "GPIO", "GPDMA", "TIM" and "USART".In "Sytem Core->GPDMA1" channel1 is configured in circular mode with a "request" = USART1_RX.When I generate the code, the following code is generated for the uart initialization function:Unfortunately, as we can see, the node "Node_GPDMA1_Channel1" is declared local to the function, which makes its effective use impossible (unlike the "HAL" functions which make the node global).For my code to work (and it does), it is necessary that I take the node declaration out of the function and make it global.Of course, I have to repeat this change every time I regenerate the code with STM32CubeMx...Is there something I didn't do correctly, or is this an STM32CubeMx issue?
Hello ST team,I am using the NUCLEO-N657X0-Q and trying to understand the intended behavior when its common 5 V input is disconnected while the MCU is running, without first entering Standby.There appears to be a mismatch between the current shutdown requirements and the PWR_ON-controlled supply arrangement. Could you help reconcile the following?1. AN5967 Rev 6 (September 2026), section 3.5.2, requires the auxiliary supply group to discharge below 0.6 V before the main supply group falls outside its operating range.https://www.st.com/resource/en/application_note/an5967-getting-started-with-hardware-development-for-stm32n6-mcus-stmicroelectronics.pdf#page=92. AN6000 Rev 1 (November 2024), section 3.2, describes uncontrolled input-power removal. Main VDD/AON fall until a power-down-reset threshold is crossed; PWR_ON then becomes high impedance and its approximately 40 kohm internal pull-down takes it LOW, disabling the core/auxiliary regulators.https://www.st.com/resource/en/application
There is a critical code-generation template bug in STM32CubeMX (reproduced in 6.16.1 with STM32CubeH7) when generating USB Device middleware configurations. In the generated usbd_desc.c file, the Get_SerialNum() function is generated with uninitialized local variables that are then used in arithmetic operations.This results in Undefined Behavior (UB). It compiles and works under -O0 because the uninitialized stack happens to evaluate to zero, but it causes an immediate, silent HardFault/BusFault during USB enumeration on Windows when compiled with -O1 or -O2 optimizationsoriginal generated code static void Get_SerialNum(void){ uint32_t deviceserial0; // Uninitialized uint32_t deviceserial1; // Uninitialized uint32_t deviceserial2; // Uninitialized // ST's generator template completely misses the lines assigning the registers! deviceserial0 += deviceserial2; // Undefined Behavior: addition on uninitialized variables if (deviceserial0 != 0) { IntToUnicode(deviceserial0, &U
Environment DetailsMicrocontroller: STM32C091CBTx (LQFP48)STM32CubeMX Version: 6.14.1LL-DriverConfiguration: An STM32CubeMX project is configured for an STM32C091CBTx MCU, with DMA channel 6 assigned to a peripheral (ADC).Generated Code (stm32c0xx_it.c): Upon code generation, CubeMX creates the shared interrupt handler for DMA channels 4, 5, 6, and 7 in the stm32c0xx_it.c file. The function is defined as:void DMAMUX1_DMA1_CH4_5_6_7_IRQHandler(void)Startup File Vector Table (startup_stm32c091xx.s): However, the default startup file provided with the project contains an incorrect entry for this interrupt vector. The handler name in the vector table is listed as:DMAMUX_DMA1CH4_5_IRQHandlerConsequently, the `DMAMUX1_DMA1_CH4_5_6_7_IRQHandler` function is never invoked when an attempt is made to trigger DMA Channel 6.Confirmed WorkaroundThe issue can be resolved by manually editing the startup file:In the `startup_stm32c091xx.s` file,Search for the incorre
reason: Error: Failed to get full list of project bundles to install. Command failed w Steps I've already triedWindows11Verified the project path contains no Chinese characters, spaces, or special symbols.Cleaned and rebuilt the project (CMake/Make workflow).Reloaded the VSCode window Confirmed the executable file was generated successfully, and the program path in launch.json points to the correct file. QuestionsWhat exactly causes this "Failed to list bundles" error during debugging?Is there a standard, correct launch.json template for this scenario on Windows?Do I need to configure additional GDB paths or environment variables?Are there any other troubleshooting steps I should try? Thanks a lot for any help or suggestions! :folded_hands:
Hello, we plan to power the STPM32 only briefly at each measurement (every ~2 s),so we need its settling time after power-up/reset, which is not in thedatasheet (DS10272 Rev 14). On the EVALSTPM32 (12 V AC 50 Hz on L/N, default configuration after aglobal reset) we measured:- V1 RMS within 1% after ~400 ms, with or without the DC-removal HPF;- with the HPF enabled, a DC of ~2 V (at the input) in V1 Data that decays to < 0.1 V only after ~1.7 s, although the datasheet states -3 dB at 8 Hz;- the same DC shifts the ZCR edges (rising and falling in opposite directions) until it has decayed. Questions:1. After power-up (EN) or a global reset, how long should we wait before the RMS values and the ZCR output are accurate? Is there a typical or guaranteed value?2. The DC-removal filter is specified at -3 dB at 8 Hz, but at start-up it takes ~1.7 s to remove a ~2 V offset. Why is it so slow? Does the offset come from the analog front end settling after reset? Is there a setting to make
On STM32Hxx and STM32N6 families I have faced a situation where I need to modify startup assembly code (startup_stm32xxx.s) to copy code (.text) into ITCM or clear RAM/TCM areas, for clean data or to prevent ECC error (on STM32N6). But next time CubeMX generates code, those changes are overwritten. Same story with SystemInit function in system_stm32xxx.c. So either manual restoration or script must be done. But it's getting quite annoying after several projects. I believe the purpose of CubeMX is to ease development, so I make a feature request:Please add user code begin/end comment sections that exist in main.c also into startup_stm32xxx.s assembly and system_stm32xxx.c source files.For startup assembly I wish the user sections are:User symbols definitions.User data copy.User zero fill.For system file I wish the user sections are quite similar to main.c:User includes.User defines/constants/variables.In SystemInit() function:In the beginning.After VTOR settingAt the end.User func
I'm using STM32CubeMX 6.17.0 with NUCLEO-U575ZI-Q, it generated the following code:/* Initialize COM1 port (115200, 8 bits (7-bit data + 1 stop bit), no parity */ BspCOMInit.BaudRate = 115200; BspCOMInit.WordLength = COM_WORDLENGTH_8B; BspCOMInit.StopBits = COM_STOPBITS_1; BspCOMInit.Parity = COM_PARITY_NONE; BspCOMInit.HwFlowCtl = COM_HWCONTROL_NONE;The comment is wrong, the UART has 8 bits of data instead of 7 bits.
WATCH ON-DEMAND | STM32 Summit 2026
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.