Get ready for the STM32 Summit 2026 | Online, November 3
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
In Debian unstable (forky/sid), I tried to launch STM32CubeMX2 by launcher or command "cube mx start", but noting happened, thought there were process with command "~/.local/share/STMicroelectronics/STM32CubeMX2/resources/stm32cubemx-application/1.0.0/dist/stm32cubemx2 ~/.local/share/STMicroelectronics/STM32CubeMX2/resources/stm32cubemx-application/1.0.0/dist/resources/app/lib/backend/main.js --no-sandbox --allow-multiple-windows --backendTimeout=30000" and process with command "~/.local/share/STMicroelectronics/STM32CubeMX2/resources/stm32cubemx-application/1.0.0/dist/stm32cubemx2 --type=zygote --no-zygote-sandbox --no-sandbox".
Hello everyone,I am currently working with the STM32N6570-DK board, and I'm still in the process of understanding the workflow for the STM32 programming environment (STM32CubeIDE/CubeMX). (I have implemented simple code to turn on the led with a button and using the RNG available in the board, as a get to know the board and programming environment before this).I am trying to include the CMSIS-DSP library (arm_math.h) into my project, but I am stuck. I have tried several approaches without success:I tried following the method shown in this tutorial video (https://www.youtube.com/watch?v=QxqnBByUvKE), but it didn't work for my setup.I tried manually copying and pasting the .h and source files directly into my project folders, but that also failed and resulted in compilation errors. (https://community.st.com/t5/stm32cubemx-mcus/how-to-add-arm-math-and-dsp-libraries-to-stm32cubemx-generated/m-p/316172)In many tutorials, people suggest going to "Software Packs" -> "Select Components" in
Greetings,I am working on testing a STM32H573 based HW design, which uses an external 4-port USB-2.0 Hub.I plan on using USB Flash drives, and read/write files to them as a diagnostic test.I will instantiate the STM32H573 USB interface as Host-mode, and have it discoverthe USB hub, and enumerate the downstream devices (flash drives/sticks).Our current SW base is using the FreeRTOS OS.Should I switch to Azure ThreadX? I have heard that the USBX ThreadX library isthe way to go?Can I run USBX under FreeRTOS, or does it require ThreadX?Thanks for any guidence!Ken CarlsonDraeger Medical Systems Inc.
Hello,On a STM32H7RS are using the USB_OTG_HS peripheral in PCD_SPEED_FULL mode using internal clock.After I was able to configure the clock so that the MCU is responding on enumeration requests. The responses however seem to be partially incorrect; the trace tool shows stalls.I did not found an example in current https://github.com/STMicroelectronics/STM32CubeH7RSThe following changes are applied to a CubeMX generated projectmain.c SystemClock_Config:LL3.PLLN was set to output 24 MHzRCC_OscInitStruct.PLL3.PLLState = RCC_PLL_ON; RCC_OscInitStruct.PLL3.PLLSource = RCC_PLLSOURCE_HSI; RCC_OscInitStruct.PLL3.PLLM = 4; RCC_OscInitStruct.PLL3.PLLN = 60; RCC_OscInitStruct.PLL3.PLLP = 2; RCC_OscInitStruct.PLL3.PLLQ = 40; RCC_OscInitStruct.PLL3.PLLR = 16; RCC_OscInitStruct.PLL3.PLLS = 2; RCC_OscInitStruct.PLL3.PLLT = 2;Configure CRS __HAL_RCC_CRS_CLK_ENABLE(); RCC_CRSInitTypeDef RCC_CRSInitStruct = {0}; RCC_CRSInitStruct.Prescaler = RCC_CRS_SYNC_DIV1; // default RCC_CRSInitSt
Hi,I am using NUCLEO-U545RE-Q with X-NUCLEO-NFC07A1.After downloading a program via Arduino IDE, the board got locked.Symptoms:PC cannot detect the board, no ST-LINK device, no COM portST-LINK LED: red always on, green flashingSTM32CubeProgrammer cannot connect, error: No debug probe detectedConnect Under Reset does not workWhat I tried:power cyclingholding RESET when plugging USBConnect Under Reset in CubeProgrammerchecking CN2 jumpers (they are fine)Questions:How can I unlock or erase this board without a BOOT0 jumper? It seems not available on this NUCLEO board.Is there any software-only way to recover the SWD?This board is for a competition. Any help is appreciated. Thanks.
Greetings,We're developing our product on our MYIR MYC-LD25X SoM based on the STM32MP257DAK3 MPU with 8GB eMMC non-volatile storage.As per our design requirements, I am required to enforce the STM32 MCU Equivalent of CRP Level 1 or 2 on our Non-Volatile storage so that once we have flashed the eMMC with our program, It's content could only be read/written by the program flashed onto the eMMC & not by JTAG, SWD, etc methods.Using an eMMC chip that provides these protection might be an option but is it atleast possible to enforce write protection using the MPU itself? For example the MPU could have a small program running which could then verify if the contents of the eMMC were tampered with?Regards,Aditya M.
I have project consisting of FSBL+Application (writing AI code in application), I want to debug application code, but unable to do it . My core doubt is should I go via FSBL debugging or Application debugging while working with real time detection in AI ? I am very much confused in this application debugging, kindly address it.I have ensured the external memory loader in cube Programmer as well as in debugger settings is same & loaded .I had flashed the binaries in cube programmer FSBL-trusted bin at 0x70000000 and application trusted-bin at 0x70100000 and signed them also. I have attached a word document having screenshots of debugger settings and problems coming in debugging for each directly application and via FSBL. & one screenshot of external memory settings in .ioc file.Thanks & RegardsChanchal
Hello,I am using STM32U5G-DK1 Discovery kit and need to store a large amount of data in on-board OSPI flash. Now, the example code by STM32 for this kit uses this OPSI flash in Memory-mapped mode. This mode is good to store an small amount of data but time-consuming when writing a large data to this Flash. Therefore, I need to use this Flash in Indirect mode where I can write to flash Page by Page. For this, I use the below configuration of OSPI:sCommand.OperationType = HAL_OSPI_OPTYPE_COMMON_CFG;sCommand.Instruction = OCTAL_PAGE_PROG_CMD;sCommand.InstructionMode = HAL_OSPI_INSTRUCTION_8_LINES;sCommand.InstructionSize = HAL_OSPI_INSTRUCTION_16_BITS;sCommand.AddressMode = HAL_OSPI_ADDRESS_8_LINES;sCommand.AddressSize = HAL_OSPI_ADDRESS_32_BITS;sCommand.Address = address;sCommand.DataMode = HAL_OSPI_DATA_8_LINES;sCommand.NbData = BUFFERSIZE; // :warning: max 256 bytes per pagesCommand.DummyCycles = 0;sCommand.DQSMode = HAL_OSPI_DQS_ENABLE;sCommand.SIOOMode = HAL_OSPI_SIOO_INST_EVERY_CMD;
Hello, i am using F446 and i am contemplating using FreeRTOS CMSIS V2 software timer to generate PWM to control motors via motor drivers (IC chipset). Is this possible? Or must I use the hardware timer, TIM1~7 ?
Hello, we are having an issue where our cell voltage readings are drifting when discharging. When there is no current, the voltages all read correctly. However, during discharge, we see that cell 5 and cell 1 have lower voltage readings by about 150mV at 5A. Once discharge is ended, the voltages level off again. I have checked that this is reflected in the registers. These are our filter settings:
Hi,We are currently using STM32H753 and are setting up USB Fifos. There is some contradictory information about the available sizes. AN4879 mentions that the available SRAM size is 1.25kBytes for OTG_FS:In the reference manual RM0433 I can only find 4kB for both OTG_HS peripherials, where OTG_HS1 is used for OTG_FS:What information is correct?Thanks and best regardsDaniel
Hi, Can I use lis3mdl as gyroscope as I observe this behaviour while reading it's raw values.Thanks
Hi,Is it possible to open a .ioc project file for STM32CubeMX directly from the Windows command line? If yes, what is the correct syntax?Thanks
Greetings,I am working on a project involving RTC and TAMP mechanism of U5 series MCUs, specifically STM32U585. I have some questions about the working principle of the TAMP pins. In the reference manual RM0456, it is written that the TAMP pins checks if the line is opened or it is shorted (Section 64.1: "Active tamper which increases the security level by auto checking that the tamper pins are not externallyopened or shorted.").I was able to make the open circuit detection work but I couldn't make the shorting detection work, that might be my fault though. The shorting detection is available in U585 right? Also I was wondering how precise is the shorting detection? Let's assume I have a 50 meters long transmission line, can it detect if the line is shorted about 50 centimeters (the line is now 45.5 meters)? If not, how much length of the tranmission line must be removed to make the TAMP pins detect it? In addition, should I do anything to make the shorting detection active o
Hello, I am using an STM32U585 with STOP mode and FreeRTOS in tickless idle mode. The datasheet says the current consumption should be around 4.5uA, however I am measuring 35uA on my custom board that only has the MCU and some decoupling capacitators. Can someone tell me if I need to add something in the code to lower consumption? Are the datasheet consumptions possible running an RTOS? I will leave my code and measurements in attach: void PreSleepProcessing(uint32_t ulExpectedIdleTime) { /* place for user code */ (void)ulExpectedIdleTime; __HAL_RCC_GPIOC_CLK_DISABLE(); __HAL_RCC_GPIOH_CLK_DISABLE(); __HAL_RCC_GPIOA_CLK_DISABLE(); __HAL_RCC_GPIOB_CLK_DISABLE(); HAL_ICACHE_Disable(); HAL_SuspendTick(); HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFI); } void PostSleepProcessing(uint32_t ulExpectedIdleTime) { /* place for user code */ (void)ulExpectedIdleTime; SystemClock_Config(); __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOH_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE()
Hello, I am trying to run Validate on target on a NUCLEO-N657X0-Q board using X-CUBE-AI 10.2.0, but it consistently fails. I would appreciate any guidance. Environment: Board: NUCLEO-N657X0-Q X-CUBE-AI: 10.2.0 STM32CubeMX / STM32CubeIDE: latest OS: Windows 11 Model: ONNX (MobileNetV4-Small based, input [1,4,224,224] float32, 2 outputs) What works: Analyze: OK (Flash 46.75MB, RAM 3.78MB) Generate: OK Validate on desktop: OK (acc=100%, nse=1.0) Board detected: ST-Link Virtual COM Port on COM5 Firmware flash reports: Start operation achieved successfully Problem: When running Validate on target via STM32CubeMX: Running the ST.AI c-model (AI RUNNER)...(name=network, mode=TARGET)Proto-buffer driver v2.0 (msg v3.1) (Serial driver v1.0 - COM5:921600)Warning: C-network signature checking is skipped on ST Neural-ART NPULOAD ERROR: STM32 - read timeout 50000msValidation ended When running stedgeai CLI directly (after manual build via n6_loader.py):  
Dear all,For the STM32N6570-DK kit, is there a simple tutorial that shows the workflow for integrating a model generated by STM32Cube AI Studio into a project?A simple example would be: if an image is detected, we could turn on an LED on the kit.A guide would be very welcome. Many thanksCheersEmmanuel
..
Hello to all, I am looking for the min-max humidity working ranges of the STTH10002TV1 diode (in %) as I can't find it in the product specification.Is there a general value for all the ST's diodes? If so, where can I find it ? Thank you for your time, Best regards,
Hi ST community,I create a simple application using USART1 baudrate 9600 TX pin - PB6 & Rx pin - PB7. I send uart frame each 1 second. J22 connects to CP210x. I see that the RX led of CP210x toggle each 1 second but when I open terminal screen on the laptop with same baudrate, nothing is shown. HAL_transmit return HAL_OK. Tx pin and Rx GPIO pin is configured as default, no pull up and pull down. What is problem here? void SystemClock_Config(void) { RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; /** Configure the main internal regulator output voltage */ if (HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE3) != HAL_OK) { Error_Handler(); } /** Configure LSE Drive Capability */ HAL_PWR_EnableBkUpAccess(); __HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_MEDIUMHIGH); /** Initializes the CPU, AHB and APB buses clocks */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48|RCC_OSCILLATORTYPE_HSI |RCC_OSCI
The data sheet for the G474RE says it has a Memory Protection Unit. The article on how to enable/configure it in STM32CubeMX shows a CORTEX_M# node under "System Core". I don't see that node. Thank you.
JW
I am able to flash the binary into external flash memory successfully. However, I am facing issues with handling multiple binaries and execution flow.Issues:FSBL & Application Binary FlashingI have two separate binaries (FSBL and Application). I am able to flash only one binary at a time.Kindly guide how to flash both binaries properly (same address 0x70000000 or different memory sections like 0x70010000).Jump to ApplicationFSBL should run first and then jump to the Application.Kindly explain how to implement the jump to application correctly and ensure proper execution flow.Project Structure & Peripheral AllocationThe project has multiple layers (FSBL, Application, External loader).For reference i tried the suggested example project VENC_RTSP_Server does not include .ioc file, so i didn't get clarity to enable peripherals in which sub projectes.Kindly clarify:How these layers work togetherWhich functionalities/periphe
I have this Fatal Error. Plese help me" [Fatal Error] 2.STM32CUBEMX.5.6.0.AnalyticsServer.xml:1:1: Premature end of file. [Fatal Error] 2.STM32CUBEMX.AnalyticsServer.xml:1:1: Premature end of file. [Fatal Error] 2. AnalyticsServer.xml:1:1: Premature end of file. [Fatal Error] 2.STM32CUBEMX.5.6.0.AnalyticsServer.xml:1:1: Premature end of file. [Fatal Error] 2.STM32CUBEMX.AnalyticsServer.xml:1:1: Premature end of file. [Fatal Error] 2. AnalyticsServer.xml:1:1: Premature end of file."
I am using stm32f756zg. In which i configure LWIP with FREERTOS cmsisv2. I am getting hard faults when ping devices from other devices.It works fine when I change FREERTOS cmsis v1 and increase the default task stake.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.