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
I am developing an spc582bxx microcontroller using AutoDevKit Studio.The device needs to wake up from sleep (standby 0) via wkpu, and RAM data must be preserved when not in por mode.Therefore, I set the MC_PCU.PCONF2.B.STBY0 register before entering sleep.However, looking at the generated boot code, it appears to clear all RAM areas during booting.Is there a boot code sample that preserves RAM data during wake-up via wkpu?I look forward to your reply.Thank you.
Regarding the Schottky diode 1N5711, could you please tell me what the reverse resistance value of this diode is? Our factory's designer believes that the reverse resistance value of this diode can be greater than 200 megohms. Could you please confirm if there is a product of this model with a reverse resistance value greater than 200 megohms? Also, under what conditions is this reverse resistance value tested and is there a testing specification? Please give us some suggestions. Thank you!
Hey, I am using MotionFx 9D, and it works pretty well, except in one case: when a fast movement is done, and we stop, the IMU is not in the correct orientation due to the update being disabled just before the end of the movement (like a 10-30° error). As I read on that forum, this is intended behavior; however, in our application, it is a pretty useless bug rather than a feature. We tried many thresholds, trusts, various sampling times, etc. No luck. Please provide any information on how we can control updates to achieve almost no movement. That looks like hidden settings, and we are so desperate to even inject a 'noisy' input as input data to trigger updating at the end of movement (as we have noticed that small vibrations are causing orientation to be corrected with every single small movement).Thanks!
I am trying to debug a project I have created in STM32CubeMX and edited in STM32CubeIDE with the STM32MP257F-DK. I am seeing an intermittent error which is mentioned in the troubleshooting grid, but it's not clear to me how to fix it. After it builds with no errors, I get a familiar message:Error in final launch sequence:Failed pre launchFailed pre launchFirmware remoteproc load failed, please:1. make sure that /lib/firmware on your target has space2. make sure that /lib/firmware has write access> you can open a Console View for this..When I check dmesg on the board, I see the lines[ 58.546876] remoteproc remoteproc0: powering up m0[ 58.628708] remoteproc remoteproc0: Booting fw image Project_Name_CM33.elf, size 3097880[ 58.631958] remoteproc remoteproc0: bad phdr da 0x80100000 mem 0x540[ 58.638236] remoteproc remoteproc0: Failed to load program segments: -22[ 58.645251] remoteproc remoteproc0: Boot failed: -22This "bad phdr" line is mentioned in Table 1 of the troublesho
Hi, I am designing a 25W power supply for the raspberry pi 5 for my battery powered project. The buck regulator I am using has a fixed 5V output and I want to use the STUSB4710 to offer 5V 5A to the Pi. How can I program the registers to do so via I2C? I have checked the datasheets as well as the STUSB47XX register maps but both are still quite vague on how to program.
Hi @STackPointer64 , I wanted to note one issue related to the 'Save As' feature. After I enter the project name (I2C_new_project_name) and the project repository (/home/gil/.../I2C_new_project_name) I click the Save button. I open the newly created ioc2 file with a text editor and I notice that the source code path is the one of the old project: "CMake": {"outputPath": "I2C_old_project_name_cmake","toolchain": "GCC","exportSource": "include-packs-from-local","removeBoard": true} I was expecting to see the source code path of the new project. Sure enough if I generate the project with this ioc2 file it will write to the I2C_old_project_name_cmake directory. I edited the ioc2 file to change the source code path to the new path to fix this issue. Regards, Gil Original post: Starting a new project with an existing ioc2 file. This discussion has been moved here for better tracking and follow-up.
I purchased a STM32H745I-DISCO. The board appears to work fine. I am trying to flash the stock firmware onto the board. I downloaded the binary from the ST product page, followed the instructions, set the correct option bytes, used the external loader. The binary file on the product page "STM32Cube_Demo-STM32H745I-DISCO-V1.0.0_FULL.hex" does not bring the board back to factory settings. The touchscreen does not work. The stock demo wont run. Does anyone have have a more up to date binary file or procedure for factory reset? Thanks
Hello,I am using the STUSB4710 as a PD-Source in my project and have a few questions regarding its configuration. In my setup, I have not utilized the feedback configuration. Instead, I am connecting the PDO outputs of the STUSB4710 to a microcontroller. The microcontroller reads the status and subsequently adjusts the output of my buck-boost converter accordingly.However, I am facing an issue where no negotiation occurs, and the output remains fixed at 5V. I would like to know if the STUSB4710 is capable of operating in such a configuration. Specifically, is it possible to achieve successful power delivery negotiations without using the feedback mechanism?Thank you for your support!
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
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.