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 everyone, I would like to ask if it is possible (and if so, how) to make both m4 and m7 get an interrupt made by the user button in in the nucleo board, since the only Pin Context Assignment options on CubeMX is either m4 or m7. Do I have to do it "manually" by writing the code to register the interrupt on the other mcu? Thanks in advance!
hi,In STM32G070C, it seems there is no remap mechanism to select wich pin(PC5,or PC11) should be used for USART3_RX.if i configure PC5 and PC11 are USART3_RX all at once, simultaneously, what will happen?Best regards
CubeMX Version 6.18.1 (tested with STM32G491VET6) shows no "Clear Input" parameter group for TIM16/TIM17, so the OCREF-clear feature cannot be configured from the tool.The hardware does support it, per RM0440 Rev 9:§31.4.17 "Clearing the tim_ocxref signal on an external event" (TIM15/16/17 chapter) TIMx_CCMR1 bit 7 OC1CE, x = 16..17 (p. 1490) TIMx_AF2 OCRSEL[2:0], x = 16..17 (p. 1505) selecting tim_ocref_clr0..7 Table 76 "Interconnect 3": TIM16/17 ocref_clr sources include the COMP1..COMP7 outputsUse case: cycle-by-cycle peak-current limiting of a synchronous buck (COMPx clears OC1REF; CH1N provides sync-FET freewheel). For comparison, TIM1/TIM2 panes do offer "Use ETR as Clearing Source" / "Clear Input Source".Currently the only workaround is manual register writes in USER CODE (TIMx->AF2 OCRSEL + TIMx->CCMR1 OC1CE), which the .ioc cannot capture.Request: add the Clear Input group (OC1CE + OCRSEL source selection) to the TIM16/TIM17 panes for STM32G4. Image 1: Outline of RM0440
NUCLEO-H753ZI Board Recovery Case Description: STMicroelectronics ST-LINK GDB server. Version 7.11.0Copyright (c) 2025, STMicroelectronics. All rights reserved. Starting server with the following options:Persistent Mode : DisabledLogging Level : 1Listen Port Number : 61234Status Refresh Delay : 15sVerbose Mode : DisabledSWD Debug : EnabledInitWhile : Enabled Target no device found Error in initializing ST-LINK device.Reason: No device found on target. Board: NUCLEO-H753ZIBoard part number: MB1364-H753ZI-E01MCU: STM32H753ZIT6 / STM32H753ZIAffected quantity: 3 boards I have three NUCLEO-H753ZI boards, model MB1364-H753ZI-E01, with the same hardware issue. On all three boards, U2 (5V ST-LINK protection IC) becomes significantly hot when the board is powered through the USB connector, and LD6 (ST-LINK USB overcurrent indicator) blinks red. "Error in initializing ST-LINK device."I checked the board and found that 5V is present at the input of U2, but the output toward the ST-LINK section
Hello everyone,I'm developing an application using the STM32H563 with TrustZone enabled. Online tutorials first show configuring the fuse bits using the STMCubeProgrammer software:TZENSECWM1_STRTSECWM1_ENDSECWM2_STRTSECWM2_ENDThen, the application is installed in the STMCubeIDE, where it is saved and executed correctly.However, if the developer tries to install the application without going through the first step, the code is unable to exit the safe zone, resulting in a hard fault error. This is because the IDE, when TrustZone is enabled, assumes that all FLASH memory is in the safe zone.I would like to change these fuse bits without using STMCubeProgrammer. I believe it's possible, but I haven't found any information where the result is satisfactory. Could someone help me?
Hi all, I’m searching a method to configure the NVRAM STPMIC25 VINOK_rise param in the 0x90 adress Register (NVM_MAIN_CTRL_ SHR1) As this is a sensitive reg I’m supposing this field and may others are Locked in the NRAM in the DK board from ST. Please I’m considering running Board with 3.3V power Buck Converters. Cheers, Habib
Hello STM32 Community,I am currently working on a USB Flash Drive interface using STM32G0B1RET6 with USB Host and FatFs.The USB Flash Drive is working correctly. When I plug in a USB Pendrive, my STM32 can detect it, mount the filesystem, and successfully create/write files to the Pendrive.Now I would like to display/check the following information:Total USB Flash Drive storage Used storage Free/available storage Detect whether the USB is almost fullMy current code is:static void USBH_UserProcess(USBH_HandleTypeDef *phost, uint8_t id){ switch (id) { case HOST_USER_CLASS_ACTIVE: Appli_state = APPLICATION_READY; USB_Detect_flag = 1; // USB is plugged Mount_USB(); HAL_GPIO_WritePin(GPIOC, LED_RED_Pin, GPIO_PIN_RESET); /* Check USB free space */ if (usb_space_result == FR_OK) { displayText16x16_DMA(20, 190, "USB HAS SPACE",
Hi,I am using the following codes to do system clock initialization on my STM32F411E-Discovery board: /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; RCC_OscInitStruct.HSEState = RCC_HSE_ON; //Use X2 Crystal RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; RCC_OscInitStruct.PLL.PLLM = 4; RCC_OscInitStruct.PLL.PLLN = 192; RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV4; RCC_OscInitStruct.PLL.PLLQ = 8; if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) But if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)returns time out error.I am sure crystal X2 is connected, but I don’t understand why it gives me time our error. Previosuly I also tried:RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;that also threw time out error, I gave up this configuration because I am not sure if SB14 and SB16 are bridged
We have a project which uses STM32CubeIDE (Eclipsed-based). It has a Makefile which we use to compile the code and upload the code to the target. Since I know ST has made a new STM32CubeIDE VSCode extension, I wanted to have a trial to see if I can convert the existing Eclipsed based project to VSCode based project. I installed the STM32CubeIDE extension in VSCode and other necessary components. I followed the migration guide to generate a CMake project using STM32CubeMX. However, it never worked since the new CMake file doesn’t take what the original Makefile does in my project. It missed a lot of compiler and scripting options. After the migration, the build process failed and never succeeds. Since Makefile works great in the original project (either in CLI/GUI mode), why does the migration require user to convert it to CMake? Many Unix/Linux users prefer Make instead of cmake. It gives you better control over the source code. I would suggest ST that if you really want to make a VSCo
TouchGFX Designer 4.26.0 Given the following “empty” SVG file:<?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- Created with Inkscape (http://www.inkscape.org/) --><svg width="1024" height="600" viewBox="0 0 1024 600" version="1.1" id="svg1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> <rect x="0" y="0" width="1024" height="600" fill="none"/></svg>I can select it as SVG file in Designer:But sources do not get generated for the file. So when I try to build the simulator Build in Visual Studio I get the following error:
Subject: X-CUBE-CLASSB-L4 (STL) — Fault Injection Method for Flash/CPU/RAM Self-Tests on STM32L451CETI am applying X-CUBE-CLASSB-L4 (Self-Test Library, STL) on an STM32L451CET MCU to implement CPU/Flash/RAM self-tests for IEC 60730-1 Class B certification.Main issue: No matter what method I try, the Flash test never passes (always reports a failure / never completes successfully under normal conditions).Certification requirement: Our certification body requires us to demonstrate both the normal (pass) case and the fault (failure) case for each test, specifically by actually altering real values during test execution:CPU test: by actually changing register values during the test Flash test: by changing the CRC value, or modifying Flash memory contents while the test is running RAM test: by modifying RAM contents while the test is runningI understand that ST's recommended method is to use STL_ArtifFailingConfig to perform fault injection. However, this only simulates a failing configurat
Hi,I'm working with an STM32N6570-DK and need the microSD slot (CN13, SDMMC2) to run at 1.8V signaling instead of the 3.3V default. The device I'm connecting only supports 1.8V, and the target speed is modest, around 25 MHz.What's the correct procedure to make this switch on this board?So far I've driven SD_SEL (PO5) high to flip U32, but CN13 pin 3 still measures 3.3V. AN5967 (Getting started with hardware development for STM32N6) section 12.4 points to PWR_SVMCR2.VDDIO5VRSEL together with OTP124 bit 13 (HSLV_VDDIO5), which currently reads 0 on my board.Two things I'm unsure about: Is burning HSLV_VDDIO5 actually required for 1.8V operation, or only to reach the datasheet frequencies? Does burning it permanently prevent the slot from working with ordinary 3.3V SD cards?
JW
Background: I am trying to bring up simultaneous operation of both FDCAN peripherals on an STM32G0, but due to a combination of unfamiliarity with the clock internals, and a misleading baud rate calculator, I spent a while trying to debug what I thought was a non-functioning FDCAN2 peripheral, but was actually working at an unexpected frequency. FDCAN1 configuration: FDCAN2 configuration (noting that the prescaler is 8, while the clock divider is 1): with this configuration, FDCAN2 transmission works as expected (verified using a PEAK CAN dongle) at 250kbaud when I am running it on its own in normal operation -- started the FDCAN2 peripheral using HAL_FDCAN_Start(&hfdcan2). However, if I also start FDCAN1, then I can no longer read any transmissions from my CAN dongle. After unsuccessfully attempting to debug the issue in firmware, probing my CAN lines revealed that FDCAN2 was operating at 30kbuad (250k/8 = 30k). Going back at the CubeMX configuration, I tried changin
We're bringing up an ST87M01 module on a custom board and have not yet achieved a successful first AT command response. We've implemented what we believe is the correct wake/power sequence based on your EC-Lib reference source and a third-party open-source host library, but want to confirm we're not missing an ST87M01-specific requirement before we keep debugging on our end. What we've implementedVBAT_DCDC_EN, NRESET (active low), WAKE_UP (active low) and RING are driven via a host-side I2C GPIO expander, not directly from MCU pins. Power-up sequence: assert NRESET high (out of reset), hold WAKE_UP idle-high, wait ~3 s settle, then pulse WAKE_UP low for ~100 ms and release it high. Separately, we also send a single \r byte over UART before each AT command (per the wake behavior we observed in ST87EC_Wrapper_WakeUp() in your EC-Lib reference), followed by a short settle delay before sending the actual command.We're currently sending both the GPIO WAKE_UP pulse and the UART \r wake, sinc
void HAL_MRSubG_IRQ_Callback(void) { uint32_t irq = __HAL_MRSUBG_GET_RFSEQ_IRQ_STATUS(); if (irq & MR_SUBG_GLOB_STATUS_RFSEQ_IRQ_STATUS_RX_OK_F) { last_rx = HAL_GetTick(); HAL_GPIO_WritePin(LD1_GPIO_Port, LD1_Pin, GPIO_PIN_SET); if (HAL_MRSubG_GetBytesOfTransaction() <= ring_buffer_u8_free(&radio_ring_buffer) && radio_packet_fifo_free(&radio_packet_fifo) != 0) { for (uint8_t i = 0; i < HAL_MRSubG_GetBytesOfTransaction(); i++) { ring_buffer_u8_write(&radio_ring_buffer, radio_rx_buf[i]); } radio_packet_t radio_packet = { .len = HAL_MRSubG_GetBytesOfTransaction(), }; radio_packet_fifo_write(&radio_packet_fifo, radio_packet); } __HAL_MRSUBG_STROBE_CMD(CMD_RX); __HAL_MRSUBG_CLEAR_RFSEQ_IRQ_FLAG( MR_SUBG_GLOB_STATUS_RFSEQ_IRQ_STATUS_RX_OK_F); } if (irq & MR_SUBG_GLOB_STATUS_RFSEQ_IRQ_STATUS_RX_TIMEOUT_F) { __HAL_MRSUBG_STROBE_CMD(CMD_RX); __HAL_MRSUBG_CLEAR_RFSEQ_IRQ_FLAG( MR_SUBG_GLOB_STATUS_RFSEQ_IRQ_STATUS_RX_TIMEOUT_F); } if
HelloUsing NTAG5 Link (NTP53121G0JTZ) in SRAM Mirror mode with an STM32G0B1RE I2C master at 100 kHz. WDT is disabled (WDT_EN=0, WDT_CONFIG=0xFFFF).Problem: A single I2C multi-block write to SRAM (64 blocks, 256 B starting at 0x0000) NACKs after the tag accepts exactly one 4-byte block.Questions: Are multi-block SRAM writes supported in SRAM Mirror mode, or only in SRAM Pass-Through mode (AN12364)? If supported in mirror mode, what configuration am I missing?
Hi,The CRA is making Secure Boot and Secure Update increasingly important for a wide range of products.I have fully reviewed the playlist at https://www.youtube.com/playlist?list=PLnMKNibPkDnGd7J7fV7tr-4xIBwkNfD-- as well as documents UM2262 and AN5056.Unfortunately, AN5056 is far too brief to properly understand how to implement this yourself.The video series only features controllers that are already covered in the existing examples.I wanted to ask if it might make sense to continue the video series and address these specific points. I believe this would be a huge help to many customers.Right now, I feel like it will take me months to customize SBSFU for my needs.Both the video series and AN5056 lack coverage of fundamental aspects, such as:-Changing the update interface from UART to something else—for example, USB (virtual COM) or CAN. Where exactly are the lines of code that need changing?-Implementing and explaining a controller that isn't currently covered by an example (e.g., ST
We are currently working on flashing an STM32L071KZ MCU using the STM32 bootloader.The flashing process completes successfully when using a 64-byte payload. However, when we reduce the payload size to 8, 16, or 32 bytes, we observe unexpected behavior. In each case, only the first 8, 16, or 32 bytes of every 64-byte flash block are programmed successfully, while the remaining writes within the same 64-byte block do not take effect. This pattern repeats consistently for every subsequent 64-byte-aligned address.We have verified that:The correct data is being transmitted to the MCU. The target flash address is incremented correctly for each write operation. The bootloader acknowledges the write commands.Despite this, the flash programming behaves correctly only when using a 64-byte payload.Is there any known limitation or programming requirement for the STM32L071KZ bootloader or flash controller regarding payload sizes? Are there any additional steps or constraints that must be followed w
I have written compact assembler code, with assistance from ChatGPT and Gemini, for the STM32H5E5ZJ to raise its core voltage to VOS0, configure PLL1 and PLL2 and switch system clock to 248MHz.Any comments much appreciated as to the sequencing and safety of this code or any problems seen please.It is tested and working reliably and occupies less than 512 Bytes. At the moment it runs in RAM and only after reset (not to be called later. To run in Flash it must also raise Flash wait states. The code also configures MCO1 and MCO2, configures SPI1 as master, running at 4MBaud, it puts SPI1 into a delayed loop sending test data readings from TIM2.SPI1 is configured to use PA4 SPI1_NSS, PA6 SPI1_MISO, PA7 SPI1_MOSI and PG11 SPI1_SCK.Any comments much appreciated as to the sequencing and safety of this code.I have used ST Core MX extensively to help build the code by reading MX generated C code. Here is the code, anyone is free to make use of it as a supplement to official ST code if they so
Hello, I’m using 6 of the STGAP3SXI as part of an IGBT 3 phase bridge driver. Each chip has its own 24V to isolated +15V and -9V switching supply (Meanwell GD2-241509) and the logic side is powered with a separate +5V supply. Everything runs normal except once in a while I get a random low signal on one of the chips on the READY pin which causes the MPU to issue a fault and shutdown.The datasheet says this is an error signal for the logic side under volt lockout, the isolated side under volt lockout, and the chip over temperature sensor. The diagram shows that the READY signal will return high after the voltages have risen above the min thresholds and chip temperature has lowered. However, the voltages from the supplies are above the UVLO thresholds on both sides and the chip temperature is nowhere close to its trip point. Also, when this occurs, the READY signal never returns high and only a total power down will reset it. Is this a noise issue locking up some function of the chip? I
I am using VL53L4CX together with VL53L4CD’s ULD driver. This was discussed before in VL53L4CX using VL53L4CD ULD and it works just fine. I am now willing to improve power-consumption under long-lasting proximity monitoring.I understand that “VL53L4CX is a superset of VL53L4CD” but is it still true for low-power behavior ? Or does the VL53L4CD’s low-power capacity benefits from some permanent factory modification w/r to VL53L4CX ? According to this flyer, only VL53L4CD is rated for ultralow power. And in case I cannot achieve VL53L4CD’s advertised lowpower specs (down to 50-ish µA) with the VL53L4CX, is it still relevant to use the VL53L4CD’s ULP driver to be as efficient as possible ? and are there some additional tweaks that could be made to this driver in that particular case ?
I’m just getting started with Cube MX and IDE. (MX: 6.18.1, IDE:2.2.0, Debian Trixie platform)I have the Nucleo-144 board with STM32F412GTx device. I’ve tried to configure the TIM1 as PWM,and enabled the interrupts in MX. Generated the code, opened in IDE, built and uploaded to the neucleo board with no significant problems. However, whilst the timer is configured pretty much as specified in MX, the timer is not enabled, none of the interrupts are enabled and the output is not enabled.I can see that whilst a motor control program would not want either the timer or the timer output enabled at boot, not having the interrupts enabled seems strange. I managed to enable these by looking up in the reference manual and manually setting the registers in the debug mode, but that does not affect the Flashed code. (Modifying CR1, DIER and CCER registers)I did find one article describing how to enable the timer, and added that code to the timer init function, but so far I’ve not found the commands
Hi, I’m running the ST BLE Sensor app on an iPhone and when I attempt to change the profile from beginner to expert, it does not take. The result is that many options are grayed out. Am I doing something wrong? Is there a work-around? I don’t have access to an Android device.iPhone 16-Pro iOS 26.62, APP v5.2.6, fp-sns-datalog2 v3.3.0, STEVAL-STWINBX1Thanks, Tony
I attended "Build Your Own Embedded System Workshop From Prototype to Design: Rapid Development with the STM32Cube Ecosystem" at the Embedded World North America in Anaheim, CA last month (Sep 2026). I am looking for slides that were shared during the workshop.
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.