Join conversations with your peers and ST experts. Explore the full potential of STM32 microcontrollers for your embedded design.
Most recent activity
Hello, I have some setup variables in my app which should retained while the power is switched off. Normally I would use the dedicated Backup RAM, but the board does not have backup battery, battery socket, not a battery connector. The Backup RAM is not usable with STM32n6570-DK board. The MCU does not have internal flash memory with backup area. (This worked with H747 and H723 MCUs) The board has an external 1Mbit flash memory controlled by OCTOSPI so I might store data in the external flash. I need max 512 bytes only. This 512-byte backup should be placed to the end of the external flash. Can anybody advice how to do this? Best regards, Louis
I am currently using the STM32F446ZET6 chip, which comes with 16MB of off-chip SDRAM. I have been trying to run the program in the SDRAM, but have not been successful. I would appreciate any help.
Hi, i want to use STM32U385RG (NUCLEO-U385RG-Q) to read and write files on SD using SDMMC (1 bit mode) interface, with FileX in standalone mode. I've successfully tested Fx_File_Edit_Standalone (SRAM) example and SD_ReadWrite_DMA (1 bit mode) example. Following my MX_FileX_Process function: VOID MX_FileX_Process(VOID) { UINT status; ULONG bytes_read; CHAR read_buffer[32]; CHAR data[] = "This is FileX working on STM32"; /* Start application */ printf("FileX Edit Standalone Application Start.\n"); /* Open the sram_disk driver. */ status = fx_media_open(&sram_disk, "STM32_SDIO_DISK", fx_stm32_sd_driver, (VOID *)FX_NULL, (VOID *) fx_sd_media_memory, sizeof(fx_sd_media_memory)); /* Check the media open status. */ if (status != FX_SUCCESS) { Error_Handler(); } printf("SD card opened.\n"); /* Create a file called STM32.TXT in the root directory. */ status = fx_file_create(&sram_disk, "STM32.TXT"); /* Check the create status. */ if (status != FX_SUCCESS)
Dear ST team,I am planning to use STM32H753ZIT6 in my design and also planning to use NUCLEO 144 H7 LEGACY for development activities. Could anyone help me whether I can use the NUCLEO 144 H7 LEGACY board to program the STM MCU which is going to assemble in my board? If possible please let me know how to isolate the on board MCU which is present in the NUCLEO 144 H7 LEGACY board.RegardsShyam
Hello Everyone, This is the code that I have tried many times and tried to debug as well. I have attached a snapshot of the error of the debugging section (disassembly ). I have not been able to understand what of my code leads to this error , and how to solve this? /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2026 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include
Hi, I'm trying to connect B-G431-ESC1 board, with no success. there is always : try to configure the boardI complile and flash a sample project successfully on the board. However still cannot connect motor profiler to make precision tuning of the motor. Any ideas why it cannot connect? Thank you, Kamil
Spent a lot of time on this and found that ST's code omits a key SCSI command which windoze and linux either do not issue or if they do they are not bothered by a non-response. Details around here https://www.eevblog.com/forum/microcontrollers/any-way-to-do-a-fat16-usb-msc-drive-in-2mb-flash/msg6206067/#msg6206067
Dear ST Community, I hope you are doing well. I am currently working with the STM32U5 development board and would like to integrate an SD card module using SPI communication. However, while configuring my project in STM32CubeMX / CubeIDE, I was unable to find the FATFS middleware option under the middleware section. My goal is to use FATFS with an SD card operating in SPI mode. Could you please guide me on how to enable or integrate FATFS for SPI-based SD card communication on the STM32U5 series? If manual integration is required, I would appreciate any official documentation, example projects, or recommended procedures.
Dear Team, I am currently working on an STM32F207-based custom board using Ethernet (RMII with LAN8742A PHY) and LwIP in NO_SYS (bare-metal, no RTOS) mode. I am facing an issue where Ethernet and UART are not functioning correctly in parallel. Project Details: MCU: STM32F207 PHY: LAN8742A (RMII mode, PHY address = 1) LwIP Operating Mode: NO_SYS = 1 (No RTOS) DHCP enabled (also tested with static IP) UART2 used for debug output (blocking HAL_UART_Transmit) Issue Description: When Ethernet (LwIP) is enabled and initialized using MX_LWIP_Init(), UART output stops working. Even simple debug prints placed before Ethernet processing in the main loop are not printed. However: If Ethernet/LwIP is disabled, UART works normally. If MX_LWIP_Init() is commented out, UART works. Ethernet link LEDs indicate that PHY is active. This suggests that enabling Ethernet + LwIP in NO_SYS mode is interfering with system execution or blocking during initialization or processing. Observatio
https://controllerstech.com/stm32-ethernet-hardware-cubemx-lwip-ping/?utm_source=chatgpt.comI followed steps of above website data based to configure Ethernet on stm32h753zi but still ping is failing i cant able to find the exact error can anyone help to tell the exact configuration of this board
In STM32F413VGT I2C3 support Fast Mode Plus(1MHz)?I cannot find documentation
Hello,I am trying to find the project used to create the code loaded on my Nucleo-H563ZI when I first received it.I see several references stating it should be in a Demonstration folder, however I don't see that folder in:...\STM32Cube_FW_H5_V1.6.0\Projects\NUCLEO-H563ZIThat folder has the following folders:ApplicationsExamplesExamples_LLExamples_MIXROT_ProvisioningTemplatesTemplates_LL
Hi!I am experiencing some confusing behaviour on an STM32H743 series chip:I am running an injected ADC channel on ADC2, with trigger from the HRTIM. The HRTIM is triggering at 8000 Hz (200 MHz clock, prescaler div-2 and period = 12500). The ADC generates an interrupt at injected end-of-conversion, with 64.5 cycles per sample in 16-bit mode. The ADC clock is running at 80 MHz, with prescaler div-4, i.e. 20 MHz. When setting an oversampling ratio such that the conversion time becomes longer than the time between the trigger pulses, I always get half the expected frequency for the generated interrupts. For example, with oversampling ratio 64, I can calculate the conversion time as:t_conv = (64.5 + 8.5) * (1 / (20*1e6)) * 64 = 0.2336 mswhere the 8.5 extra cycles come from the fact that we are in 16-bit mode as per documentation. From this, the ratio between the conversion time and the time between two consecutive trigger pulses is about 2, i.e. for each conversion
Hello We are working on a new project with STM32H723ZGT6. I want to control S70KL1283DPBHI020 DRAM with HYPERBUS communication using OSPI1. If you access 0X900000 memory to write and read data during the current operation, the data will not be read accurately. It seems necessary to check if there is a problem in the circuit diagram. I'm using PC2_C pin and PC3_C pin for IO5,6, is it not a problem? Is it not a problem to use the RESET PIN as a GPIO OUT PIN to give a HIGH signal I gave the data a value of 0xff up to 100 bytes, but there is another value in the 4th address. I would like to ask you to check the problem. Thank you.
For context, I am new to both USB programming and the STM products (and tools), so I apologize in advance for my ignorance. I am working with an old, existing system, which utilized a USB connection to a processor/EEPROM to store information (a dongle). As some of the parts have gone end-of-life, we are looking to move to new hardware. The hope is to mimic the software running on the old hardware so that the new part will work with existing systems in the field, as well as new products. Our existing system runs on Linux with a custom driver communicating with the dongle, and from what I can tell has been coded up as a "vendor device" instead of a "class device". Anyhow, the engineering department selected the STM32C071RBT6 as an appropriate part and have provided a prototype which I am using for development along with the following:STM32CubeIDE v2.0.0STM32CubeMX v6.16.1STM32C0 series v1.4.0 To get started w
I have a STM32H732 processor connected to a ethernet switch with port based VLAN support.I use the processor to connect to two different interfaces which are separated in the switch.I wanted to be able to access the same two TCP ports in the processor from both interfaces.So I configured ETH_L3_FILTER_0 and ETH_L3_FILTER_1 with the two different IP-addresses used on the two interfacesAnd the ETH_L4_FILTER_0 and ETH_L4_FILTER_1 with the two different ports.But that did not work as I hoped.It looks like the L3_FILTER_0 and L4_FILTER_0 are used as one filter. and FILTER_1 as another.And maybe that is as intented but it is not super clear in the documentation.I may have to add that I have found and read...Is this correct or is there perhaps a way to use the L3 and L4 as separate filters so that I can get four different filters allowing two IPs and two Ports in any combination of ports and IP?Best regards
I see only one other answer to this question, here: Solved: TrustZone Enable afterwards - STMicroelectronics CommunityHowever, others are not answered. Can you confirm that there is a solid reason why the TrustZone cannot be enabled after the project has been created? Does it scramble to ioc file? Was this an issue with previous versions of CubeMX and perhaps no longer an issue? Core: M33
This is to NUCLEO-H723ZG/NUH723ZG$AT2 eval board. When set VDD=3.3V by JP5, the ethernet (lwip + no os) DHCP is working fine and stable. When switch to VDD=1.8V by JP5, the STM32 is working fine but the ethernet DHCP is working randomly, most of time failed. Checking the board schematic of ethernet section, it looks fine for LAN8724 VDDIO=VDD=1.8V and 3.3V to transformer section. Using this eval board for 1.8V environment project, enthusiastic hope to make it works stable. Any helps are welcome. Thanks. JYI
Hello, I have a custom board with a STM32WB55CEU6 and I am trying to programm it through a Nucleo STLink with SWD. The onboard Nucleo CPU is detected and works fine if I add the jumpers, and I can program a different STM32 board with the jumpers removed as well, so the STLink is functional.It fails when trying to connect to the STM32 saying it's unable to detect the Device ID, so no SWD communication happens at all. I have connected SWCLK, SWIO, NRST and GND and checked the polarity multiple times. I also checked with a multimeter, and there is connectivity between the pins. I used a 10cm Dupont Jumper and the traces on the board are around 3cm long. Boot0 is tied to GND. Supply voltage is a clean 3V3 and I am using the internal SMPS, where VDDSMPS is at 0.97V if I plug it in. So I think the STM32 is powered and operational, just not able to connect. I don't really know what else could be going wrong on the board, so I came here to ask for help.
Dear all, I have a custom PCB with the STM32WBA5MMG module. I missed the keepout requirement in the reference design and pads 2 - 5 and pads 56 / 59. These pads are connected to GND in my design. I did some signal tests, and I have a feeling the antenna is not performing well (I configured +10dbm). Can somebody confirm these pads connected to ground influence the antenna performance? Below is a snippet of the PCB design: Thanks, Robin
Hello ST team,I am using the EVSPIN32G4 evaluation board with sensorless 6-step control.Hardware Setup:Board: EVSPIN32G4Motor: BLDC motor (24 pole pairs)Control mode: Sensorless 6-step (BEMF zero-cross detection)Current sensing: 1 mΩ shunt + external amplifier (Gain = 7.33)PWM frequency: 60 kHzDC bus voltage: 48 VProblem Description:When observing the three phase voltages (U, V, W) on the oscilloscope, I noticed that three phase voltage occasionally becomes flat or loses switching activity during commutation.This issue becomes much more obvious at high speed operation.At low speed:Waveforms are mostly trapezoidal and continuous.as show.At high speed:The floating phase voltage becomes unstable.The BEMF signal appears distorted.In some sectors, one phase seems to lose signal briefly.Ringing and high-frequency oscillation increase significantly.as show. The higher the electrical frequency, the more severe the signal loss.It seems that the floating phase is being clamped or not properly re
Hi,Is underline of text supported by TGFX or will that be part of the ttf-files in Typographies?The goal is a text like this: "Press SETTINGS now."
Hello,In our application there is a STM32L073CZT3 component, we use timers and DMA to generate PWM that simulates a sine wave to start a motor.We encounter a problem with the microcontroller at high temperatures (about 80 degrees Celsius and above).The microcontroller stuck in all sorts of different states, sometimes the DMA and timers continue to work but the communication and control(PID) stop running in the background, sometimes everything stops (the external clock continues to work at 24MHz), and sometimes the DMA interrupts stop working for a few milliseconds (1-7msec) and then start working again (which produces a reset in our case as a result of a return current from the motor, and a protection component that disconnects power to the circuit). Can you help with ideas why this is happening to us? Thanks,Oren Shoef.
Hello. I'm having a problem with an STM32H503. I need to use the RTC, which is running on the internal 32kHz LSI clock. The clock configuration was created with CubeMX. When I check the RTC, I see that it has only advanced by 21 seconds in 60 seconds. That's a deviation of 285%. The processor is running on the HSI clock, which is divided by 2, so 32MHz. Does anyone know why the RTC is running 3 times too slow? Init of the RCC: RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_LSI; RCC_OscInitStruct.HSIState = RCC_HSI_ON; RCC_OscInitStruct.HSIDiv = RCC_HSI_DIV2; RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT; RCC_OscInitStruct.LSIState = RCC_LSI_ON; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; // RCC_PLL_OFF; if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) { Error_Handler(); } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLO
Hello,Where can i find the sources for MX66UW1G45G_STM32N6570-DK-OBL.bin and MX66UW1G45G_STM32N6570-DK.bin? The stm32-external-loader repository does not seem to have these?Thanks!
ST Community highlights – April to June 2026
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.