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
It says CubeMX is for “All MCU/MPU except STM32C5 Series” - but that’s no longer true: As it says immediately below, CubeMX2 is also required for the new G5 and H7P series. So, for CubeMX, it should say “All MCU/MPU except STM32C5, G5, and H7P Series”
Hi,It’s a question that I hope someone might be able to help me with, as I’ve run out of ideas.I’m trying to repair an Artiphon ORBA 1 device that has lost it’s firmware. I’ve run the ORBA 1 software which recognises the device and then starts to reinstall the firmware, however it never finishes.Win10 sees the device as an STM32 boot loader device correctly. If I run the STM32 programmer, it can see it’s serial number and can read it’s device memory.. I know it’s a long shot, but has anyone experience with this device who might just have the “.bin” file so I can try and download using the STM32 Programmer.Thanks, Graham.
Hello ST Team,We are developing a product based on the STM32N657 (STM32N657X0H3Q) with Secure Boot enabled and the device configured in CLOSED_LOCKED state.Our design uses two FSBL copies stored in external serial NOR flash: FSBL1: Offset 0x00000000 FSBL2: Offset 0x00040000 We intend to rely on the boot ROM's FSBL2 fallback mechanism to ensure reliable booting and recovery following firmware updates.However, ES0620 Rev 5 (August 2026) identifies two critical limitations affecting Rev Z silicon: Erratum 2.2.12: FSBL2 boot fails due to SecureBoot after an incorrect FSBL1 image version boot attempt. Erratum 2.2.13: FSBL2 execution fails after testing FSBL1 with an incorrect public key or signature in SecureBoot. Both limitations are marked "N" for Rev Z and "–" (not applicable) for Rev B and Rev X in Table 3.We would appreciate ST's clarification on the following points:1. Confirmation of Fixes in Rev B and Rev XCan ST confirm that both limitations are fully resolved in Rev B and Rev
Hi all,I'm bringing up a custom board with an STM32N647I0H3Q (Rev B, device ID 0x486)and cannot program the HSLV_VDDIO3 fuse (OTP124 bit 15) needed for theMX25UM51245G octal NOR on XSPIM port 2 at 1.8 V.SetupSTM32N647I0H3Q Rev B, custom board VDDIO3 and flash VCC measured at 1.8 V, VDD/VDDIO4 at 3.3 V BOOT1 pulled high ST-LINK V3MINIE, SWD 200 kHz, Hot plug, AP1 STM32CubeProgrammer v2.23.0 (GUI and CLI)Symptoms1. External loader MX25UM51245G_STM32N6570-NUCLEO: read at 0x70000000 hangs at 0% / "Data read failed"; programming fails with "failed to download Sector[0]" (expected while HSLV_VDDIO3 = 0).2. GUI OTP panel: entering OTP124 = 0x00008000 + Apply -> value returns to 0x00000000.3. CLI: STM32_Programmer_CLI -c port=swd mode=HOTPLUG -otp write word=124 value=0x00008000 hangs for >3 minutes (killed). Afterwards -otp displ word=124 shows Data124 = 0x00000000, Status124 = 0x00000001 ("Invalid"). After a power cycle: Data124 = 0x00000000, Status124 = 0x00000000.BSEC
Hello,We use an STM32WB55VGY with STM32CubeWB v1.17.2 middleware and are investigating blocking in the command-response path.In hci_send_req(), each call to hci_cmd_resp_wait() is followed by draining HciCmdEventQueue. The function remains busy until a Command Status or Command Complete event reports Num_HCI_Command_Packets > 0.Could you clarify:Can CPU2 generate multiple Command Status/Command Complete events during one hci_send_req() call—for example, a response with zero command credits followed by an opcode-zero credit update? Can an opcode-zero credit notification arrive before the matching command response? If so, what prevents hci_send_req() from returning before receiving that response? Are there known issues or recommended updates concerning blocked HCI/SHCI response waits in this middleware version?Thank you.
I got this message:The documentation says: But clicking ‘Overwrite all’ actually gave this: So it’s done it with backup - not without. Also, choosing ‘Go to project settings’ goes to the settings - but they’re all disabled! PS:CubeMX2 v1.2.0
I am using code from STM32CubeH5/Projects/NUCLEO_H563ZI/Applications/NetXDuo/Nx_UDP_Echo_Server which I copied over to my own project running on the NUCLEO_H563ZI using STM32CubeIDE 2.2.0 and STM32CubeMX 6.18.1 with ThreadX and NetXDuo both selected.DMA is not configured in the example and yet the code calls the HardFault() when it starts to configure the DMAHAL_StatusTypeDef HAL_ETH_GetDMAConfig(const ETH_HandleTypeDef *heth, ETH_DMAConfigTypeDef *dmaconf){ if (dmaconf == NULL) { return HAL_ERROR; } dmaconf->AddressAlignedBeats = ((READ_BIT(heth->Instance->DMASBMR, ETH_DMASBMR_AAL) >> 12) > 0U) ? ENABLE : DISABLE; dmaconf->BurstMode = READ_BIT(heth->Instance->DMASBMR, ETH_DMASBMR_FB | ETH_DMASBMR_MB); dmaconf->RebuildINCRxBurst = ((READ_BIT(heth->Instance->DMASBMR, ETH_DMASBMR_RB) >> 15) > 0U) ? ENABLE : DISABLE;I used the debugger and tried to access DMASBMR and it told me it could not access 0x1004. Why not? What or why were part
Hi all,I am using the VENC H.264 encoder (Middlewares/Third_Party/VideoEncoder from the STM32 model zoo object detection application) on the STM32N6570-DK Discovery Kit with the IMX335 camera. The encoder is fed RGB565 frames from DCMIPP (1280x720 buffer in external PSRAM), and the output goes to a PSRAM buffer.Problem:H264EncInit, H264EncSetPreProcessing, H264EncSetRateCtrl and H264EncStrmStart all return OK. The first H264EncStrmEncode call (intra frame) then returns -17 (H264ENC_FUSE_ERROR). In the driver, this is raised when the VENC status register has ASIC_STATUS_FUSE (0x200) set. The register description in encswhwregisters.h says: "IRQ stream format fuse status bit. Format disabled by fuse."After that, later frames often fail with -7 (INVALID_STATUS), then -14 (INSTANCE_ERROR), sometimes -3 (INVALID_ARGUMENT) or -16 (HW_RESET). At times the encoder recovers after frame 0 and produces a stream; at other times it never does. The behaviour is not consistent between runs, even at 6
Specific STM32H7 series MCUs have the DCMI peripheral greyed out in STM32CubeMX version 6.17.0.See this image:Hovering over the peripheral it displays "Not available: DCMI and PSSI are in exclusive choice"I opened a few projects with different MCUs and checked whether the DCMI was greyed out:STM32H723ZGIx - WorkingSTM32H725IEKx - WorkingSTM32H730ZBIx - WorkingSTM32H733ZGIx - WorkingSTM32H735IGKx - WorkingSTM32H742BITx - Not workingSTM32H743XGHx - Not workingSTM32H745BGTx - Not workingSTM32H747XGHx - Not workingSTM32H750IBTx - Not workingSTM32H753Allx - Not workingSTM32H755XIHx - Not workingThe PSSI peripheral is notably absent from the list of available peripherals (correctly as per the datasheet) in STM32CubeMX for the parts where DCMI has been disabled.This is clearly a bug in the mutually exclusive check in STM32CubeMX between the DCMI and PSSI, failing on the parts without the PSSI peripheral. See: STM32CubeMX 6.15.0 claims "DCMI and PSSI are in exclusive choice" for STM32H753ZIT
HiAs shown in the attached ioc2 file, STM32CubeMX2 requires DMA to be configured for ADC2.However, setting the "Regular data format" parameter to "Packed on 32 bits" configures the 32-bit CDR (Common Data Register) to receive conversion values from both ADCs; therefore, it makes no sense for STM32CubeMX2 to require a DMA configuration for ADC2. Ari
Hi,On the STM32G4 I was able to configure ADC1 and ADC2 in Dual regular simultaneous + injected simultaneous mode using DMA in Circular mode, so that I only needed to configure the DMA for ADC1 (Master) and the data from the regular conversion of ADC1 and ADC2 were placed in a single 32-bit variable, with the most significant part containing the value of ADC2 and the least significant part with the value of ADC1.When I try to do the same thing for the STM32G5, an error occurs in the configuration of ADC2, requiring me to configure the DMA for ADC2 as well. It doesn't make sense to use the ADC in dual mode if I have to use a DMA channel for each ADC. How can I modify the attached ioc2 file to make it work as I did for the STM32G4? And what code should I include in main.c to start DMA in circular mode using low level library?
I'm configuring SAI4 (Block A) to receive I2S audio from an external microphone (Knowles SPH0645), using HPDMA3 for continuous circular DMA transfer, targeting the Cortex-M33 (Cube) context.Configuration so far:SAI4 → SAI A → Mode: Master, I2S/PCM Protocol, Audio Mode: Master Receive, Data Size: 24 bits, Mono HPDMA3 Channel (currently CH2) → Request: SAI4_A Circular Mode: Enable Direction: Peripheral To Memory Priority: HighProblem:The field "DMA Handle in IP Structure" under Request Configuration shows a red ⊗ error icon, with the value stuck as a placeholder. When I try to click the dropdown to select a proper handle (e.g. DMA_Handle1, DMA_Handle2), the available options appear grayed out / not selectable — I cannot click or choose any of them. This leaves the field marked invalid (red cross), which propagates up to the HPDMA3 channel, CH tab, and Features tab all showing red crosses.I confirmed:SAI4's runtime context is properly checked (currently testing M33NS) The Request field co
STM32G491Code generator generate wrong order of calls for SPI initialization for LL driver: LL_DMAMUX_SetSyncRequestNb calls after LL_DMAMUX_EnableSync
SetupI am programming a STM32H7 in STM32Cube VSCode. I have two peripherals (SPI1 & SPI2) connected to the same clock PER_CK.IssueCubeMX is supposed to generate the clock configuration code inside the PeriphCommonClock_Config() function (because several peripheral share the same clock). Inside Boot, everything is done fine. Inside Appli, the function PeriphCommonClock_Config() is declared and called correctly. However, its definition is missing inside main.c. This yields : [build] [...]/fw/Appli/Core/Src/main.c:97:(.text.main+0x10): undefined reference to `PeriphCommonClock_Config'Current WorkaroundI am currently defining PeriphCommonClock_Config() inside “USER” code blocks. This allows the build to happen with no problem. However, if I make changes to the Clock Tree and regenerate code from CubeMX, then I will need not to forget to adapt my definition of the function. This can’t stay like that.QuestionCan someone confirm this is an issue and not expected behavior from CubeMX ? Ca
Hello,I am investigating a low-power issue on a custom board with an STM32U585CIU6, silicon revision W, using the LDO regulator and FreeRTOS.During normal operation, the MCU periodically enters STOP2 from the FreeRTOS tickless idle hook. When the user selects power off, the application saves its state, powers down the display and enters Shutdown.The wake source is PB8 / WKUP5, input selection 2, active low. It is connected to the open-drain INT output of a TMAG5273 magnetic sensor. The sensor remains powered and is configured for autonomous Wake & Sleep measurements with a latched threshold interrupt.Original failureAfter entering Shutdown from the full application:The magnetic button did not wake the MCU. External NRST also failed to recover the device. ST-LINK could not connect, including connect-under-reset at a low SWD frequency. Cycling the board power restored operation.The NRST signal was physically checked. NRST worked normally before the failure.The original problem occurr
Hi,I’m benchmarking this object detection model from modelzoo: ssd_mobilenetv1_pt_voc_300_qdq_int8.onnx (https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/main/object_detection/ssd_mobilenetv1_pt/Public_pretrainedmodel_public_dataset/voc/ssd_mobilenetv1_pt_voc_300/ssd_mobilenetv1_pt_voc_300_qdq_int8.onnx)I managed to reproduce the intended 41ms inference duration on STM32N6570-DK using ST Edge AI Developer Cloud. I also tried to reproduced this test offline with CubeAI (Edge AI core 4.1) and a STM32N6 Nucleo board but didn’t get better than 116ms.The DK is in overdrive mode by default and the Nucleo is not. But this shouldn’t explain this huge difference (?)I tried several optimisation parameters as well as the --use-onnx-simplifier option. Also memory mapping looks similar in both case.Does any one have an idea ?ThanksMathieu
In the UM3601 documentation 7.3.5. it mentions:Virtual COM portThe USART1 serial interface (PD8/PD9) is directly available as a Virtual COM port of the PC connected to theSTLINK-V3EC USB connector (CN1).However the PD8 and PD9 of this controller are UART3 NOT UART1.Seems STM bringing out many Nucleo boards without reviewing documentation and without adding board specific out of the box working examples demonstrating the features of the processor and/or the board.
Hi, I am Using STM32F407 for my project and I want to use RMII interface ethernet 10/100 Mbps.I’m attaching the design I have implemented.can anyone review and suggest if there is any improvement/changes required. Thanks, Mukesh K
Hello. I'm developing a custom STM32CubeProgrammer External Loader for an STM32U575 board connected to an AT25SF641B SPI NOR Flash (8 MB).The loader is recognized by STM32CubeProgrammer and loaded into RAM correctly, but I'm experiencing a mix of issues and I'm running out of ideas.MCU: STM32U575 External Flash: AT25SF641B Interface: SPI1 + GPDMA STM32CubeProgrammer: v2.23.0 Toolchain: GCC (STM32CubeIDE)The loader is correctly detected by CubeProgrammer.CubeProgrammer executes:Init flashloader...run ap 0and after about 100 seconds reports:Init function fail with timeout A minimal Init():int Init(void){ return LOADER_OK;}works correctly.The problem appears only when initialization code is enabled.Current implementation:int Init(void){ extern uint32_t __isr_vector_start__; extern uint32_t _sbss; extern uint32_t _ebss; ERROR_T ErrorValue; SystemInit(); SystemCoreClockUpdate(); SCB->VTOR = (uint32_t)&__isr_vector_start__; __DSB(); __ISB(); ErrorValue
After enabling trustzone in my project, I am unable to set the BKPRAMEN bit from non-secure context in the RCC_AHB1ENR register.My setup is a secure bootloader jumping to a non-secure application, this is working fine. I make the backup RAM non-secure using the GTZC memory 4 subregion watermark configuration before jumping to non-secure application. When i enable the BKPRAMEN clock from secure world, and disable it again before jumping to non-secure, i am unable to re-enable the clock enable bit from non-secure preventing access to the backup RAM region.When i leave the clock enabled from secure before jumping, the non-secure application can read the backup RAM just fine. Now this setup would also work, but i would like to understand why this is happening.I found in RM0481 at 11.5.1:When a peripheral is configured as secure, its related clock, reset, clock source selectionand clock enable during low-power modes control bits, are also secure in theRCC_AHBxENR, RCC_APBxENR, RCC_CCIPRx an
Hii’m triyng to use USBX audio class on nucleo-h563zi. i have succed to make PC to recognise the board like a controller audio but windows have problem to start the device (error code 10), problem 0xA status: 0xC0440027i’m stuck at this fase unfortunately also i think there are some missing files in the middleware directory, in the example provided by ST UX_Device_Audio2.0_Playback (not sure is related to the error to start device)there is this code: VOID USBD_AUDIO_PlaybackStreamChange(UX_DEVICE_CLASS_AUDIO_STREAM *audio_play_stream, ULONG alternate_setting){ /* USER CODE BEGIN USBD_AUDIO_PlaybackStreamChange */ /* Do nothing if alternate setting is 0 (stream closed). */ if (alternate_setting == 0) { return; } BufferCtl.state = PLAY_BUFFER_OFFSET_UNKNOWN; /* Start reception (stream opened). */ ux_device_class_audio_reception_start(audio_play_stream); /* USER CODE END USBD_AUDIO_PlaybackStreamChange */ return;}the function ux_device_c
IEEE Std 802.3™-2012 (Revision of IEEE Std 802.3-2008) device STM32H743IIT6 Which sections of the IEEE standards should one read to understand the transmission and reception of data packets? Which part of the IEEE standards should I read to learn about connecting to a router? Is it necessary to use layers above the Data Link layer if the only requirement is to connect to a router and transmit/receive basic packets?
After ‘Generate’, this change was made to hal_gpio_toggle_cmake/generated/hal/mx_rcc.h So the before & after are functionally identical - the only change is to re-order things.This is a just trivial example where it’s easy to see what’s happened but, in general, it’s an absolute nightmare for revision control!Please, keep stuff in the same sequence - don’t reorder it. PS:CubeMX2 v1.2.0
Hi!I have a project made in stm32cube IDE that includs cmsis-pack dsp from arm that I installed in my previous Cube MX version. Now, I have migrated to stm32cube for visual studio and the cube mx 6.18 and cannot install as software package the cmsis pack from arm.When I open the new cube MX, it warns me about the cmsis pack is not found and there’s no ARM option in the embedded software packages to install it.Can you help me?
Hi all,I'm evaluating the VL53L9CX and want to use it with ROS 2 on a Linux host.What I've found so far:- ST's software for this sensor seems to be aimed at STM32 (X-CUBE-53L9A1, UM3656, and the programming guide UM3683).- I couldn't find an official Linux driver or ROS 2 package.- The only working ROS 2 route I've found is a community project that uses an ESP32-P4 as a MIPI CSI-2 to USB bridge and publishes a PointCloud2: https://github.com/kamibukuro5656/VL53L9CX_ESP32-P4_USB_ROS2- There's also a basic Raspberry Pi implementation over I2C from another user on this forum (thread: "VL53L9 working Linux implementation").Questions for ST:1. Is an official ROS 2 driver (sensor_msgs/PointCloud2) planned for the VL53L9CX, and is there a rough timeframe?2. Is an official Linux driver planned, for example a V4L2/MIPI CSI-2 or I3C capture path for hosts like Raspberry Pi or Jetson?3. In the meantime, can the post-processing library (confidence, radial-to-perpendicular conversion, flying-pixel
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.