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 community,I have this problem. I have a project with the STM32U575RGTx microcontroller.It includes also FreeRTOS (Version 1.3.1) and a TouchGFX project (Version 4.26.0).With this system configuration: Timebase Source TIM17 The TouchGFX project has screens that require more or less CPU, the problem that I have is that when one or other screen is selected the execution frequency of the FreeRTOS tasks and the HAL_TIM_PeriodElapsedCallback change their execution frequency, so I can not have a valid time reference to do other things in my firmware application. Has anyone faced the same problem? Much thanks in advance!
Hello,I am working with STM32WB05KN in beacon mode (non-connectable advertising, legacy advertising).I am configuring advertising manually using:aci_gap_set_advertising_configuration()aci_gap_set_advertising_data_nwk()aci_gap_set_advertising_enable()My advertising data contains only:Flags (0x01)Manufacturer specific data (iBeacon format) aci_gap_init(PRIVACY_DISABLED, HCI_ADDR_PUBLIC); : : uint8_t adv_data[] = { /* Advertising data: Flags AD Type */ 0x02, 0x01, 0x06, /* Advertising data: manufacturer specific data */ 26, /* len */ AD_TYPE_MANUFACTURER_SPECIFIC_DATA, /* manufacturer type */ 0x30, 0x00, /* Company identifier code (Default is 0x0030 - STMicroelectronics: To be customized for specific identifier) */ 0x02, /* ID */ 0x15, /* Length of the remaining payload */ 0xE2, 0x0A, 0x39, 0xF4, 0x73, 0xF5, 0x4B, 0xC4, /* Location UUID */ 0xA1, 0x2F, 0x17, 0xD1, 0xAD, 0x07, 0xA9, 0x61, 0x00, 0x00, /* Major number */ 0x00, 0x00, /* Minor number */ 0xC8 /* 2's compleme
Hi, ST Community, I am working with an LSM6DSOX on a custom board, using an ESP32S3 with the Arduino framework, and I'm unable to get the Machine Learning Core (MLC) to run.The problem is that the output register MLC0_SRC (0x70) always reads 0x00. I am also monitoring the is_mlc_ok status bit in the EMB_FUNC_STATUS register (0x15), and it never gets set to 1. Basic communication (reading WHO_AM_I and raw accelerometer data) works perfectly.I am not using a library and am writing directly to the registers. My initialization sequence is as follows:Software Reset: Write 0x01 to CTRL3_C (0x12).Wait: A 100ms delay to ensure the reset is complete.Enable Embedded Functions Access: Write 0x80 to FUNC_CFG_ACCESS (0x01).Load UCF Data: Write the entire .ucf file (288 bytes) byte-by-byte by setting the address in MLC_A_ADD (0x02) and writing the data to MLC_B_ADD (0x03). I have verified the data is being written.Disable Embedded Functions Access: Write 0x00 to FUNC_CFG_ACCESS (0x01).Enable ML
Hello,I am trying to integrate a model generated by STM32Cube AI Studio into an existing STM32N6 DC-DC converter control project, but I am not sure what the correct integration flow isfor a Neural-ART / NPU-based model.I am attaching the following 3 files/projects:1. My existing STM32CubeIDE project2. The folder generated by STM32Cube AI Studio3. The ONNX model used for generationMy setup is:- MCU/board: NUCLEO-N657X0-Q- Existing project: test_BOOSTXL_ACM_AI_0- The existing control loop is already running correctly- ADC + DMA + TIM based DC-DC converter control is implemented- The control calculation is currently executed inside the ADC DMA interrupt handler- I trained a small 1D CNN in PyTorch, exported it to ONNX, and then used STM32Cube AI Studio to generate codeModel information:- Input shape: (1, 1, 64)- Output shape: (1, 2)- Input data: 64 current samples at 5 us interval- Output: 2-class logits for resistance estimationWhat I tried:- I copied the generated folders into my existi
Hello ST Community,I’m currently trying to select the right MCU/board from the STM32H7 series, but I’m a bit confused between the following options:STM32H723STM32H725STM32H735STM32H7A3VGT6My requirements:Need CORDIC support for fast math operationsRequire high-precision calculations (double precision floating point)Planning to implement a high-performance data processing pipeline (DPU-like workload)Would prefer a board with good STM32CubeH7 example supportMy confusion:Do all the above MCUs support CORDIC, or only specific variants?Is double precision (64-bit floating point) actually supported in hardware on these devices, or only single precision (FPU)?Which of these would be the best fit for heavy math/DSP workloads?Are there recommended Nucleo/Discovery/Eval boards for these MCUs that already have:Working examples (DSP / math / AI)Good documentation and community supportWhat I’m trying to avoid:I don’t want to choose a device and later realize:It doesn’t support CORDICOr double
Hi, We are currently using the parts listed below and would like to confirm if they are reflow compatible. We plan to use a paste-in-hole (pin-in-paste) process for these through-hole components during SMT assembly. Could you please advise if the following parts can withstand this process: 1) VNP35N07-E2) VNP49N04-E3) VNP35NV04-E Thank youJay Trivedi
I am trying to print data but nothing seems to be working , I do not have cables to use COM, but I am sending data using SWV ITM, anyone who might know what's wrong , thanks!. /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "cmsis_os.h" #include "usb_host.h" #include "stdio.h" #include "core_cm4.h" /* Private variables ---------------------------------------------------------*/ I2C_HandleTypeDef hi2c1; I2S_HandleTypeDef hi2s3; RTC_HandleTypeDef hrtc; SPI_HandleTypeDef hspi1; UART_HandleTypeDef huart2; /* Definitions for defaultTask */ osThreadId_t defaultTaskHandle; const osThreadAttr_t defaultTask_attributes = { .name = "de
Hi, I'm working on the STM32H750B-DK discovery board and need to combine two key functionalities:1. Ethernet connectivity based on the LwIP stack (using the example from the `stm32-hotspot/STM32H7-LwIP-Examples` repository).2. A TouchGFX GUI that stores its assets (images, fonts) in the external QSPI flash (`MT25TL01G`) due to the limited internal flash (128KB).I have both components working **individually**: - The **standalone Ethernet example** (STM32H750_Disco_ETH) works perfectly – I can ping the board at `192.168.1.10`.- The **standalone TouchGFX application** works when the external flash is properly initialized via a bootloader, and assets are loaded from `0x90200000`.The challenge is to merge them into a single project where the application code runs from internal flash (the `APP_FLASH` region) and the Ethernet stack functions correctly alongside the TouchGFX GUI. ### **Current Memory Map (Linker Script)** I am using the following memory partition to accommodate both: `MEMORY {
I am new to STM32CubeIDE 2.0.0 environment and I cannot debug my first project. See failure message in attachment. What do I need to do to debug in this environment? Is there instructions hidden somewhere that I need to follow?
Hello, I made a lot of project with Touchgfx . I started a new project with STM32U599ZI, IAR 9.60.3 , Touchgfx 4.26.1 , CubeMx 6.17.0 , STM32CubeU5 MCU package V1.8.0. I created project from Cube, than I double clicked touchgfx file under TOUCHGFX folder.I created a dummy project with only a red box and I clicked generate code on TouchGFX as I always do. But when I open IAR project I cannot see TouchGFX folder on IAR workspace window and when I try to build project, IAR gives a lot of erros about not founded Touchgfx files. Touchgfx files and folders ara exist in my project folder but not in IAR workspace window.My colluage has same proglem with STM32L4R5A mcu . I tried rebuild all, clean project, creating project from CubeMX from zero, but I could not find a solution.Can you give any solution.
Thread split from this post. I am using STM32CubeIDE version 2.1.0. CubeMX generates a project for STM32F769I-DISCO without BSP, but the BSP for this board clearly exists in STM32CubeF7 and is used in official examples. Is there a way to add BSP directly from CubeIDE? If not, what is the correct way to integrate BSP into the project? Thank you.
Hi, I have two questions regarding ST-Link V2 programming: 1. For connecting and programming via SWD, is it safe to connect only NRST, GND, SWCLK, SWDIO without the Target VDD pin? We might “fake” the voltage for space reasons. Could this cause any issues? 2. I assume ST-Link flashes the MCU memory directly via SWD, not through the bootloader like USB DFU. Can anyone explain in detail how each pin behaves during programming, and if NRST can be omitted in some cases? It would be helpful if there is an official ST document explaining this. Thanks!
Hi everyone,I'm trying to use OTG in FS Mode with DMA enabled (I know it's not a consistent use case, as FS datarate is pretty low)But still, I changed the code in Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pcd.c :...#if defined (USB_OTG_FS)/* Disable DMA mode for FS instance */if (USBx == USB_OTG_FS){ hpcd->Init.dma_enable = ENABLE; //FGE: try to use OTG FS with DMA enabled}#endif /* defined (USB_OTG_FS) */...But it does not enumerate. This is the only change I brought to the CubeMX generated code Any hints ?ThanksFabrice
Hoping someone can assist.I have a 2 x 8 segment numerical glass LCD that I want to drive from the MCU.See two images below & uploaded files with this request.snippet from LCD data sheet.snippet from CubeMX pin out view.This display is Static with total of 16 segments.Is there a convention when connecting LCD segments to the MCU pins?I cannot seem to find any guidance to show which physical pin on the glass segment LCD module needs to connect to which LCD_SEGxx pin on the MCU. If anybody has trialed this, could they provide any related information please. Thank you.
Hi, I am using the STM32U5G9 and trying to control a QSPI Flash (MX25L51245GXDI) using the HSPI peripheral. I am confused about which official HAL library and functions I should use for this specific configuration. Since the hardware is named HSPI but the Flash is QSPI, it is unclear which driver is the intended one. Could you please clarify which of the following should be used? HAL_SPI_... (Standard SPI functions) HAL_XSPI_... (Expanded SPI functions) HAL_QSPI_... (Quad SPI functions) HAL_OSPI_... (Octo-SPI functions) There is no stm32u5xx_hal_hspi.c provided in the firmware package, and using HAL_QSPI_... or HAL_SPI_... functions with the HSPI1 instance results in type-casting errors and compilation failures. Please provide the official recommendation on which HAL driver is mandatory for driving a 4-line Quad SPI Flash through the HSPI interface on the STM32U5G9 series. Best regards,
Hi Support Team, I am currently using the STM self-test library to ensure compliance with IEC 60730 Class B requirements. Specifically, I worked with the example package X-CUBE-CLASSB-G0 v4.0.0 on the NUCLEO-G071RB platform, utilizing the provided STL_Lib.a library into my projects. However, I am encountering an issue related to limited RAM availability. The library appears to consume a significant amount of memory, leading to a global variable corruption. Could you please advise if there is a lighter or more memory-optimized version of this library available that would still allow us to meet IEC 60730 Class B compliance requirement
Post edited by ST moderator: title and post edited to translate the content. 我在stm32F412RGT6的数据手册的6.1.6部分看到关于滤波电容的描述,2. The 4.7 µF ceramic capacitor must be connected to one of the VDD pin.从图中来看是以144PIN的芯片为例,但我使用的是64PIN的封装,是否也需要在其中一个VDD引脚放置4.7uf的电容,如果需要,是单独放置一个4.7uf还是与一个0.1uf并联放置 Translation: "In section 6.1.6 of the STM32F412RGT6 datasheet, regarding filter capacitors, it states: "2. The 4.7 µF ceramic capacitor must be connected to one of the VDD pins." The diagram shows this for a 144-pin chip, but I'm using a 64-pin package. Do I also need to place a 4.7 µF capacitor on one of the VDD pins? If so, should I place a single 4.7 µF capacitor or connect it in parallel with a 0.1 µF capacitor?"
tested an MT25QL NOR flash using STM32CubeProgrammer and an external loader.On the STM32 eval board (same MCU + same flash), read/write/erase works perfectly.On my custom board (same schematic and connections verified), I see an issue:Only alternate bytes are written/read correctlyThe missing bytes always read as 0x99Example:Writing a string → only every alternate byte is valid, others = 0x99
Please confirm the origin country of the STSPIN9P15TR&STSPIN9P23TR.I ordered the STSPIN9P15TR&STSPIN9P23TR from ST.com. Customs is requesting confirmation of the product's origin.
Hi Engineer, Based on the data sheet, the marking of STH145N8F7-2AG should be "145N8F7 ", but the parts I purchased were with marking of "145N8F7-2". Could you help suggest whether I purchased correct parts? Thanks, Haddy
Helloi impported a TFLITE image classification model to cubeAI studiobut everytime i press runi get this error : Run failed: Error: analyze error: TOOL ERROR: C:\Users\gouiaa\Downloads\mobilenetv2_a035_128_int8.tflite does not contain a valid tflite modeldespite selecting a TFLITE model like the caption showshere is my settings windowMX 6.17 IDE 2.1.1 programmer 2.22 edgeAI core 4.0any suggestions?
I am developing firmware with a Boot region and Application region split for OTA firmware update on STM32F469AIHX.[Environment]- MCU: STM32F469AIHX (Max core clock: 180MHz)- IDE: STM32CubeIDE- HAL Library: STM32CubeF4- Flash layout: Bootloader (Sector 0~N) / Application (Sector N+1~)[Problem]When the flash is split into Boot and App regions, the system does not operate correctly at 180MHz.However, setting the core clock to 128MHz works fine.Also, the Application running alone from address 0x08000000 works fine at 180MHz.[What I have already tried]- Reset CubeMX configuration to default, only changed flash memory layout- Verified VTOR is correctly set to APPLICATION_ADDRESS- Verified SysTick_Handler calls HAL_IncTick()- Confirmed uwTick does not increment when running at 180MHz after jump- Removed HAL_RCC_DeInit() / HAL_DeInit() before jump in bootloader- Tried setting SCB->VTOR before HAL_Init() in application main()[Bootloader jump code]__disable_irq(); SysTick->CTRL = 0; SysTic
I am on a Mac, I have generated my project for stm32g0b1rct6 using cubemx and I ran setup STM32Cube project(s) tool within vscode with all 3 options (CLANG, CLANG_GCC, GCC) and whenever I try to run debug, I get time out error: bound doStepConnectToTarget Failed: could not connect: Operation timed out. I am working on a fresh VSCode profile where only the following extensions are installed: Here is the verbose output from my debug console: From client: initialize({"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"stlinkgdbtarget","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true,"supportsArgsCanBeInterpretedByShell":true,"supportsMemoryEvent":true,"supportsStartDebuggingRequest":true,"supportsANSIStyling":true}) To c
Hi,I'm getting info on playing mp3 files with my custom Nucleo-U5A9 (originally a NUcleo-U575, I replaced the MCU and added xtal). I'll be using the audio codec TLV320AIC3110 with I2C and SAI from the U5A9. I'll be using ThreadX, FileX an a uSD card. The mp3 files would be in the uSD.I read here about X-CUBE-AUDIO. But the decode spirit mp3 libraries seem to be for the core M3, M4 and M7. Will any of these work with the U5A9 (core M33)? If not, what other options are there?Thanks
Both 'U5 ADCs contain the LFTRIG bit; however, I could not find in either 'U5 datasheet the Tidle value above which this bit has to be switched on.JW
ST Community highlights – April to June 2026
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.