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
Hi everyone,I am working on the STM32MP257-EVAL board, where my Cortex-M33 application requires both FreeRTOS and OpenAMP middleware to run together.After referring to the STM32CubeMPU packages, I found separate example projects:One for FreeRTOSOne for OpenAMP (running in bare-metal environment)I tried combining both examples into a single application. The FreeRTOS part is working correctly, but OpenAMP hangs during initialization.After debugging, I noticed that libmetal is getting compiled for the generic platform instead of the FreeRTOS platform. To address this, I changed the toolchain configuration from:-DCMAKE_TOOLCHAIN_FILE=cmake/platforms/stm32mp-generic-gcc.cmaketo:-DCMAKE_TOOLCHAIN_FILE=cmake/platforms/stm32mp-freertos-gcc.cmakeHowever, this results in multiple compilation errors. It seems the provided libmetal port may not be fully compatible with the FreeRTOS platform setup.Has anyone successfully integrated FreeRTOS + OpenAMP together on STM32MP257 (M33 core)?Are there any
SummaryOn an STM32WL5MOC-based LoRaWAN end node, we've measured a consistent ~100 ppm RTC drift on the module's integrated LSE (32.768 kHz) crystal — noticeably outside the commonly quoted ~±20 ppm room-temperature tolerance. We isolated this down to the RTC hardware itself through several independent tests before concluding it's a genuine crystal characteristic (or specific to this device/batch) rather than a software or configuration issue. Posting to ask whether ~100 ppm is within expected variance for this SiP's integrated crystal, or worth escalating further.ConfigurationMCU: STM32WL5MOC (Cortex-M4 side) RTC: RTC_BINARY_MIX mode, PREDIV_A=31, PREDIV_S=1023 (10-bit synchronous prescaler) RTC clock source: LSE — confirmed selected and ready (RCC_FLAG_LSERDY, __HAL_RCC_GET_RTC_SOURCE()) before proceeding; HAL_RTC_MspInit() itself calls Error_Handler() if LSE isn't ready/selected, so normal boot already implies this passed. Application: LoRaWAN Class A end node (US915), periodic uplin
I was testing stm32 adc interrupts but the IRQ is not working properly and idk what is the matter, I wasted a lot of time in debufgging it but didn’t get any leads. Please help me out, here is the link of the project:GitHub Repo
Hi STM32 Community,I am currently selecting an STM32 MCU for a timing-control application and would like some guidance on the required timer architecture.My requirement is:Input trigger: 45 Hz, 50% duty-cycle signal. After receiving the trigger, the STM32 should generate 8 PWM outputs with a configurable delay. The required trigger-to-output delay is approximately 0–3 µs. PWM1–PWM4: 45 Hz, 25% duty cycle PWM5–PWM8: 45 Hz, 25% duty cycle The 8 outputs need to be synchronized according to the timing sequence shown in the attached diagram. In addition, I receive 4 feedback PWM inputs: Feedback 1–4: 45 Hz, 25% duty cycle These feedback signals need to be measured/captured by the STM32. My main question is:What is the recommended STM32 timer architecture for this requirement?Specifically:How many timer peripherals would I need? Can I use two timers with 4 PWM channels each to generate the 8 PWM outputs? Can a third timer with 4 input-capture channels be used to measure the 4 feedback PWM s
I have loaded the pack for CMSIS and CMSIS-DSP using the Pack Manager in STM32CUBEMX2. However, when generating code in the Project Settings, the CMSIS appears in the Packs Section and is generated in my project directory but the CMSIS-DSP does not appear in the Packs Section and is not generated. I want to use the DSP features but not able to. Any advice?
Hello ST Community,am working with a Nucleo-H753ZI board where the STM32H753ZI is configured as an SPI1 slave, and the SPI master is a TI AM64x R5F core.The goal is for the STM32 to continuously transmit 4-byte frames over SPI (using DMA) whenever the master clocks the bus.However, the problem is:The master is receives only FF FF/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2025 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** */ /* USER CODE END Header */ /* Includes --------------
Hello everyone,I am currently developing with the STM32N6570-DK and utilizing the hardware ISP. I am facing an issue with the embedded Auto Exposure (AE) algorithm's convergence time. It currently takes about 20-30 frames (~1 second) for the AE to settle on the correct exposure and gain. For my application, it is critical that the very first frame upon wake-up is perfectly exposed, meaning a 1-second delay is not acceptable.To bypass this feedback loop, I have integrated a Texas Instruments OPT3001 Ambient Light Sensor (I2C) to implement a feed-forward solution. My intended sequence is: Read the absolute ambient lux from the OPT3001 on boot. Map this lux value to a pre-calibrated Lookup Table (LUT) to determine the ideal Exposure Time and Sensor Gain. Force the STM32 ISP into manual exposure mode and inject these values directly. Start the camera stream to achieve a zero-delay, perfectly exposed first frame. I have a few questions regarding the best way to implement this within t
I have used the 70STM32H7 template in TouchGFX Designer 4.26.1 to create a project for a Riverdi RVT70 board.I've created a basic start screen, generated code and built it using CubeIDE 2.1.0.The code loads onto the target and runs as expected.If I open the project's .ioc file, I am told that the project uses V1.12.1 of the STM32Cube FW_H7 and V.13.0 is available. Upgrading to this version, saving and regenerating the code results in the project failing to build:In file included from ../../../CM7/USB_HOST/Target/usbh_conf.h:98, from ../../../Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_core.h:27, from ../../../Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc/usbh_msc_bot.h:28, from C:/TouchGFXProjects/GFX/Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Src/usbh_msc_bot.c:27: ../../../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h:32:10: fatal error: cmsis_os2.h: No such file or directory 32 | #include "cmsis_os2.h"This can be fixed by adding a new i
HiI designed a PCB with an STM32MP157 using a Micron LPDDR3 memory. When I started the layout, I was advised that the memory would be available at least until 2029, so proceeded in good faith. When I came to order prototype samples back in March, I found that there was a Last Time Buy of August 31st this year.The only option that I had was to change the layout to support DDR3L memory, however with the current DRAM supply crisis, I do not have confidence that this generation of device will have sufficient longevity of supply to justify the investment in mass production.My alternative is to jump to an STM32MP2-based board and use DDR4 or LPDDR4 memory which will likely be available for longer but again with the current supply chain situation, these generations could also be obsoleted sooner than anticipated. I already read of DDR5 and LPDDR6 memories coming on stream.Two questions:With regard to the STM32MP1 and STM32MP2 processors, what is ST’s best guidance about which DRAM memory type
I have used some time to figure out to use the ADCs for a couple of Nucleo STM32G4xx boards. In particular I liked to be able to make use of the asynchronous clock. I found out by some trials and errors to get the right RCC settings for that.In RM0440 you got a ADC clock schematic figure 83 page 597. I have tried to enlarge this schematic a bit regarding the RCC controls like this: Can you agree to this schematic?These functions can help configure RCC for the other ADC clock input:__HAL_RCC_ADC12_CLK_ENABLE() Enables clock to AHB interface__HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL_ADCCLK); Enables clock to PLLPI did not find a function outside the big HAL RCC init data structure to set the bits ABCxxSEL[1:0] of RCC_CCIPR, so I did that bare metal.
Hello,I’m using STM32Cube AI Studio to optimize and validate an ONNX model on a NUCLEO-N657X0-Q board. In general, everything works fine. However, I would like the board to be configured in overdrive mode (npu_freq = 1000MHz, mcu_freq = 800MHz) by Cube AI Studio for the validation runs on the target because I’m hoping to achieve a better inference time.When executing new “runs” in Cube AI Studio, the device attributes are always as seen in the screenshot below.Results overview of a run in Cube AI StudioIf I use the the ST developer cloud to optimize and benchmark my model with the STM32N6570-DK board (because the NUCLEO-N657X0-Q is not available in the DC), the device attributes are as follows:Device attributes for the benchmark in the developer cloudSince those two boards have the same STM32N657X0H3Q MCU, I expect a similar inference time on my NUCLEO-N657X0-Q board with Cube AI Studio if I could just activate the overdrive mode. I didn’t find any settings in the Cube AI Studio user i
Hi, I am trying to design a custom board with a 1 rank dual die 16Gb LPDDR4, AS4C1G16MD4V-046BIN. I have read the design guide AN5489 and DDR config AN5723. From my understanding there is only one chip select pin for each rank, correct? What do I do? Is there a configuration supported by the STM32MP2x processor with 2 chip select in 1 rank?FYI, I am designing a board based on STM32MP235, so supposedly only 1 rank is usable as per the datasheet.
Hi team ST,As we all know, the major DRAM manufacturers have all announced they will stop fabricating the DDR4 die and only LPDDR4 is still in production, in light of this, does STMicroelectronics has an plan to design a new PMIC more focus on the LPDDR4 configuration with less LDOs and smaller package? Given that we don’t need the external termination for DDR anymore with LP DRAM.
Somesays ago, I successfully used STM32Cube.AI Studio to deploy a model to an STM32U585CIU6 board and test it.However, yesterday evening I upgraded STM32CubeIDE, STM32CubeProgrammer, and STM32CubeMX. After that, when I tried to run the same process again, I started getting an error.I searched online and found some similar cases. The suggested solution was to update all related software, so I updated the tools accordingly. However, the same error still occurs.I also tried using another laptop. On that laptop, I performed the same software upgrades and then tested with an STM32H743VIT6 board, but the same error occurred there as well.Because of this, I suspect that I may have missed updating some required software or package.Has anyone experienced this issue before or found a solution? I would greatly appreciate any advice or guidance.ps : stedgeai version is v4.0.1.
I want to create an MX25UM51245G. sldr, but it keeps failing with a prompt Use the official MX25UM51245G_STM32N6570-NUCLEO.stldr to confirm that the board can be downloaded successfully Please check the MX configuration that I generated for MX25UM51245G_STM32N6_ ExtMemLoader. stldr
Hi!I've found good programs for surfing on the web (Google, wikipedia, MSN, News etc.) and playing Youtube videos in full 1080p HD. No heavy JavaScript is enabled. Those programs requires an update of the extremely light weight GUI library FLTK 1.3.8 to 1.5.x. Is there anyway I could do that in OpenSTLinux Yocto SDK? The name of these programs are: - FLTube Youtube Player - Dillo Web Browser These are old technologies from late 90's, but they are extremely optimized to run on low, slow and old hardware. Still maintaining by developers.
Setup: STM32F446RE Nucleo + MPU9250 (I2C1, PB8=SCL/PB9=SDA), breadboard wiring, HAL library, 100kHz standard mode.Symptom progression: Sensor works intermittently. When it fails, I see two distinct failure signatures that seem to escalate:First failure mode: HAL_I2C_IsDeviceReady() succeeds (device ACKs its address) but the WHOAMI register read returns the wrong value. After a couple of MCU resets without touching hardware: escalates to the device not ACKing its address at all (IsDeviceReady fails outright).What I've tried:Implemented the STM32 I2C "clear busy flag erratum" workaround (ST-documented fix for the analog filter/BUSY-flag lockup bug — the 15-step GPIO bit-bang + SWRST sequence). This did NOT reliably fix it — worked on some boots, failed on others, no clear pattern. A full power cycle (not just MCU reset — actual power removal) temporarily restores it to working. Reseated all breadboard connections (SDA, SCL, VCC, GND) multiple times — no change in behavior.What this rules
OpenSTLinux: Starter Package, plain image (FlashLayout_sdcard_stm32mp257f-dk-optee.tsv), version 5.0.17-openstlinux-6.6-yocto-scarthgap-mpu-v26.06.10M33 firmware: Zephyr RTOS (4.4.99), board target stm32mp257f_dk/stm32mp257fxx/m33, loaded and started from Linux via remoteproc.Goal: Drive a SPI device (Qorvo DW3000) from the Cortex-M33 over SPI6, which is exposed on the CN5 header (GPIO10/SPI6_MOSI = PC7, GPIO9/SPI6_MISO = PC4, GPIO11/SPI6_SCK = PF7).When the M33 firmware performs a SPI transfer, the GPIO chip-select line toggles correctly (verified on a logic analyzer), but SCK never produces any clock pulses & the line stays flat. Consequently no data is exchanged (MOSI/MISO flat). The transfer call itself returns; it just produces no clock.What I have already checked:-RIFSC firewall: SPI6 shows as NSEC, NPRIV, CID filtering disabled (from the RIFSC debug dump) — i.e. not blocked/assigned exclusively to the A35.-Clocks: clk_summary shows both ck_icn_p_spi6 (~200 MHz) and ck_ker_sp
I am working with an STM32MP257F-EV1 Evaluation board (board reference MB1936, target STM32MP257FAI3) and am unable to debug the Cortex-M33 core independently over SWD. Setup:- Board: STM32MP257F-EV1- Tools: STM32CubeIDE and STM32CubeProgrammer.- Boot switches (SW1) set to Development boot: Boot0=1, Boot1=1, Boot2=0, Boot3=0- JP3: no jumper fitted (STLINK-V3EC active)- CubeIDE debug configuration: Load Mode = "thru JTAG/SWD link (Engineering mode)", Access port = "8 - Cortex-M33", SWD interfacei have attached debug error screenshot. i want to debug a standalone (bare-metal) application running on the Cortex-M33 over SWD.Could you help with the following:Is it possible to debug the Cortex-M33 via SWD/JTAG on the STM32MP257F-EV1 without booting from SD card, eMMC, or QSPI. What is the recommended/supported procedure for attaching a debugger (SWD) to the M33 core when running a standalone bare-metal application. Are there specific boot configuration or provisioning steps required (e.g.,
Dear ST Support Team,I am currently working on an LLC resonant converter project using the STM32G474 microcontroller.My goal is to implement Synchronous Rectification (SR) using the STM32G474's PWM timers and Comparator peripherals. However, I am unsure about the correct peripheral configuration and firmware implementation.I would appreciate your guidance on the following: How should I configure the PWM timers and Comparator peripherals in STM32CubeMX for Synchronous Rectification? Which timer and comparator connections are recommended for this application? Are there any reference projects, example firmware, or application notes available for implementing SR on the STM32G474? Are there any recommended CubeMX configurations or firmware examples that demonstrate this functionality? Could you recommend any official documentation, training material, videos, or tutorials that explain the implementation of LLC Synchronous Rectification using STM32? My objective is to understand the c
Hi all,I’m looking at a STM32C092 for some UART stuff. The data sheet has USART1 on an independent clock. Using MX I select USART1 as Asynchronous and MX calculates the rate according to the independent clock as expected,However, when I select USART1 as Synchronous MX calculates the bit rate according to the APB clock. I don’t have a device to test it on.Is MX right or wrong?Thanks in advancePedro
We are using the PowerSTep01 chip to control a stepper motor.https://www.st.com/resource/en/datasheet/powerstep01.pdfRecently we have had issues with the control of motors where the initialization of the PowerStep01 chip failed at startup and the status register read 0x0000 before initialization and 0xE603 after initialization and 0xE613(HiZ=1) when tried to run the motor. After some investigation we figured that sending a reset pulse for 5ms worked (initial Solution A) which had to be increased to 100ms (Solution B) for a stable outcome.The solution was built by reading through the answers in different forums, with 2 examples links belowhttps://forums.parallax.com/discussion/165132/trouble-driving-the-powerstep01-using-the-x-nucleo-ihm03a1expansion-board https://community.st.com/power-management-53/powerstep01-constantly-tripping-overcurrent-25813 Below is the detailed problem description as well as details of solution A and B. The problem resurfaced after removing intermediatory fi
我在尝试用STM32Cube AI Studio运行一个STM32F407ZGT6项目时遇到了“启动失败运行”错误,我不确定问题的原因。一开始运行正常,但之后错误一直出现。使用“主机”模式时,它正常工作。2026-07-13 10:49:46 错误:以下路径中找不到4.0.0版本的可执行文件:C:/*ST*/*STEdgeAI*/4.0,C:/*ST*/*STEdgeAI*/*2026-07-13 10: 49:47 错误:以下路径中找不到4.0.0版本的可执行文件:C:/*ST*/*STEdgeAI*/4.0,C:/*ST*/*STEdgeAI*/*2026-07-13 11:14:59 错误:从公共IP获取国家时出现错误:获取失败2026-07-13 11:15:00 错误:以下路径中找不到4.0.0版本的可执行文件:C:/*ST*/*STEdgeAI*/4.0,C:/*ST*/*STEdgeAI*/*2026-07-13 11:15:01 错误:以下路径中找不到4.0.0版本的可执行文件:C:/*ST*/*STEdgeAI*/4.0,C:/*ST*/*STEdgeAI*/*
Hello everyone,I am working on a project where I need to control a BLDC motor with integrated hall sensors.I saw this feature on RM0440 Document ‘29.3.28 Timer input XOR function’I decided to use the TIM2 as the ‘Interfacing Timer’ and TIM1 as the PWM generating/motor driving timer.I can read the time period between the hall sensor changes via TIM2->CCR1 register but I can not get the COM event with TIM1. Can anyone help?The following is my CUBEMX setup: Here are the snippets of my code which I think are the most related. If you need other parts of my code I can provide it.
In file included from Middlewares/ST/AI/Misc/Src/ai_device_adaptor.c:19:Middlewares/ST/AI/Misc/Inc/ai_device_adaptor.h:655:8: error: unknown type name 'UART_HandleTypeDef'; did you mean 'DMA_HandleTypeDef'? 655 | extern UART_HandleTypeDef UartHandle; | ^~~~~~~~~~~~~~~~~~ | DMA_HandleTypeDefMiddlewares/ST/AI/Misc/Inc/ai_device_adaptor.h: In function 'port_io_get':Middlewares/ST/AI/Misc/Inc/ai_device_adaptor.h:664:12: error: implicit declaration of function 'HAL_UART_Receive' [-Wimplicit-function-declaration] 664 | status = HAL_UART_Receive(&UartHandle, (uint8_t *)c, 1, timeout); | ^~~~~~~~~~~~~~~~Middlewares/ST/AI/Misc/Inc/ai_device_adaptor.h: In function 'port_io_write':Middlewares/ST/AI/Misc/Inc/ai_device_adaptor.h:676:12: error: implicit declaration of function 'HAL_UART_Transmit' [-Wimplicit-function-declaration] 676 | status = HAL_UART_Transmit(&UartHandle, buff, count, HAL_MAX_DELAY); | ^~~~~~~~~~~~~~~~~make: *
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.