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 designed a fsm Design for high G application. The odr of high G and fsm are same. The said functionality is generating interrupt when done on eval kit Nucleo board with iks4a1 kit in Mems studio. But when I converted it into header file and loaded in another sensor board with lsm6dsv320. It is not working. Earlier Free fall Fsm was done on same sensor, it worked both in mems and on this sensor board. I have called the fsm load function and enabled the embedded interrupt in MD2_CFG as I am generating interrupt on int 2. Odr and range settings of high G have been done seperately. What can be the reason of non functioning.
Hello, is there any additional documentation that supports this system diagram? My project will have one antenna that will be an RFID tag whereas the other antenna will be reader. Can ST25r100 support this use case? I'd like to have the ability to write to a card as well and it seems like only RFO1 and RFO2 will have the ability to do that function. is that correct? Thanks!
I’m currently working on a project where I already managed to read ISO14443 tags (NTAG213) successfully.To improve the reading quality and range, I now want to switch to ISO15693 tags.However, I’ve spent more than 30 hours trying, and so far, I haven’t been able to read a single one.I know that using the RFAL (Radio Frequency Abstraction Layer) is the right approach for ISO15693, but no matter what I do, it just doesn’t work.I’ve tried several examples, libraries, and even asked AI tools for help — but I also know that AI isn’t great when it comes to low-level driver implementation.Does anyone here have experience with ISO15693 and RFAL on ESP32? Any working examples or tips would be really appreciated.
Using:VSCode version: 1.107.1 on Windows 11.STM32CubeIDE for Visual Studio Code version 3.7.0.I created STM32N6 project that builds two targets: FSBL and Application. I follow the instructions here: https://community.st.com/t5/stm32-mcus/how-to-debug-the-stm32n6-using-vs-code/ta-p/833499This is a single folder project, not multi-root. The problem is that when I navigate to source code which is not under FSBL or Appli then clangd does not know which complication database to use.This disturbs during coding and during debugging when I step through grayed out code with false errors highlighted.CMake (or some STM32 utility) generates .clang file into the root directory. It's stripped down version looks like this:CompileFlags: CompilationDatabase: FSBL/build If: PathMatch: FSBL/.* --- CompileFlags: CompilationDatabase: Appli/build If: PathMatch: Appli/.*But there is no path match for Drivers and Middlewares. If I open HAL GPIO driver, I can see in the STM32cube clangd lo
I have a new board design that interfaces an STM32L4A6 with a uSD card using 1.8V I/O. The SD Card is powered by 3.3V and supports the LVS mode of SD. The STM32L4 does not seem take account the SD specification 6.0. There is no auto detection mecanism of the signalling voltage level in this MCU. This MCU can not start in UHS-I 1.8V mode.Do you know a MCU which can start the LVS identification sequence ?
I've inherited a board that is based on an STM32MP135AAE3 and has an external DDR (W63AH6NBVABI, a DRAM 1Gb LPDDR3 from Winbond). It appears I need to create a DDR.h file similar to the stm32mp13xx-ddr3-4Gb.h or stm32mp13xx-ddr3-8Gb.h files that STM provides (right?) I've taken the existing stm32mp13xx-ddr3-4Gb.h and am slowly going through, figuring out exactly what each line needs and then trying to track down the appropriate information from the DDR datasheet. My biggest concern is that I get the timing ALMOST right and end up with a DDR that works 99.99% of the time (failing, of course, only at customer sites). 1) Is there an archive of DDR definition files somewhere that I missed?2) Is there a better way to generate this DDR definition file?3) Is there a way to test I did it right besides running various memory tests for days and days? As an example, this file needs information like this:// DDRCTRL SDRAM timing regist
Hi all , System and Motor Parameters:Bus Voltage: 24VRated Current: 40APWM Frequency: 40kHzPhase Resistance (Rs): 0.1ΩPhase Inductance (Ls): 0.03mHBEMF Constant (Ke): 1.1 Vrms/kRPMMax Application Speed: 12000 RPMEstimator & PLL Parameters:Speed Estimator:G1 (C1): 552G2 (C2): 592PLL Kp: 500PLL Ki: 100I am currently using sensorless FOC control. When the motor reaches around 6000 RPM, I observe that the motor noise becomes noticeably sharp, and current feedback (monitored via oscilloscope) shows increasing oscillation. Eventually, it triggers an over-voltage (OV) protection error.Based on my understanding, I suspect the angle estimation error increases with speed, causing misalignment between the control and actual rotor position. This might lead to excessive back-EMF, resulting in bus voltage overshoot and an OV fault.I’ve tried adjusting G1/G2 and PLL Kp/Ki via Motor Pilot, but the issue persists.Additional Question:When I reduce Max Application Speed from 1200
I have updated the STM32L4 HAL drivers to V1.13.6 / 14-November-2025 (1.18.2), which has broken my implementation of HAL_UARTEx_ReceiveToIdle_DMA.Is this a fault in the new HAL drivers or does user code need to be updated inside the HAL_UARTEx_RxEventCallback?
Dear ST Team,I am using STM8L052R8T6.I have already configured an external interrupt on PC0 (PORTC, pin 0).Now I want to configure an external interrupt on PF0 (PORTF, pin 0) as well.Since both pins have the same pin number but belong to different ports, I would like to know:Can PC0 and PF0 generate external interrupts independently?How should the EXTI configuration be done for multiple ports?Which EXTI registers and interrupt handlers should be used for PORTF?Could someone please provide guidance or a simple example for configuring external interrupts on PC0 and PF0 on STM8L devices?Thank you.
Hi,I am currently working on the SPC574k Discovery board and having issues with getting an Output on most off the pins. In my attached image configuration I only get an Output on ATOM1_0, ATOM1_1, ATOM2_1 and ATOM3_0. I use the MCS Module to generate an output for each channel. I checked the code for the mcs module and if I route the signal from originally ATOM1_4 to the ATOM1_0, the correct signal apears on the ATOM1_0 Pin.I am also not able to control a number of Pins via the normal GPIO function even when they are correctly configured.My question, is there some additional limitation in the GPIO Matrix of the chip? Do I have to set a configuration in code to get certain pins to work or could I have a defective Microcontroller?Kind Regards,Sir_Alee
Does anyone have access to documentation with an actual list of registers with addresses and functionality and a full description of the register bits for the VL53L0X? All I have been able to find is documentation that refers to the questionable API driver package and some doxygen-generated document based on the comments in the API.
Is there a comprehensive single documentation source of the Flash layout for say, an STM32H563?The documentation I find is very opaque. Questions I have at present (From a non secure perspective):1. Where is OBK located? (0x0BF0000 to 0x0BF9FFFF ???)2. Where is system located?3. Is RSSLIB actually using OBK memory? Or is this located somewhere else?4. Is there a way to self program the debug password for PRODUCT_STATE > OPEN?5. If #5 true, are there some real docs on this? All I find so far is tutorials and code for the 573 in a secure perspective.
Hello, I am trying to set up a project using STM32Cube Extension in VS Code. When I attempt to select the Nucleo‑F207ZG board in the Board/Device selector, the board does not appear in the list.The stm32cube_core output shows the CMSIS_PACK_ROOT environment variable, and under that directory the file .Download\cache\scanner_391867825626163.cache contains entries for nucleo-f207zg as well as STMicroelectronics.nucleo-f207zg_hw-board.1.0.0.pdsc. Despite these files being present, the board is still not discovered by the IDE. Could you please advise what additional checks or steps I should perform to resolve this issue?
When I call function HAL_FLASH_Program twice with the same Flash address, the second call is ignored. See test code below.int8_t buffer1[16] = {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF};int8_t buffer2[16] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F};EraseIntFlash( 0x08200000, 0x08300000 );HAL_FLASH_Program(FLASH_TYPEPROGRAM_QUADWORD, 0X0820000, buffer1);HAL_FLASH_Program(FLASH_TYPEPROGRAM_QUADWORD, 0X0820000, buffer2); In Memory Browser, I expect:0x08200000 03020100 07060504 0B0A0908 0F0E0D0CBut I get:0x08200000 03020100 07060504 FFFFFFFF FFFFFFFFWhat is going on? I really need this to work. Can anyone provide insight or solution or workaround?Jim Eno
Good morning , I'm writing this post to request help , the main problem is two things the first and the main thing being the 1000W 3500 RPM 3 pole pair 48V motor not giving it rated torque of 2.5 Nm and only gives 0.8 N.m , this was confirmed as the motor works fine with a premade controller of the motor , further more the motor gets stuck and the torque reference goes to 19.99A however this does not happen with the premade controller , the motor works fine with the stm controller when no load is applied, the motor has been already profiled using the smt32 motor profiler, and motor barely gave any errors on the stm32 software however almost minimal torque, also as we are using a data acquistion system that is extremly accurate it measure 2A DC from the battery of 48V however the stm32 motor control software's torque reference showed 8.6 A , and the hall sensors are slight off , so at 370 RPM in the stm software its actually 500 and at 740 is 1000 and at 1110 its 1500 and soo on.the rea
I've been watching the MOOC - Security series and had some questions. There is a link in the info block to a forum for any questions, but the link no longer works. https://www.youtube.com/watch?v=g7ykhnmh7sAIs this the right place?I got to the end of "Security Part4 - STM32 security in practice - 15 Secure firmware update" and had some questions since there isn't any lab video for this module like there are for the modules that came before it.
Hello,I want to add a software update feature to my device, but I am unsure about the correct way to verify a newly installed firmware image. My goal is to make sure that the entire firmware has been written correctly and is not corrupted before the bootloader starts using it.One idea I have is to calculate a CRC of the whole application at build time and store this CRC at the end of the application image in flash. Then, during boot, the bootloader would calculate the CRC of the application in flash and compare it with the stored value to decide whether the firmware is valid. However, I am not sure if modifying or reserving a part of the application flash for this purpose is a good or recommended approach.Are there more common or reliable methods to verify a newly installed firmware before activating it? How is this typically handled in bootloader-based firmware update systems?
Hello all,I get an error starting a debug session from STM32CubeIDE (1.18.1) (STM32 Nucleo-F767ZI):STMicroelectronics ST-LINK GDB server. Version 7.10.0Copyright (c) 2025, STMicroelectronics. All rights reserved.Starting server with the following options:Persistent Mode : DisabledLogging Level : 1Listen Port Number : 61234Status Refresh Delay : 15sVerbose Mode : DisabledSWD Debug : EnabledInitWhile : EnabledTarget USB comms errorError in initializing ST-LINK device.Reason: USB communication error. Please reconnect the ST-LINK USB cable and try again. If I switch to SEGGER J-Link everythink works fine.Is my debug configuration:What I tried:- Restart PC- Reinstall the USB-Driver (https://www.st.com/en/development-tools/stsw-link009.html)- Erased the flash with STM32CubeProgrammer- Changes USB cable- Googled for solutionsPlease helpBest regards Nikolai
STM8L052XX – External interrupt on same pin number with different ports (PC0 & PF0)I am using STM8L052R8T6.I have already configured an external interrupt on PC0 (PORTC, pin 0).Now I want to configure an external interrupt on PF0 (PORTF, pin 0) as well.Since both pins have the same pin number but belong to different ports, I would like to know:Can PC0 and PF0 generate external interrupts independently?How should the EXTI configuration be done for multiple ports?Which EXTI registers and interrupt handlers should be used for PORTF?Could someone please provide guidance or a simple example for configuring external interrupts on PC0 and PF0 on STM8L devices?Thank you.
Hi,STM32H563 chiprev Z.I am trying to work through How to start with OEMiRoT on STM32H573 and 563–Arm® TrustZone® enabled - stm32mcu using a NUCLEO-H563ZI MR1 board but using the latest STM32CubeProgrammer (2.18.0) and ST32Cube_FW_H5 (STM32Cube_FW_H5_V1.4.0).Section 2.5 is intended to demonstrate booting securely and then dropping into the System flash bootloader from non-secure application and connecting to it via UART. In my case, I use the virtual COM-port provided by the ST-Link provided on the board. I have not dared to go all the way to CLOSED but have chosen to tell the provisioning.sh that I want PROVISIONED state. I have confirmed using the SWD-connection that the TZEN is enabled after this and that PRODUCT_STATE is iROTProvisioned. I type 1 in the terminal displaying the "UI" of the non-secure app and then disconnect TeraTerm and in ST32CubeProgrammer I select connect method UART and Port = COM20, Baudrate = 115200, Parity = Even, Data
Hi,I am getting a warning "The core is locked up" and a few more (please refer to the attached image).I have also tried flashing with the hex file, but some flashing issue is observed.
i am try to interface tft lcd via LTDC using FMC, i checked that ram is working fine and test also passed , but i try to resolve lcd issue but it not resoled yes. Can someone help how to do that. i am uploading the complete project which is created. Please help how can i interface with lcd.
Hello!I am interfacing an ADS131M02 ADC to the STM32C0116-DK board using SPI for a project I am developing on live streamings. I am able to read SPI Data using the HAL polling functions (HAL_SPI_TransmitReceive), however that created unwanted delay between bytes and I tried swithing to DMA to improve performance. Configuration:All clock to max (48MHz)SPI: Full-Duplex Master, 8bits, Mode 01, DMA Tx + DMA RxPrescaler 2: BaudRate 24 MBits/s -> FAILPrescaler 4-Max: SUCCESSThis is the result with prescaler set to 4 (12 Mbits/s). (Pink: MISO, Blue: SCK), the data is correct.With the Prescaler set to 2 (24MBits/s) (Pink: MISO, Blue: SCK). The clock does not even try (the pulse is 3us)The Pseudocode I am using:/** Simplified code **/ uint8_t newData = 0; // This is never called if the SPI prescaler is set to:SPI_BAUDRATEPRESCALER_2 // With SPI_BAUDRATEPRESCALER_4 works. void HAL_SPI_TxRxCpltCallback(SPI_HandleTypeDef* hspi) { newData = 1; } void main(void) { // All CubeMX ini
Problem:I recently updated to 2.0.0 of STM32CubeIDE and I encountered an issue when attempting to build for Debug. I first noticed an issue when trying to run a Debug Configuration. Before 2.0.0, it would build Debug before flashing the built firmware and starting the debugging server; pretty much default settings. Today, it started skipping the build step. I tried building Debug manually with the dropdown on the hammer icon and clicking "Debug." Instead, it built for Release. Solutions:- Right click on the project -> Build Configurations -> Build Selected... and select Debug.AND- Setting Debug as the active build and right click on the project -> Build ProjectThese solutions would build for Debug AND clear both of the above issues. As in the hammer icon -> Debug would actually build for Debug and the Debug Configuration would build before flashing and debugging.
I have a requirement to implement CAN based bootloader in my STM32h503rbt6 controller. Right now iam working on the testing of Flash functions which i have written on my own.My flash write, read and erase all are working fine.but when iam erasing flash sector wise,here comes the problem.after sector 7, from sector 8 onwards with y function i cant abe to erase.but i want full memory controll over my st controller flash.then only i can decide which part of flash i can use for my bootloader and which part of flash i can use for my application.HAL_StatusTypeDef Flash_Erase_Sector(uint32_t sector) { while (FLASH->NSSR & FLASH_SR_BSY); if (FLASH->NSCR & FLASH_CR_LOCK) { FLASH->NSKEYR = FLASH_KEY1; FLASH->NSKEYR = FLASH_KEY2; } /* Clear valid flags only */ FLASH->NSCCR = FLASH_CCR_CLR_EOP | FLASH_CCR_CLR_PGSERR | FLASH_CCR_CLR_WRPERR; FLASH->NSCR &= ~FLASH_CR_SNB_Msk; FLASH->NSCR |= FLASH_CR_SER; FLASH->NSCR |= (sector << FLASH_CR_SNB
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.