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
I'm currently developing with the STM32N6570-DK, using STM32N6 1.4.0 firmware, and using AI Studio and CubeMX to generate projects.However, I've encountered a very confusing problem. In the program generated by AI Studio, after calling MX_EXTMEM_MANAGER_Init() in the FSBL, it calls functions like BSP_XSPI_NOR_Init() and BSP_XSPI_RAM_Init(). This seems to be an additional Flash and SRAM driver written separately by the official documentation. /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_XSPI1_Init(); MX_XSPI2_Init(); MX_EXTMEM_MANAGER_Init(); /* USER CODE BEGIN 2 */__HAL_RCC_AXISRAM2_MEM_CLK_ENABLE(); __HAL_RCC_AXISRAM3_MEM_CLK_ENABLE(); __HAL_RCC_AXISRAM4_MEM_CLK_ENABLE(); __HAL_RCC_AXISRAM5_MEM_CLK_ENABLE(); __HAL_RCC_AXISRAM6_MEM_CLK_ENABLE();/** Workaround for an issue generated in STM32CubeN6 FW 1.4.0 **/ extern XSPI_NOR_Ctx_t XSPI_Nor_Ctx[XSPI_NOR_INSTANCES_NUMBER];
Hello ST Community,I am working with the STM32N6570-DK and running a custom-trained ST YOLOX Nano object detection model using the STM32N6 Getting Started Object Detection application.My custom model has 5 classes.The model is successfully generated and integrated into the STM32N6570-DK object detection project. The application starts correctly, the camera/display starts running, and I can see a few frames initially.However, after processing a few frames, the display freezes/stops updating. The board itself does not appear to continue normal inference after this point.I also noticed an unexpected LED indication on the board. This LED was not active when I previously ran the standard/reference object detection model. I have attached photos of the front and back of the STM32N6570-DK showing the LED state. My setup is:Board: STM32N6570-DK Application: STM32N6 Getting Started Object Detection Model: Custom ST YOLOX Nano Input: 480 x 480 x 3 Number of classes: 5 Camera: ST camera module con
Hello ST Community,We are currently using the x-cube-n6-ai-face-landmarks pipeline on the STM32N6570-DK. We now want to extend the BlazeFace stage so that it can detect additional DMS-related classes along with face detection. The classes we are interested in are:Phone, Seatbelt, Smoking, Face, Drinking. At present, the BlazeFace model used in the ST face-landmark project is a single-class face detector, and we could not find a public ST training pipeline for retraining or extending this specific BlazeFace model. Is there any ST example or reference repository for training BlazeFace on:WIDER FACE, custom datasets, or custom multi-class datasets?Our goal is ideally to reduce the number of separate detection models while keeping the existing face-landmark pipeline functional on STM32N6570-DK.Any guidance on the recommended training flow, supported model architecture, or available reference code would be very helpful.
Hi,I am developing application on B-U585I-IOT02A (STM32U585), using mx_wifi component V2.3.3 (SPI transport, socket mode MX_WIFI_NETWORK_BYPASS_MODE == 0), EMW3080B module firmware V2.3.4, bare-OS shim, link associated and DHCP lease verified before every test.Symptom. MX_WIFI_Socket_setsockopt() returns -1 immediately for MX_SO_BLOCKMODE (0x1000) at level MX_SOL_SOCKET (0xfff). The refusal is value-invariant: optval 0 and 1 behave identically (0 would request the module's default state), and OptLen 1, 2 and 4 all fail — so the option name, not the payload, is rejected. MX_WIFI_Socket_getsockopt() on the same option is refused as well, so the effective mode cannot even be read back. Mainstream options on the same socket (MX_SO_REUSEADDR, MX_SO_SNDTIMEO, MX_SO_RCVTIMEO) succeed.Minimal reproint32_t sock = MX_WIFI_Socket_create(obj, MX_AF_INET, MX_SOCK_STREAM, MX_IPPROTO_TCP);int32_t optval = 1; /* 1 = non-blocking */int32_t ret = MX_WIFI_Socket_setsockopt(obj, soc
Built a minimal on-device training stack for STM32 — fits in 608 bytes RAM total.The problem: Adam optimizer needs exp_avg + exp_avg_sq — 2× parameter RAM. On STM32F103 (20KB SRAM) with a 5K parameter model that's 40KB just for optimizer state. Doesn't fit.What I built:GravOptMini — momentum optimizer with quantile-based gradient freeze. Only exp_avg (1× param RAM). Freezes low-gradient parameters to reduce compute.W-Twin Lite — power-law baseline fitted on early steps, tracks deviation. Pure float32, no scipy, no numpy. Rolling window of 20 values. ~240 bytes.Benchmark (Python simulation, STM32 memory constraints):- Model: 46 params, 184 bytes- GravOptMini state: 368 bytes (exp_avg only)- W-Twin Lite: 240 bytes- Total: 608 bytes- MNIST accuracy: 93.2% vs Adam 97.4%- W-Twin overhead: 3.9% per step- Detection: anomaly caught 96 steps before visible loss divergence, 0 false alarms on clean runNext step is a real STM32 test with physical hardware. C port of both components is the plan.Has
Hello everyone. I read that V8 will become available for OEM in Q1, but is there any estimations when V8 will become available for independent engineers or maybe even NUCLEO V8 will be released?
Hey,I am having a big issue with ESD discharges and the STUSB4500. Essentially, I auto negotiate to 20V, and on ESD discharge, the STUSB shuts off VBUS_EN_SINK, while the supply continues to supply 20V. My thought is that on ESD discharge, the chip for some reason thinks it has had a disconnect event, waits for the supply to recover to 5V, but the cable has not been disconnected so continues to supply VBUS with 20V, and the STUSB then is in a hard stuck state until actual unplug and re-plug. There is no error seen, as GPIO does not pull low and is configured to show error states.I cannot find a document that exposes all of the register values, but after every shut down, the chip register state reads the same failure state. The dump is as below. # Before dischargeSTUSB4500 @ 0x28, registers 0x00..0xff 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f00: 00 00 00 00 00 00 12 00 11 20 00 63 fb 01 41 0a10: 0a 13 00 40 00 02 0c 2c 00 00 00 21 01 80 00 0020: 10 c8 5f 00 00 9c 00 02
I’ve been using STM32CubeIDE, STM32CubeMX, STM32CubeProgrammer, and STM32CubeMonitor on a Mac currently running macOS 26.6.When I run env or export in Terminal (which uses Zsh by default), I find these two STM32-related environment variables.STM32CubeMX_PATH=/Applications/STM32CubeMX.app/Contents/ResourcesSTM32_PRG_PATH=/Applications/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/Resources/binExamined Zsh dotfiles in my home folder and found the following two *export*s in ~/.zshrc that set them.export STM32CubeMX_PATH=/Applications/STM32CubeMX.app/Contents/Resourcesexport STM32_PRG_PATH=/Applications/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/Resources/binWhich apps have added these; CubeMX, CubeProg, or perhaps the respective plugins from CubeIDE? What is their intended purpose, and in particular, which other STM32Cube tools rely on them? Also, do the apps add these every time on launch or only once during installation?
Good day. Thank you for taking the time to review this query. We have recently developed a USB PD board using the STUSB4500. Most features seem to be in working order: PDO negotiation and NVM programming are functional and reliable. We have added a SMPS on the board (at the output of the STUSB4500 power path) for a 3v3 output in addition to USB PD. There is a problem when probing the STUSB4500, however. When the board powers on, everything seems fine, until the board's GND is probed with the GND of a battery-powered multi-meter or oscilloscope connected to mains (without connecting the positive connection) - when this happens, it seems like the chip resets, because power is cut to the SMPS. We are using a 10K pull-down that is 2 mm from the RESET pin (and we did also try 1K and 100K, but this did not resolve the resetting issue). After a decent amount of debugging, I noticed that there is improvement under these conditions:The GND probe is connected before the board is plugged in and p
Hi ST Community,I’m looking for the schematic/reference design for B-LVDS7-WSVGA, or the LCD part number or datasheet of LCD used on this board.
I am experiencing two separate issues with the generated LPTIM1 configuration in STM32CubeMX2.1. Clock configuration is removed when assigning a label to LPTIM1The first issue occurs when assigning a user label to LPTIM1.As soon as a label is assigned to LPTIM1 and the code is regenerated, the RCC initialization and peripheral clock configuration are removed from mx_system_init().The deleted code looks like this:system_status_t mx_system_init(void){......... LL_ICACHE_Enable(ICACHE);- /*- Clock system section- */-- /* Initialize RCC peripheral */- if (mx_rcc_init() != SYSTEM_OK)- {- return SYSTEM_CLOCK_ERROR;- }-- /* peripherals clock configuration and activation- is centralized: no clock activation/deactivation in pppi_init */-- if (mx_rcc_peripherals_clock_config() != SYSTEM_OK)- {- return SYSTEM_CLOCK_ERROR;- }.........Therefore, the calls tomx_rcc_init();mx_rcc_peripherals_clock_config();are no longer present after assigning the LPTIM1 label.A
Hello,Greetings for the day.As the ST community is already aware based on my previous questions, I have started using the latest ST MCU STM32C5 series and I have configured my launch.json to have SWO support for the MCU (hoping that this works as the application was previously running on L4). This is the snapshot of how my launch.json looks like, I had to comment out the SWO feature if I have to set up the MCU in debug mode and work. If I place the configuration back, the MCU goes into a hard trap and the only way to get it running is to do a power cycle.Does anyone have a workaround for this for the STM32C5 MCU?Regards,
There is a problem with STM32 signing tool version 2.21.0. When header version is 2.3 and alignment flag is used, then image length in header is greater by the alignment byte count.To reproduce:Create dummy.bin that is filled with 256 bytes of FF's. For example with HxD tool.Sign it with no keys:STM32_SigningTool_CLI.exe -bin dummy.bin --type fsbl --no-keys --option-flags 0x80000000 --output signed.bin --dump-header signed.bin --header-version 2.3 --alignView the signed.bin with hex viewer (e.g. HxD) at offset 0x6C which is Image length by UM3234 rev 2:It is 0x2C0 = 704. This is 448 bytes more than original 256 bytes.When removing --align flag from signing call, the length becomes correct, but this image is not bootable anymore because STM32N6 Boot ROM expects FSBL image start address to be aligned to 0x400.I want to use this length field to check during OTA that FSBL upgrade file size and checksum are correct before programming it into Flash. But I wonder how does N6 Boot ROM treat th
I am using the STM32H5F5 and plan to implement the Secure Manager. I would appreciate clarification on the following questions: Can the user application key be provisioned to the OBKey area during Secure Manager installation? After the Secure Manager is installed, can the user application write a key to the OBKey area? How can an application—secure or non-secure—read a provisioned OBKey?
Hello ST Community,While studying the STM32G491RE at the bare-metal level, I noticed a statement in RM0440 Rev. 9 that looked inconsistent with the Cortex-M4 architecture and the STM32G4 documentation when i compared. RM0440 - STM32G4 series advanced Arm-based 32-bit MCUsRevision: Rev. 9Section: 1.1 — General informationPage: 74The document states: “The STM32G4 series devices have an Arm Cortex-M4 with FPU core with Arm TrustZone.” However, the STM32G491RE uses a Cortex-M4 with FPU, which implements the Armv7E-M architecture. And Arm TrustZone-M is part of the Armv8-M Security Extension. Could ST please confirm whether the above statement in RM0440 Rev. 9 is incorrect?Thank you.
Hi Can you please tell me where I can find the safety manual for the SR5E1Ex series of micros? Many thanks Paul W.
User labels for handle structure In STM32CubeMX, the user can define a User Label for GPIO pins.For example: User Label: LED_REDThis generates:#define LED_RED_Pin GPIO_PIN_5#define LED_RED_GPIO_Port GPIOAHowever, there is no User Label option for handle structures.For example:extern I2C_HandleTypeDef hi2c;extern TIM_HandleTypeDef htim2;extern ADC_HandleTypeDef hadc1;extern UART_HandleTypeDef huart1;Is would be nice to have al user label for a uart, so the application source can refer to that user label. For example:extern UART_HandleTypeDef MY_COM_huart;extern TIM_HandleTypeDef LED_RED_htim;Thanks,
Hello ST Team,We are using the VL53L8CX (VL53L8CXV9GC/1) ToF sensor with an NXP i.MX8MP running Linux over I²C.We understand that the VL53L8CX has an internal MCUWe would like to clarify: Does ST provide firmware updates/releases for the VL53L8CX? If yes, how can we obtain the latest compatible firmware? What is the recommended procedure to update/load the sensor firmware from a Linux host? Does ST provide any recommended firmware version-check or firmware update API for production devices? Please provide the recommended procedure, documentation, and any required ST software package/API. Thanks.
SummaryOn my STEVAL-VL53L9, the VL53L9CX boots, installs FW patch 0.17, reaches STREAMING with all error bits clear — and then faults on the very first frame. The reference SPAD array reports zero amplitude on every channel, as if the VCSELs never fire.I have reproduced this with two different VL53L9CX parts and three independent host implementations, each of which is known to work on another STEVAL-VL53L9. I have run out of things I can change from software, and I would like to understand what the firmware error codes mean.SetupBoard: STEVAL-VL53L9, VL53L9CX hand-soldered by me Host: ESP32 (DevKit v1) through the J2 header, plain I2C at 400 kHz, address 0x29 Clock: on-board 12 MHz Y1 (R25 removed, R24 fitted, R23 removed); EXT_CLOCK = 12000000 J3 (Host IO) = 3.3 V; VDDA_CFG = 2.8 V, VDDIO_CFG = 1.8 V XSHUT driven by the host, SYNC_IN tied high, INTR not used (FRAME_READY polled) FW patch 0.17 (9,865 bytes, byte-identical to vl53l9_patch.h in STSW-IMG053 / 53L9A1 BSP)SymptomDefault pro
Hello,I’ve run into what appears to be a documentation error or a H/W bug with the GPDMA on the STM32U585. I’ve set up a 512-byte circular DMA buffer with HT and TC interrupts to capture UART Rx data. I’ve also enbaled DTE and SUSP interupts because I want to handle UART IDLE detection. In the UART IRQ handler (caused by IDLE), I suspend the DMA channel. The DMA IRQ handler then triggers on SUSPF and I grab the current BNDT value, update an internal index, and then resume the DMA. The DMA continues until the block is complete (TC), then reloads only the CxDAR from memory (only UDA set in CLLR update bits). According to documentation, the BNDT value should be reloaded from an internal value stored when the channel was enabled. This works as expected until the TC after suspend/resume event. After a suspend/resume, the BNDT appears to reload a different value, and continues to use that new value. The only work around I found was to add UB1 to the CLLR update bit fields and provide a
Hello Team,We need clarification regarding OBKey Storage, Internal Trusted Storage (ITS), and Protected Storage (PS) in the STM32H5F5 device when using the Secure Manager framework.Is the OBKey, ITS and PS storage physically located within the device's 4 MB internal Flash memory, or does it reside in a dedicated secure memory region? Can a Non-Secure (NS) application directly read from or write to ITS, OB KEYS, PS storage areas in terms secure manager? If direct access is not allowed, what are the security mechanisms that prevent NS access?Regards,RJ
I have a NUCLEO-F091RC (on-board ST-LINK/V2-1, USB ID 0483:374b, latest firmware V2J33M25). When plugged directly into my Mac it enumerates and drops repeatedly. LD1 keeps blinking red.I found the ST FAQ "Possible communication failure between STLINK-V3 and some recent computers" (eUSB2 repeater interoperability). My symptoms look very similar, but my probe is a V2-1 that enumerates at full speed (12 Mbps), not a V3, so I'd like to know if the V2-1 is affected too.SetupMacBook Pro 14-inch (Nov 2023), Apple M3 Pro, macOS Tahoe 26.7.1 USB-C to Mini-B cable, directly into the MacSymptom (from log stream, repeating about every 0.3 s): enumerated 0x0483/374b/0100 (STM32 STLink / 1) at 12 MbpsAppleUSBIORequest::complete: device 1 (STM32 STLink) endpoint 0x00: status 0xe00002ed (transaction error): 0 bytes transferredAppleUSBHostPort::terminateDevice: destroying 0x0483/374b/0100 (STM32 STLink): hardware connection lostioreg -p IOUSB -w0 shows a new STM32 STLink entry with a different id every
On STM32H733, the HAL provides __HAL_DBGMCU_FREEZE_FDCAN() in stm32h7xx_hal.h but it is conditionally compiled:#if defined(DBGMCU_APB1HFZ1_DBG_FDCAN)#define __HAL_DBGMCU_FREEZE_FDCAN() (DBGMCU->APB1HFZ1 |= (DBGMCU_APB1HFZ1_DBG_FDCAN))#endifDBGMCU_APB1HFZ1_DBG_FDCAN is not defined in stm32h733xx.h, so the macro does not exist at compile time and calling it gives:error: implicit declaration of function '__HAL_DBGMCU_FREEZE_FDCAN'Questions:Is FDCAN freeze during debug halt supported on STM32H733? If yes, why is DBGMCU_APB1HFZ1_DBG_FDCAN missing from stm32h733xx.h — is this a bug in the device header? What is the correct bit position to use as a workaround via direct register write? I need to pause the FDCAN peripheral during debugging, that is my goal. Thanks you very much for helping me out.
I configured ADC1 to be triggered by TIM2_CH2 and TIM2 compare channel 2 on STM32F429 with CubeMX, and enabled their interrupt, TIM2 CC2 ISR was run but ADC EOC ISR not run. I tested both by LED and by debug in CubeIDE, both results were the same. When debug in CubeIDE, after TIM2 CC2 ISR was run, STRT=0 and EOC=0 in ADC1 SR, which indicated that ADC1 was not triggered. However, if I configured ADC1 to be triggered by TIM2_TRGO and TIM2 trigger output from Update event, ADC1 was triggered.My settings in CubeMX:CubeMX and CubeIDE project files:
I want to have asynchronous USB audio with the STM32g431k6 and an external DAC but I get conflict message if need both. Am i missing something? if i use OSC IN as audio clock input it will not bypass the internall PLL as in I2S_CKIN isn’t it? I thought it was due to the product used (32pins) but with the 48 is the same. So the question is how do i do that?
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.