Get ready for the STM32 Summit 2026 | Online, November 3
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
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
Pleased to announce that the new release 3.10.0 of STM32CubeIDE is online FeaturesAdded internationalization support. [Build analyzer] Added binary (.elf) file processing to improve build analysis results to a level comparable with STM32CubeIDE for Eclipse [Build analyzer] Added support for Zephyr build artifacts. [Documentation] Added support to export the User Guide as a PDF or zipped HTML file. Added Command-Line Interface (CLI) support for empty project creation. Added core selection for empty project creation on multicore target devices.Chores [STLink GDB server launch] Enabled the live watch feature by default. Updated CMake directives for the empty project creation process to align with the STM32CubeMX2 user experience. Updated CMake directives for the STM32CubeIDE to Eclipse project conversion process to align with the STM32CubeMX2 user experience. [Build analyzer] Improved hyperlinks to source code by excluding static nodes from the rendering. Improved information about enabl
Dear all, I want to evaluate a STM32H5 (NUCLEO-H653ZI) via the built in STLink (ST-LINK FW: V3J16M7). I use VS Code with STM32CubeCLT_1.18.0 as IDE and control the flashing and debugging with a .json. Checking the STLink connection to the board by executing “<Path>\STM32_Programmer_CLI.exe –list” works fine. Also, flashing the board and running a simple LED toggle application by executing “<Path>\STM32_Programmer_CLI.exe --connect port=swd --download <Path>\H563ZI_Test.elf -hardRst” works just fine. When trying to start the GDB server for debugging by executing “<Path>\ ST-LINK_gdbserver.exe -p 50000 -cp <Path>\STM32CubeProgrammer\bin --swd –halt” an error occurs and the debug process is terminated:STMicroelectronics ST-LINK GDB server. Version 7.10.0Copyright (c) 2025, STMicroelectronics. All rights reserved.Starting server with the following options: Persistent Mode : Disabled Logging Level : 1 Listen Port Numbe
I am using SPI6 on an STM32H562 to write data to a WS2812 LED strip. The following code is called once per second to write the data: LOGIF ("bytes left=%d", GPDMA1_Channel2->CBR1); LOGIF ("TXC %d", (WS2812_SPI.Instance->SR & SPI_SR_TXC) != 0); LOGIF ("ready=%d", HAL_SPI_GetState(&WS2812_SPI)== HAL_SPI_STATE_READY); if (HAL_SPI_GetState(&WS2812_SPI) != HAL_SPI_STATE_READY) { LOGIF ("error=%d", HAL_SPI_GetError(&WS2812_SPI)); HAL_SPI_Abort (&WS2812_SPI); } HAL_SPI_Transmit_DMA (&WS2812_SPI, spi_bytes, RESET_BYTES + nvalues * BYTES_PER_FRAME); Here is the log output for the first two calls:[101] ws2812 75: bytes left=0[101] ws2812 76: TXC 1[101] ws2812 77: ready=1[201] ws2812 75: bytes left=0[201] ws2812 76: TXC 1[201] ws2812 77: ready=0[201] ws2812 79: error=0The first time, GetState reports READY, but the second time it does not, even though bytes_left is zero and TXC is 1, so an Abort is required before the next transmit. Unfortunat
https://github.com/STMicroelectronics/meta-st-stm32mp/blob/scarthgap/recipes-bsp/trusted-firmware-m/tf-m-stm32mp.inc#L263 and the following cp commands preserve the ownership of the file which is a problem for yocto.When I build the sdk, I am getting the following error:Exception: Exception: KeyError: 'getpwuid(): uid not found: <my-uid-here>'Path <path-to-build-folder>/tmp/work/x86_64-nativesdk-<distro-sdk-name>-linux/nativesdk-tf-m-stm32mp-scripts/v2.1.4-stm32mp-r2.1/sstate-build-package/package/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-<distro-sdk-name>-linux/usr/share/tf-m/scripts/wrapper/imgtool/__init__.py is owned by uid <my-uid-here>, gid <my-gid-here>, which doesn't match any user/group on target. This may be due to host contamination.The fix is quite easy, any instance of “cp -a” needs to be replaced by “cp -a --no-preserve=ownership”. So you copy every other attribute but the ownership.I fixed it in a .bbappend but that would be
I tried to use the Build analyzer in VSCode, but there are some important allocations missing:VSCode:STM32CubeIDE (using *.elf file produced by VSCode):This is probably because the VSCode plugin is using the *.map file while the STM32CubeIDE uses the *.elf file.Is there any chance to have the same Analyzer in VSCode?
As reported in the following image the gauge reports a wrong value for FLASH free space
Hi everyone,I found a solution for a common issue when using the official STM32Cube for VS Code extension. If you disable the Microsoft C/C++ (ms-vscode.cpptools) extension to avoid IntelliSense conflicts, you might notice that "Format Document" stops working completely.The reason is that the STM32 extension's built-in clangd has its formatting engine disabled by default.To fix this:Go to VS Code Settings (Ctrl + ,).Search for: stm32cube-ide-clangd.enableFormatting.Check the box to enable it.If prompted, set "STM32Cube for VS Code" as your Default Formatter.This allows you to have working formatting and precise IntelliSense without any conflicts from the Microsoft extension. Hope this helps!
I currently have two boards equipped with different specific models of N6, namely STM32N647X0H3Q and STM32N657X0H3Q. I have an IDE project for testing the memory-mapped functions of each of these two chips.The problem lies in that this project can be implemented on the STM32N647X0H3Q in a manner similar to: data = *(volatile uint8_t *)0x70100000;Such code reads the content from the external FLASH. However, on the STM32N657X0H3Q, it is impossible to read. The specific manifestation is that when I run this line of code in the debug mode, the program directly jumps tovoid SysTick_Handler(void)and the debugging connection is disconnected, as shown in the following figure. I have wondered whether it was an issue with the external FLASH soldering, or a problem with the PCB traces (my two circuit boards were not produced on the same PCB. The circuit board with STM32N647X0H3Q was purchased from the internet, while the one with STM32N657X0H3Q was designed based on the schematic diagram of the
Hi , he system operates in timing mode with lower limit detection at 1.1-second intervals and a measurement duration of 33 ms; the status code is read to verify accuracy, though misjudgments may occur—for instance, when no object is present, measured values may fall below the lower limit, requiring correction. Parameters: long-distance reference Spad count = 7; aperture Spads = 1; HV settings = 32; Phase calibration = 1; Offset micrometer = 7000 (for 100 mm); myXTalk compensation rate (Mega CPS) = 66 (for 600 mm).Why is the refSpadCount value obtained by our school less than 10?Increasing the measurement time reduces the likelihood of misjudgment, as I use a battery-powered device and cannot extend the measurement duration.
Hi all,I'm reusing the STM32H7S78-DK's Octo-SPI flash (MX66UW1G45G) and Hexadeca-SPI PSRAM (APS256) sub-circuits on a custom board and want to match the DK's signal integrity. I can't find the fabrication stackup or impedance spec in the docs. Could ST share, for the DK (please confirm board rev):Full layer stackup — copper weights and each dielectric thickness/material. Target impedance (single-ended + any diff) and tolerance for the Octo-SPI / Hexa-SPI nets. Trace width/spacing for those buses, and their routing layer + reference plane. Any length-matching constraints on those groups.For reference, the published Altium reference-design project ships with an unconfigured stackup (single 1.5 mm dielectric, all layers typed Signal), so it doesn't reflect the real fabricated stack — which is why I'm asking for the actual values.Thanks!
Hello, I am using an STM32L431 and found an interesting behavior with TIM1 PWM output while debugging. Test conditions: - MCU: STM32L431- TIM1 CH2 PWM output- Debugger: ST-LINK- Debug halt enabled- DBGMCU TIM1 freeze enabled (DBG_TIM1_STOP) Observed behavior: TIM2:When the debugger halts the CPU (breakpoint or single-step),the PWM output keeps its current output state as expected. TIM1:When the debugger halts the CPU and TIM1 freeze is enabled,the PWM output no longer behaves like TIM2. Additional observations: 1. MOE remains set (MOE = 1). 2. With OSSI = 0: the output appears to become high-impedance (or disconnected). 3. With OSSI = 1 and OIS2 = 0: the output becomes Low. 4. With OSSI = 1 and OIS2 = 1: the output becomes High. 5. If DBG_TIM1_STOP is disabled: PWM continues running during debug halt. These results make it appear that TIM1 enters an Idle/Off-State condition during debugger halt and the output level is determined by OSSI/OIS settings. Questions: 1. Is this expec
Hello, I have a problem with Cube Programmer API - I’m using it to read RAM addresses continuously at rates of around 300Hz using the readMemory() function. Unfortunately with every call the function starts to take more and more time to execute, causing the readout frequency to drop to 80Hz just after a few minutes. Could it be some mechanism under the hood that causes that? Is there a known workaround? Best Regards, Piotr Wasilewski
In a larger design I’m using a LD39100PU33R for a 3.3V output. The input voltage is 5V and the device has decoupling capacitors as per the datasheet. The 3.3V circuit is consuming about 0.5A and the device is capable of delivering 1A. The circuitry connected is no inductive loads, but rather a steady consumption from sensors (air pressure & temperature).I am unable to find any information in the datasheet (Section 5. Typical performance characteristics) on what temperature the device will typically be at this load, but it’s running at a constant 75C. This seems to be very high, but how can I know if this is within spec when there is no graph in the datasheet showing current vs temperature?ref: datasheet https://www.st.com/content/ccc/resource/technical/document/datasheet/72/02/e5/ee/df/36/40/5e/CD00233788.pdf/files/CD00233788.pdf/jcr:content/translations/en.CD00233788.pdf
Hi,I am working on a new Project for the STM32C562MET6 with STM32CubeMX2 and VS Code.On the first run of toolchain generation, CubeMX generates all expected folders like arch, generated, stm32c5xx_dfp and stm32c5xx_drivers.But I dont want to version all files if they can be generated so i added the folders above to the .gitignore file.After running it a second time but with those folders missing, CubeMx2 doesnt generate it. I already tried to set the “conflict handling rules” to override. Any suggestions?
Hi ST Team,I’ve been using STM32G473VET3 for my product for the past 2 years.Right now I’m testing the code which I’ve freezed an year ago. But it enters uart error callback as soon as it calls HAL_UART_RECEIVE_IT function.(Overrun error continuously even after clearing it, Also no data is sending in that line).Hence I’ve generated new code in the cubemx also. In that also same problem arises whenever HAL_UART_RECEIVE_IT is called.IDE version : 1.18.1MX version : 6.14.0G4 package version : V1.3.0
Hi everyone,I'm currently developing a MIDI controller/audio device for guitar VST plug-ins.The project features a guitar audio input using the CS4272K IC connected to an STM32F446RET6. Additionally, the STM32 will operate in USB High Speed mode using Microchip's USB3300 PHY.My main challenge at the moment is finding or designing the standalone minimum circuit (schematic) for these components to move forward with the project. Could anyone provide some guidance or share reference schematics for this setup?Thanks in advance!
I want to download X-CUBE-SPN14, but the site keeps prompting me to sign in over and over https://www.st.com/en/embedded-software/x-cube-spn14.html#section-get-software-table
Can ST please fix this minor interconnection line missing in the RCC clock tree figure in RM0394.JW
In a project using FreeRTOS, we had the choice in STM32CubeMX to check a box in the NVIC panel “Uses FreeRTOS functions”, see here: I would love to have this feature available in STM32CubeMX2 as well, because by default the interrupt priorities are set to 0, and therefore need to be manually set to configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY (usually = 5) in order to use FreeRTOS API in those ISRs.
Please support to update how LPS27HHW pressure sensor can detect the fall of a human being.
Heyho,working on a new project with a STM32G431, for now on a Nucleo-32 board.I have lots of things running (bare-metal, mostly no HAL), then I needed a timer with a higher resolution than the SysTick (running at 1 ms, looks valid).The only 32-bit timer is TIM2, so I set it up to simply count up, no interrupts, only with pre-scaler set to get 1 counter period of 10 us at a clock of 96 MHz. The code below is changed to a period of 1 ms, for simpler comparison to the 1 ms tick.Here’s the setup:/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ *//* TIM2 * 32 bit timer * init function * 10 us timer -> NO interrupt */void TimComInit(void){ /* peripheral clock enable */ __IO uint32_t u32TmpReg; RCC->APB1ENR1 |= RCC_APB1ENR1_TIM2EN; u32TmpReg = ( RCC->APB1ENR1 & RCC_APB1ENR1_TIM2EN ); (void)u32TmpReg; TIM2->CR1 = 0; TIM2->CR2 = 0; TIM2->SMCR = 0; TIM2->CCER = 0; TIM2->CCMR1 = 0; TIM2->CCMR2 = 0; TIM2->CCMR3 = 0; TIM2->DIER =
Hi,i can’t find recommendations for land pattern and stencil Layout, for a SPC570S50E1 with the eTQFP64 package.Where can i find the information for the package?Thanks for the answers.
Hello ST Team,I am currently working on a project using the ST25R3916B NFC reader, and I would like to study and reference the PCB design shown in Figure 6, “Device used for single ended antenna with cable,” of application note AN5592.Could you please provide the editable PCB project files for this reference design, such as the Altium schematic and PCB layout files?I have checked the application note and the ST website, but I could not find the corresponding PCB source files.Application note reference:https://www.st.com/resource/en/application_note/an5592-st25r-single-ended-antenna-matching-stmicroelectronics.pdfThank you very much for your support!
Hello,I wish to report what I believe to be a bug in the new version of CubeMX (6.18.0).When configuring an STM32H743IIT6, I encounter an error in the Clock Configuration view (please refer to the attached screenshot). The same procedure carried out with CubeMX 6.17.0 works correctly.I have therefore reverted to CubeMX 6.17.0, which is not a critical issue for me, but I thought it important to bring this to your attention.Yours faithfully,Philippe
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.