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
Hi,We are using the ST Micro Devices SLVU2.8‑8A1 TVS array on the primary side of the Ethernet connector for ESD protection in a 1000BASE‑T Ethernet design.It is observed that when the SLVU2.8‑8A1 is mounted, the 1G Ethernet link reports FCS errors with ~100-metre cables, whilst shorter-length cables work error-free.When the device is removed, the Ethernet link becomes fully stable and error‑free on the same hardware with longer length cables.Ideally the device should not interact with the Ethernet data being transmitted. Please check how the device can interact with normal datalink propagation. The problem is observed in designs with PHYs from two leading manufacturers. Attaching the images of the device as well.Thanks & Regards,Rohit Dixit
Hi,I'm trying to control a BLDC motor connected to B-G431-ESC1 driver in Open Loop Voltage mode. With Motor Pilot control there's no problems. I'm not able to find the correct HAL commands to use for:A) Set Open Loop Voltage mode ( B) Set the reference voltageC) Set the speed in RPMStart, Stop, Ack Fault commands are ok. AI gave me a lot of indications but nothing seems work ok. Many thanks who will help me.Bye Rossano
Hello,I have downloaded the stedgeai for Linux on windows pc and transferred to Linux system running Ubuntu 22.04 .i want to know is it possible to install it in a headless mode where I don’t have to do or click anything on the gui as my Ubuntu system is all console based with no gui.whenever I try to run ./Linux installer I am getting this error ./-linux-onlineinstaller: error while loading shared libraries: libxkbcommon-x11.so.0: cannot open shared object file: No such file or directoryplease let me know how to install it on a headless system.bestR
Hi everyone,I am developing a project on the STM32N657X0H3Q where I need to implement a Dual CDC ACM composite device.I am following the "Standalone" implementation to avoid a full ThreadX dependency, as I plan to integrate this with a FreeRTOS project (using X-CUBE-FREERTOS).While looking at the USBX configuration in CubeMX and the ST Wiki (Introduction to USBX), I noticed the option USBD_COMPOSITE_USE_IAD ( As seen in the picture).If I enable USBD_COMPOSITE_USE_IAD , can I simply increase the number of CDC ACM class instances in CubeMX to 2?Does CubeMX automatically handle the IAD grouping for the second CDC instance, or do I need to manually adjust the interface descriptors in the generated ux_device_descriptors.c ?Can you provide an approach to configure this using MX? Which are all the files that should be edited to configure this.
Hello,I came across the following problem: whenever firmware writes some data to flash memory, the NRST pin doesn't work. I mean, when low level is asserted on NRST pin the device starts to run software not at 0x0800... address but at 0x1FFF.... The same happens in the debugger: when I press "Reset the chip..." button. I get the message: "Break at address "0x1fff5236" with no debug information available, or outside of program code."The data is written to flash memory page which is not used by the running program code. Data is correctly written and no error is shown in the FLASH->SR register. I didn't change any option bytes. The device runs at 80 MHz, BOOT0 pin is grounded. What am I doing wrong ?
Hi I have a question regarding use of STL6P3LLH6 MOSFET in the reference design as shown in EVAL-SCS001V1. In this reference, there is only one STL6P3LLH6(T1) used as shown below: But in the datasheet of STUSB4500, Fig 10 shows use of 2 such MOSFETs as shown below. What is the advantage of using 2 of these? In my design, i will use STUSB4500 to negotiate only fixed 20V, 2.5A. So, wondering if i need to put 2 MOSFETs or would it be OK with only one?Thanks!
I have an issue were the Linux kernel is booting, then it just stops printing out messages from USART6.Meanwhile, optee, u-boot and TF-a is printing out messages from USART6. But not Linux after a while.What can have caused this?My processor is: STM32MP257F.
Hi Community,I am working on STM32H747I-DISCO Board and trying to bringup digital MEMS Mic (MP34DT05) which is integrated on STM32H7-DISCO Board.I am trying to record random voice for 5 seconds and need to play back via audio jack out which is connected to codec also it is integrated on the board. I am sharing you schematic of the board as below:MP34DT05 is connected to MCU directly with SAI4 Interface and Solder Brifdges are provided to connect via codec Here I developed the application code to interface and record via MIC and playback via Audio Jack out./* Includes ------------------------------------------------------------------*/ #include "main.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include "stm32h747i_discovery_audio.h" #include <math.h> #include"log.h" #include<string.h> #include "pdm_config.h" #include "pdm2pcm_glo.h" #include <stdio.h> /* USER CODE END Includes */ /* Private t
Hi,I'm working on to get the multiple SAI to Codec to work synchronized as the connection below,1x MCLK1x BCLK1x FSYNC4x DIN4x DOUTWhere the three Clocks 1x lines (MCLK, BCLK & LRCLK) from one SAI master (actual pinout clock) & other SAI (pinout DIN & DOUT) sync clock internally (not sure possible b/w the SAI).SAI1 (clock master) -> MCLK, BCLK, FSYNC, DIN/DOUT -> codec1SAI2 (clock slave) -> (SAI1 MCLK, BCLK, FSYNC), DIN/DOUT -> codec2SAI3 (clock slave) -> (SAI1 MCLK, BCLK, FSYNC), DIN/DOUT -> codec3SAI4 (clock slave) -> (SAI1 MCLK, BCLK, FSYNC), DIN/DOUT -> codec4According to the TRM RM0436 Rev 7 55.4.4 External synchronization should be used between the SAI.does this need external pin connection between two SAI (all three clocks)? I'm facing error when arecord on SAI1 in the background and trying to start playback on SAI2, attached dts overlay filearecord -D hw:0,0 -f S16_LE -r 48000 -c 2 -d 0 /dev/null &sleep 1aplay -D hw:0,2 -f
I want to measure the MCU temperature using the internal temperature sensor of the STM32U356VGT.Could you provide details on the accuracy of the temperature readings? Additionally, I would like to understand whether the sensor requires user calibration for reliable results, or if it is factory-calibrated and ready to use as-is.
Hi Team,Is there any framework or lib support available from ST for automation testing of TouchGFX based UI either on simulator or on actual device?If anyone has any idea or workaround, then please share!Thanks
Using STM32CubeIDE on macos (with STM32H7431VITx, FWIW), the Debug Console has a pretty poor interface, where there's no readline support and even basic things like "arrow up" to recall the latest command doesn't work, rather it moves the cursor up in the text. Gdb's output is black, the text I type is green and when executing a command, it gets echoed in red to the console. A while back I ran the same version on macos and Linux; on Linux on it was providing a full terminal with readline support, as you'd expect, but on macos it was like this and it hasn't improved in the intervening years. Is there some setting that I can enabled to make it a proper terminal with readline support and all on macos?Version: 2.0.0Build: 26820_20251114_1348 (UTC)sample screenshot below:
Left commented out SFU_NO_SWAP and defined ENABLE_IMAGE_STATE_HANDLING in app_sfu.h, but when trying to build SECoreBin and SBSFU errors appear:/Middlewares/ST/STM32_Secure_Engine/Core/se_fwimg.h:47:61: error: unknown type name 'SE_FwStateTypeDef'Is there something I am missing? I selected AES-GCM crypto schemeI have followed https://www.st.com/resource/en/application_note/an5056-integration-guide-for-the-xcubesbsfu-stm32cube-expansion-package-stmicroelectronics.pdf (Chapter 8.5)
Hi all! I'm trying to implement a wear leveling in user memory accessed from I2C for a counter on bit level. My question is: Are ST25DV eeprom byte cells similar to classic ones where each write cycle starts with a clear (which sets the byte to 0xFF) and after it writes 0 bits where needed? Or is there somewhere an inversion taking place? Could someone help me, by pointing out some directions in datasheets for me in this matter? I found another post where memory default state is quoted from the datasheet which specifies that factory default is 0x00, but this doesn't imply that it's default state isn't 0xFF. Thanks in advance, notram
I have been using RFAL succesfully with STM32L4. For a more price sensitive project I need to port the code to STMG070 and I cannot get RFID readings to work. Measuring ampltiude gives same result on both codes:st25r3911MeasureAmplitude(&c); printf("Amplitude %d\n\r", c); The following have been verified:* Same RFID PCB is used for both processors (RFID PCB and processor PCB are connected by pin connector)* Same RFID card is used* Init of RFAL gives ID 13 on both codes* GPIO interrups are generated* Same LDO on both PCB* Voltage to ST25R3911B is stable* Both processors runs at same frequency 16 MHz On STM32L4 the state change (during a succesful RFID read) of rfalNfcWorker goes like:RFAL_NFC_STATE_IDLERFAL_NFC_STATE_POLL_TECHDETECT x 19RFAL_NFC_STATE_POLL_COLAVOIDANCE x 29RFAL_NFC_STATE_POLL_ACTIVATION x 2But when running on STM32G070 RFAL_NFC_STATE_IDLERFAL_NFC_STATE_POLL_TECHDETECTRFAL_NFC_STATE_LISTEN_TECHDETECT until timeout Anyone have
Hi, I try to get the USB-Host running with USBX. Hardware is a custom board with TCPP02 and STM32U575. Init process is running, but I never get an interrupt (ux_host_event_callback) when plugging in a USB stick. Any idea? ioc file and schematic are attached. Best regards, Achim
I am using STM32CubeIDE version 1.19.0.ProblemI get the error:“Authentication Error Manager – Connection lost”What I triedChecked internet connection (working fine)Used mobile hotspotChecked connection in Firmware Updater (shows OK)System detailsOS: Windows 11 Pro Laptop: Lenovo ThinkPad T14Board: STM32F407VGT6 / STM32F407 Discovery boardAdditional infoThe issue occurs even though the firmware updater shows a valid connection. Both Wi-Fi and mobile hotspot give the same error.QuestionWhat could be causing this authentication/network issue in STM32CubeIDE, and how can I fix it?
For users having / wanting / needing their own VSCode C++ setup it would be very beneficial to have the STM32 debugging VSCode extensions not rely on the rest of the STM32 Cube extensions.Neither do I want nor do I need all of the bundle management, CMake replacement, code analysis and what not stuff the VSCode extensions are doing.Currently, st-cube-ide-stlink-gdbserver, st-cube-ide-debug-generic-gdbserver, st-cube-ide-debug-core (whatever I would really need) pull in the Core and, especially annoying and not really understandable for me, the CMake Support extension.I'd appreciate to have a debugging support extension that works well with any build + edit setup, just like cortex-debug.
The MCU I use is H533, but I guess the SPI peripheral in other MCUs would be similar.I'm looking for the recommended way to regularly transmit over SPI "small" data frames (in the sense that one frame fits into the FIFO) that can vary in size. For example, in response to different events I would be updating values of different DACs or shift registers and they all have their own data frame format and size, usually between 16 and 32 bits.SPI peripheral has TSIZE and DSIZE settings seemingly exactly for that, but they require disabling the SPI peripheral to be changed (for TSIZE it's documented, for DSIZE, it seems not), and it adds latency to transfers.So far it seems the optimal approach in my case is to as follows. Please bear with me for a moment and let me know if I'm missing something.1. Keep DSIZE at 8 bits.2. Keep the SPI enabled and set CSTART once at the beginning.LL_SPI_Enable(SPIx); LL_SPI_StartMasterTransfer(SPIx);3. When transferring, manually fill the FIFO with the data fra
Hello all,I’m working with an STM32 microcontroller (specifically the STM32H743), and I have a question regarding the use of an external TCXO as the HSE clock source.As per the datasheet, when using an external clock source (such as a TCXO), the HSE must be configured in bypass mode, and the input clock is expected to meet the digital I/O thresholds (e.g., 0.7 × VDD for logic high). However, many high-quality TCXOs have typical output swings of only 0.8–1 Vp-p (clipped sine wave), which do not meet CMOS thresholds when VDD is 3.3 V.Therefore, directly driving OSC_IN with such a TCXO in bypass mode is not viable per the datasheet.That said, I made an observation I’d like to confirm with you:While using a crystal in crystal resonator mode (not bypass), I probed the OSC_IN pin using a low-capacitance active probe and measured a signal of approximately 1 Vp-p. Since this amplitude is generated internally by the oscillator circuit when using a crystal, it seems the STM32’s HSE input is desi
The STM32L476 does not have an nBOOT0 option bit in its option bytes. Is there a way to boot from the main flash memory without using the BOOT0 pin?
I'm developing using the STM32WBA65I-DK1. I'd like to know how to implement interrupt handling for button presses. It appears that stm32wba65i_discovery.h does not contain any APIs related to button presses (which is perhaps to be expected since the DK does not have push buttons). The sample code I'm using is BLE_HeartRate_Thread. If you have any source code that might be helpful, please let me know.
Hello everyone,I'm working with the STM32L562E-DK board and the STM32Cube_FW_L5_V1.5.0 firmware. I want to integrate my own code (which reads a sensor MPU6050 via I2C) into the STM32CubeL5 TFM (Trusted Firmware-M) application, running it in the Non Secure environment. The base project I'm using is TFM_Appli, which comes in the package, and I've added my source code to the NonSecure section.I created a separate project in STM32CubeMX using the board's I2C1, which utilizes pins PB6 (SCL) and PB7 (SDA). I then generated the code and copied the I2C communication initialization code into the "main.c" file of my "TFM_Appli_NonSecure" project. Specifically:/* This is before "int main (void)"-----------------------*/ I2C_HandleTypeDef hi2c1;/*------------- I'm calling these function from "int main(void)" ------------*/ static void MX_GPIO_Init(void) { /* USER CODE BEGIN MX_GPIO_Init_1 */ /* USER CODE END MX_GPIO_Init_1 */ /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOB_CLK_ENABLE(); __H
Hi everyone,I'm facing a really frustrating issue where my STM32CubeIDE can no longer detect my ST-LINK, and I've narrowed the problem down specifically to stlinkserver.exe failing to launch. This problem appeared completely randomly on my PC.Here are the symptoms and what I have already ruled out:The Problem: When I try to manually execute stlinkserver.exe via PowerShell to see what's wrong, it exits instantly without printing any output, errors, or logs. Even forcing the help menu or debug mode does absolutely nothing:PowerShell PS C:\Program Files (x86)\STMicroelectronics\stlink_server> .\stlinkserver.exe PS C:\Program Files (x86)\STMicroelectronics\stlink_server> .\stlinkserver.exe -d 5 PS C:\Program Files (x86)\STMicroelectronics\stlink_server> .\stlinkserver.exe -h Running Get-Process stlinkserver confirms the process is not running in the background at all. It just dies immediately upon execution.What DOES work (Hardware & Drivers are fine):STM32CubeProgrammer
Hello everyone i am currently working on a project with a NUCLEO-C092RC Board. With this Board i want to send OBD-II Frames to my car and receive reponses with data. I also use a LCD Display via SPI. But now i have a problem. i connected CANH/L with the Board. I also connected 12V and GND from the OBD-II-Port to a buck converter, which steps the voltage down to 7 V for VIN on the Board, which should be within spec. Then i tried to send a frame, but i did not get a response, when the Board was only powered by 12V via buck converter. After that i think i broke my MCU, because then i connected my PC with the Board and switched the power source back from VIN to ST-Link with a jumper. I was able to debug my programm. but when i also disconnected CANL and CANH from the Board or switching the jumper from VIN to ST-Link (i am nor sure anymore), the red LED from STMPS2141STR came on. It only turns off, if i disconnect VDD from 3V3 Volt with pulling JP5. I also measured from what i think
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.