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, 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
I'm using the STM32G474 at 170MHz. Is it possible to simulate hadc1.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV512; since the G474 only recognizes up to ADC_CLOCK_ASYNC_DIV256; I need very slow readings from the ADC. Thank you Valter
I am unable to inspect the device registers for my STM32U545 project. I can see the Cortex core Registers, and see them update as I step through the initialization.The tooltip mentions an svd file, how can I check if it's set up correctly?
Hi,How do I generate a project for STM32CubeIDE using STM32cubeMX2? Apparently, the only options are cmake, IAR, and open-cmsis (Keil). And is it possible to open examples from STM32CubeC5 using STM32CubeIDE?Ari
How is the best configuration for setting MTF as free-running timer ?void MFT_Configuration() { MFT_InitType timer_init; NVIC_InitType NVIC_InitStructure; SysCtrl_PeripheralClockCmd(CLOCK_PERIPH_MTFX1, ENABLE); /* Init MFT1 in mode 2 */ timer_init.MFT_Clock1 = MFT_PRESCALED_CLK; timer_init.MFT_Clock2 = MFT_NO_CLK; timer_init.MFT_Mode = MFT_MODE_2; timer_init.MFT_CRA = 0xFFFF; timer_init.MFT_CRB = 0xFFFF; /* If a square waveform is @ input with a frequency of 10kHz => T = 100 us * * with Prescaler = 16 - 1; => 1us sampling period * the counter number within a period is 100. * * with Prescaler = 1 - 1; => 62.5ns sampling period * the counter number within a period is 16000. More resolution. */ timer_init.MFT_Prescaler = 1-1; MFT_Init(MFT1, &timer_init); /* Set the TnCNT1 at the max value. No matter about the TnCNT2 since it is not used. */ MFT_SetCounter(MFT1, 0xFFFF, 0xFFFF); /* Enable MFT irq */ NVIC_InitStructure.NVIC_IRQChannel = MFT1A
Hi,I'm using two STM32WLE5 LoRa as TX and RX and added AES-ECB Encryption with Hardware Accelerator in the TX side and receive and decrypt it in RX side with the same Key. Now I want to change the TX module and want to implement same logic of AES Encryption in the TX side. Is there any documentation on how that can be implemented in the C/Python code for sending the same data with different module? I have used PyCryptodome Python library for sending the data with encryption but it didn't work as expected. So, Is there any other library or documentation for implementing Encryption by which Receiver can be able to decrypt as before?Configuration of AES in Both TX and RX sidesAny insights or guidance would be greatly appreciated.Thanks in Advance.
Hello,I'm working on the STM32H735G-DK and try to change LTDC pixel format mode on the fly, but it doesn't work. I'm using the BSP example from example board pack in CubeMX for this board. After reset is possible setup the first time pixel format, but whatever I did after it never work. I tried even did full deinit with HAL_Deinit(), but it simply doesn't work. Pckage version is STM32Cube_FW_H7_V1.12.1For example this functionality (changing LTDC pixel format) working without any problem on the STM32U5G9J-DK2. The main() function where I tried doing this looks like:int main(void) { MPU_Config(); CPU_CACHE_Enable(); HAL_Init(); /* Configure the system clock to 520 MHz */ SystemClock_Config() HAL_RCC_MCOConfig(RCC_MCO1, RCC_MCO1SOURCE_HSE, RCC_MCODIV_1); BSP_LED_Init(LED1); /*##-1- Initialize the LCD #################################################*/ /* Initialize the LCD */ //BSP_LCD_Init(0, LCD_ORIENTATION_LANDSCAPE); BSP_LCD_InitEx(0, 1, LCD_PIXEL_FOR
Hi I am using an STM32N6570-DK board. For my project, I need to measure the total MCU power consumption (core power plus the power consumed by the I/O pins while interfacing with the SDRAM and OSPI flash). I have reviewed the documentation regarding power measurement, but I am confused because there are multiple power supplies. Which pins on CN2 should I use for my measurements, and is there a common point to measure the total power?How to measure power on the STM32N6 - STMicroelectronics Community
Hello,I am using STM32U575RGT6 with CubeMX 6.17 and the bundled X-CUBE-FREERTOS v1.4.0. After enabling USE_TICKLESS_IDLE, I observed that the tick period becomes inaccurate.Specifically, the delay appears to be consistently shortened to about 0.875× of the expected value.void StartDefaultTask(void const *argument) { while (1) { HAL_GPIO_TogglePin(LED_RED_GPIO_Port, LED_RED_Pin); vTaskDelay(400); } }With USE_TICKLESS_IDLE disabled, the delay is approximately 400 ms as expected.After enabling it, the delay is reduced to about 350 ms.I have created a minimal project to reproduce the issue, and it shows the same behavior consistently. The project is attached.Could anyone help explain the cause or suggest a fix?Thank you.
Hi, I’m working with the STM32H7S7L86H and using the SAES peripheral to encrypt and decrypt data stored in an SPI flash .I currently have the peripheral working correctly using HAL functions in polling mode. I also managed to get it working with interrupt mode, including proper input/output callbacks.However, I would like to use DMA to offload the CPU, but I haven’t been able to find any HAL-based examples for SAES with DMA. When I try to use DMA, the transfer does not seem to complete and no callback is triggered.Could you help me understand how to properly configure SAES with DMA using HAL, or point me to a working example?void HAL_CRYP_MspInit(CRYP_HandleTypeDef* hcryp){ if(hcryp->Instance==SAES) { /* USER CODE BEGIN SAES_MspInit 0 */ /* USER CODE END SAES_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_SAES_CLK_ENABLE(); /* SAES DMA Init */ /* GPDMA1_REQUEST_SAES_OUT Init */ handle_GPDMA1_Channel13.Instance = GPDMA1_Channel13; handle_GPDMA1_Channel13.Init.Request = GPDMA1_R
CubeProgrammer is reading from some suspicious addresses on the stm32u031.For example, sector erase from the GUI:09:24:20:751 : r ap 0 @0x1FFF37FE 0x00000001 bytes Data 0xFFFFFFB109:24:20:755 : Flash sector erase ...09:24:20:755 : r ap 0 @0x40022040 0x00000004 bytes Data 0x0000000009:24:20:755 : Flash erase...and from the CLI:...r ap 0 @0x1FFF777C 0x00000004 bytes Data 0x00000000...Erase sector(s) ...r ap 0 @0x40022040 0x00000004 bytes Data 0x00000000Flash erase...0x40022040 is offset 0x40 into the FLASH block which is labelled as reserved in RM0503 3.7.22 Table 19.0x1FFF37FE and 0x1FFF777C are high in the option bytes block.
I am using STM32h743XIH6 MCU with qspi flash MT25QL512ABB8ESF-0SIT same as STM32H743I-EVAL. when i try to load data to qspi flash using STM32CubeProgrammer and loader MT25TL01G_STM32H743I-EVAL.stldr provided by ST, data read/write working without any on eval board. But when i try the same in my custom board with same configuration it is not working. In my custom board if I erase and read flash content i am getting data as shown in QspiFlashMemoryErase.pngWhen i write data and read it back, i am getting data as shown in QspiFlashMemoryDataWrite.pngData is being written correctly on every even bytes, but all odd number bytes are wrong and always showing as 0x99I have chechked all signals on scope, all signals are coming.i have replaced the flash IC, just to confirm IC functionality, but still not working.
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.