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
Problem: nRST appears to leave the STM32U5 inoperative when applied at any time other than followingapplication of power. Serial traffic is expected through UART4 following a reset. When the boardis powered on, the STM32U5 software runs as expected; initial traffic through UART4 and thenthe STM32U5 interacts through UART4, accepting typed in commands and producing expectedresponse traffic.If the reset switch (SW1) is used to reset the STM32U5, it does not produce the expected serialtraffic and no longer communicates through UART4.A power-cycle of the board produces expected serial traffic and the board interacts (throughUART4) as expected.The board does not reset correctly after being programmed (using a STLINK-V3SET program-mer). The program flash is, however, correctly programmed. The updated flash image works fol-lowing a power-cycle.This schematic fragment shows power, BOOT0, nRST and programming connections to theSTM32U575RIT6 (U1 is 64LQFP package). Bulk capacit
Hello everyone,I have followed the steps in this forum post (“Solved: Deploying a deep learning model on NUCLEO-H753ZI”) Solved: Deploying a deep learning model on NUCLEO-H753ZI - Page 2 - STMicroelectronics Communityto try X-CUBE-AI’s validate feature on the STM32N6570-DK board. Below is my workflow and the problem I encountered:1. BackgroundDevelopment Board & Firmware VersionsBoard: STM32N6570-DKX-CUBE-AI Version: 10.1.0ST Edge AI Core Version: 2.1.0Models That Have Validated SuccessfullyI first used the simple example model provided in that forum post, and validation completed with results.I then tested one of ST’s official STM32N6 AI-demo models; validation completed successfully and reported the expected accuracy metrics.New Model Under TestMy colleague provided a different, more complex model from the STM32 Model Zoo(The model file is attached at the end of this post.). All earlier steps—generate, compile, download to the board—worked fine. However, during the validation ste
STM32L052TIM21, Channel 1: Output PWMTIM21, Channel 2: Switching between Output PWM and Input CompareSystem Clock: 32 MHzHello,I want to use TIM21 of STM32L052 for PWM output on channel 1 and input capture on channel 2 simultaneously. uint16_t TIM_CCMR1_backup; uint16_t TIM_CCER_backup; // PWM on channel 1 and channel 2 void PWM_init(void) { RCC->APB2ENR |= RCC_APB2ENR_TIM21EN; TIM21->CR1 &= ~TIM_CR1_CEN; TIM21->ARR = 0xFFF; TIM21->CR1 = TIM_CR1_ARPE; // TIM21, channel 1 TIM21->CCMR1 |= (0b111 << TIM_CCMR1_OC1M_Pos); // PWM mode 2 TIM21->CCMR1 |= TIM_CCMR1_OC1PE; // output compare preload enable TIM21->CCR1 = 0; // reset output compare register TIM21->CCER |= TIM_CCER_CC1E; // enable output // TIM21, channel 2 TIM21->CCMR1 |= (0b111 << TIM_CCMR1_OC2M_Pos); // PWM mode 2 TIM21->CCMR1 |= TIM_CCMR1_OC2PE; // output compare preload enable TIM21->CCR2 = 0; // reset output compare register TIM21->CCER |= TIM_CC
i have a new phone and the app that is used to get the data is in an oldest version and no newer were done and so i cant acces the data anymore the app is the ST BLE sensore clasic
Hello! I'm attempting to build a custom bootloader for the STM32MP133C, heavily reliant upon the STM32MP13XX hal layer and then provided cmsis_core and cmsis_device_mp13 packages/pieces. I'm attempting this on IAR (company decision) which has added some wrinkles to this. I load the main application to the NAND flash using a custom flashloader, and then run the Bootloader code from sysram. Can't do both at the same time because IAR's flash loader uses the sysram.The bootloader initializes the necessary items- the HAL, system clock, DDR, UART, Flash, Ethernet, etc. I have it blink an LED 5 times for fun, and then load the .bin file from flash into a specific offset in the DDR, where I'm hoping to run from. I then set a function pointer to the starting location of the main app, and run that function pointer. It looks pretty simple/straightforward, as shown below: GetApplicationDetails(flash); //loads from flash to DDR. void (*p_AppEntryPoint)(void);//boot the full OSp
Hello everyone,I would like to share my recent project developed using TouchGFX for industrial applications.I have designed a fully modular keyboard UI using custom containers. The keyboard supports:Uppercase and lowercase inputNumeric keypadSpecial charactersPassword inputEmail inputCalibration data entryThe project is designed with a focus on real-time usability and clean UI design for embedded systems.GitHub Repository:https://github.com/DhruvProject4/touchgfx_advanced_keyboard.git Screenshots: I would really appreciate your feedback and suggestions.Thank youDhruv Dave
New question moved from this post. Another question: which is the best way to proceed for the schematic design of a custom board with series G49 or H5? is it better to: - start from the datasheet of the MCU, - or from some applications notes like this https://www.st.com/content/ccc/resource/technical/document/application_note/76/f9/c8/10/8a/33/4b/f0/DM00115714.pdf/files/DM00115714.pdf/jcr:content/translations/en.DM00115714.pdf - or the reference schematic of the NUCLEO - or the CUBMX configurator (but all the connections for power, crystal are not specified here) - or other resources are more indicated for easy design setup? thanks again
Hi all, X-CUBE-AUDIO-KIT has a project for STM32H573I-DK but this discovery kit has a very small LCD screen. I see the soon to be available STM32H5F5J-DK with a larger screen. Both of these kits have an M33 core MCU so technically the example for one could be ported to the other but that's not something I'll like to do. Will there be an upgrade to X-CUBE-AUDIO-KIT anytime soon and will it include any examples for STM32H5F5J-DK? Thanks
Hi,Our company bought a steval-25r200a for me and I need to develop a application that we can get the information from a nfc card or tag.For an example.There is a nfc tag which installed in a 3d printer filament.We need to get the the size and the color of the filament.Does sT25R200 can get the data from nfc tag?If that information stored at block 1 , where should I start my Application?Is there any document about the uART command from the example.I don't know what should i do if i need to get the block count from a nfc tag and i don't how to read a data from the nfc.I have got the uid of the nfc card by sending these commandsAA 00 02 20 00AA 00 a9 20 02 xx xx...AA 00 02 20 04 AA 00 02 20 06But I don't how to get anything from block of tag.Cloud you please show me a details sequence of getting data from blocks and getting the count of block.I have no idea where should i start.Please give me an example and a direction for developing
Hi everyone, I’m working on an STM32N6 project configured with: ThreadX running in Non-Secure SAU configured RISAF configured External Memory Manager enabled(Load and Run mode) The project is very simple. However, when debugging the Non-Secure application, as soon as tx_thread_schedule() is called, execution jumps to HardFault.The Fault Analyzer reports: “Attempt to do exception with bad value in EXEC_RETURN number (INVPC)”. The code is loaded in external flash memory using Load and Run mode, the signed bin files are uploaded in the external flash using STM32CubeProg and then debugged using STM32CubeIDE.Has anyone experienced INVPC errors on STM32N6 with ThreadX in Non-Secure?Any suggestions would be greatly appreciated.
Hello everyone,we have a setup where the STM32U375 MCU is the slave in I2C communication.We want to NACK the host request on certain conditions. Basic description of our firmwareWe are internally using a register structure in the MCU and the host can send a read/write request via I2C to access the contents of the registers.The current register address is handled internally by the firmware and automatically incremented on each byte written / read.For example, if the requested register address is 0x0001, the host should not be allowed to write to the register but only to read it.First we receive the one-byte device address, then the 2-byte register address.After receiving the 2-byte register address, we can check if the host is allowed to read/write on this register and want to either ACK or NACK the communication on I2C1. Solution tried but not successfullIt seems when HAL_I2C_AddrCallback is called then it is already too late to NACK the current byte and the hardware has alre
I'm in a bit of a pickle. I got a MIPI DSI screen with 1200x1920 resolution. It turns out for SMT32MP25x max vertical supported resolution is 1536. But datasheet says this. Some over-target non-guaranteed use cases are possible, but with specific constraints:• Drive simultaneously three panels, using the three interfaces (parallel, LVDS, DSI), witha same content.• Drive simultaneously two parallel LVDS panels, using each one link, with a reducedresolution and a same content.• Drive a 4 k panel via the DSI, with a limited features and performances: one layer,no resize, no rotation, 30 fps, and non-standardized blanking sizes. How do i specify those params in dts or/and linux panel driver? I tried setting 30Hz on panel, but that did not help - linux drm fails with "vblank wait timed out"This fails - 1200x1920@30Hz.clock = 80288,.hdisplay = 1200,.hsync_start = 1200 + 32,.hsync_end = 1200 + 32 + 14,.htotal = 1200 + 32 + 14 + 26,.vdisplay = 1920,.vsync_start = 1920
Hello"Program and Run Target" stops with some Messages (Small Test Prog.)"Program All": ------------------------------------------------------------------- STM32CubeProgrammer v2.22.0 ------------------------------------------------------------------- Memory Programming ... File : STM32N6570-DK_FSBL-trusted.bin Size : 32.63 KB Address : 0x70000000 Erasing memory corresponding to segment 0: Erasing external memory sector 0 Error: failed to erase memory Error: failed to erase memory c:/TouchGFXProjects/MyApplication_5/gcc/include/flash_sections_int_ext.mk:18: recipe for target '_fsblflash_' failed make[2]: *** [_fsblflash_] Error 1 makefile_fsbl:45: recipe for target 'flash' failed make[1]: *** [flash] Error 2 ../../gcc/Makefile:8: recipe for target 'flash' failed make: *** [flash] Error 2 Failed "Program Internal Flash": Memory Programming ... File : STM32N6570-DK_Appli-trusted.bin Size : 345.22 KB Address : 0x70100000 Erasing memory corresponding t
I am designing a board with the ST87M01. I am using two separate LDOs (TLV757 series) both connected in parallel to a 5V VBUS source.Rail A: 3.3V for GPIO/UART.Rail B: 2.5V for the Modem PMU.Since both LDOs start simultaneously, there may be a slight millisecond variation in when each rail reaches its target voltage.Questions:Does the ST87M01 have a strict requirement for the 2.5V PMU rail to be stable before 3.3V appears on the GPIO pins?Is there a risk of latch-up or back-powering if the 3.3V rail rises ~100µs faster than the 2.5V rail?Should I implement a hardware delay (e.g., RC delay or Power-Good signal) on the 3.3V LDO Enable pin to ensure it trails the 2.5V rail?PS. add ST87M01 label to choose in forum for topic creation. Greetings,Andreas
Hello, a while ago I ran into a problem with my system consuming to much power.After searching this forum, I came across this post: https://community.st.com/t5/stm32-mcus-wireless/using-stm32wb55-freertos-osthreadflagswait-can-return/td-p/767777 It describes how osThreadFlagsWait adjusts the timeout and explains that this can cause problems.In the thread i described my problem with this function (see below), but I was asked to post that question in a new thread.No problem, of course, so I did :) I discovered another annoying problem with osThreadFlagsWait.I was measuring the current consumption to check if it was sufficiently low in case the system goes into stop2.To my surprise, I discovered that it wasn't (draining 6mA instead of 30uA).After a long search, I discovered that the high-consuming task state wasn't "suspended", but "blocked"!A little later, I realized this would happen when I called osThreadFlagsWait.I assumed the timout value could be osWaitForever, so the task wo
I'm using a * STM32N6-DK * Brightsense VD56G3 I've made 2 camera drivers so far and the only difference i can see from the cameras is that my first camera module has MIPI short packets start and stop. I'm making this observation from the scope. So i know it's sending the data it's just receiving black messages. Question * Do you need short packets frame start and end for it to grab images. Other info * I'm using Zephyr, but i just want to make sure from the hardware i don't need short packets because i don't think VD56G3 can generate short packets.
Hello everybodyI'm working with USB PD sink on my own board with STM32G071KBT6 microcontroller ad development software: STM32CubeIDE 2.1.1 and STMCubeMX 6.17 (freeRTOS, without TCPP, with my own protection of VBUS and CC lines).I want to set sink to APDO 24 V (if the charger accept it) or otherwise 20 V PDO.Unfortunatelly if the charger, which I use, not accept APDO 24 V, it send hardreset and cut off the Vbus, so I can't use the flag to inform about the status (APDO or PDO).Is there any way to read the PDOs from the source and on based on this choose APDO or PDO?I have no structure DPM_Ports, and USBPD_DPM_GetDataInfo(PortNum, USBPD_CORE_DATATYPE_RCV_SRC_PDO, buffer, &size);returns size = 0;Best regards
Hi everyone,I’m using the B‑U585I‑IOT02A development board for an IoT project. The onboard STSAFE‑A110 secure element comes pre‑provisioned with a default key and certificate, but for my application I need to:Provision my own keypair and certificate, andOptionally add additional keys or certificates into unused STSAFE slots (for testing or multi‑cloud use).I couldn’t find a clear step‑by‑step guide for:Generating and injecting a custom keypairUploading a custom certificate chainAdding extra keys/certificates to new STSAFE slotsWhether CubeProgrammer or Secure Manager scripts support provisioning user keysIs there any official documentation, example project, or provisioning tool that explains how to do this on the B‑U585I‑IOT02A?Any guidance or links would be greatly appreciated.Thank you!
Hi,In GfxDesigner 4.26.1, I created a blank project for STM32U5G9J-DK2.I opened it in CubeMX 6.17 and tried to migrate FreeRTOS. However, when I changed CUBE-FREERTOS version from 1.0.1 to 1.5.0, the freeRTOS version did not change from 10.4.6 to 11.2.0.Why ? Is this expected behaviour ? Thanks for help. X-CUBE-FREERTOS-1.0.1 (FreeRTOS version 10.4.6)I migrate to newer versionX-CUBE-FREERTOS-1.5.0 (FreeRTOS version 11.2.0) But version did not change from 10.4.6 to 11.2.0
Dear STMicroelectronics Support Team, I am working with two ST-LINK/V2 debuggers and have observed a difference in the VTref (VAPP) signal location on the 20-pin connector. I would like to understand whether this is expected behavior. Details of the debuggers: 1. ST-LINK/V2 marked: B2025 162. ST-LINK/V2 marked: A2017 10 Used board to flash : BLUENRG-M2SP Used flasher tool : RF-Flasher utility v4.5.0 Observation: * In the B2025 16 debugger, the target voltage (~3.3 V) is measured on Pin 1 of the 20-pin connector.* In the A2017 10 debugger, the target voltage (~3.3 V) is measured on Pin 19 of the 20-pin connector. Both debuggers are being used under similar conditions with the same target hardware. Could you please clarify: 1. Whether such variation in VTref (VAPP) pin location is expected across different ST-LINK/V2 units?2. If there are any known hardware variations or revisions related to this behavior?3. Any guidance to ensure cor
The development board I am using is stm32h723. Assuming I only configured region 0 and wrote a blacklist, all regions (both privileged and non-privileged) are inaccessible. The remaining 15 regions were not configured. However, in the MPU Control Mode, I configured "Background Region Privileged access only + MPU Disable during hard fault, NMI and FAULTMASK handlers". This means that for unconfigured regions, only the privileged can access them, and the MPU is disabled during hard faults, NMI, and FAULTMASK handlers. What would happen after this configuration? The CPU is in bare-metal mode without an operating system, and it is in privileged mode. Who should it listen to?
STM32CubeIDE 1.14.1I have imported a CubeMX generated makefile project. When I enter the debug configuration dialog, I get an error "Unsupported build configuration. MCU ARM GCC required for debug." I have not found any documentation from ST indicating how to install this. I am also curious why a dependency required to debug an ST MCU does not come with ST's Eclipse debugger. The Eclipse Marketplace returns an error 500 when I search for MCU ARM GCC.The Install New Software dialog just spins forever, not even loading any package data. What I'm looking to do:Debug an MCU application on my target board.I do not actually care about STM32CubeIDE, I am fine using stock Eclipse. But I do need documentation on how to set up the actual ST specific debug tooling, and this information either doesn't exist or is difficult to find. If ST's IDE works, that's fine too, I don't really care.
I don't use this Tx Buffers Nbr. Instead, I use this Tx Fifo Queue Elmts Nbr for sending. The difference between the two is just that one is manually sent and the other is sent by hardware, right? Why does the software give me a pink prompt for Tx Buffers Nbr, stating that the number of Tx Buffers Nbr plus the number of Tx Fifo Queue Elmts Nbr must be 32? What does this mean? Help me, I'm about to cry.I don't use this Tx Buffers Nbr. Instead, I use this Tx Fifo Queue Elmts Nbr for sending. The difference between the two is just that one is manually sent and the other is sent by hardware. Why does the software give me a pink prompt for Tx Buffers Nbr? The number of Tx Buffers Nbr plus the number of Tx Fifo Queue Elmts Nbr must be 32. What does this mean? Help me, I'm about to cry. God!
I upgraded to 6.17 this morning an have already had to roll back due to a bug in how it now generates fiels for FreeRTOS.Under the FreeRTOS (Include parameters) options I have this vTaskDelayUntil set to Enabled. This now changes the define name in the user config file (Core/Inc/FreeRTOSConfig.h) to be #define INCLUDE_xTaskDelayUntil 1which is correct for the updated freeRTOS version, but in the file (Middleware/Thrid Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_os2.h) it has not been updated so it now it throws an error stopping my projects from building. There are other places where vTaskDelayUntil has also not been updated to xTaskDelayUntil. This needs to be fixed.
Hello, I got following problem.STM32CubeMX is unable to properly generate .project file for STM32CubeIDE. After clicking "GENERATE CODE", MX is copying library files, generating .h and .c files, but no .project file. Following nullpointer exception can be found in log file. I already tested different versions of JAVA - no change. I attached error messages, MX log, and .ioc file. Anyone managed to fix this? 2026-03-15 10:27:00,707 [ERROR] ToolchainGenerator:531 - java.lang.reflect.InvocationTargetException: null at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:115) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] at com.st.microxplorer.plugins.projectmanager.model.ToolchainGenerator.CallMethod(ToolchainGenerator.java:406) ~[?:?] at com.st.microxplorer.plugins.projectmanager.model.ToolchainGenerator.generate(ToolchainGenerator.java:506) ~[?:?] at com.st.microxplorer.plugins.projectmanager.engine.Pro
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.