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 using STM32h743XIH6 MCU with qspi flash MT25QL512ABB8ESF-0SIT same as STM32H743I-EVAL. when i try to load data to qspi flash using STM32CubeProgrammer and loader MT25TL01G_STM32H743I-EVAL.stldr provided by ST, data read/write working without any on eval board. But when i try the same in my custom board with same configuration it is not working. In my custom board if I erase and read flash content i am getting data as shown in QspiFlashMemoryErase.pngWhen i write data and read it back, i am getting data as shown in QspiFlashMemoryDataWrite.pngData is being written correctly on every even bytes, but all odd number bytes are wrong and always showing as 0x99I have chechked all signals on scope, all signals are coming.i have replaced the flash IC, just to confirm IC functionality, but still not working.
Hi,I am working on a custom Battery Management System (BMS) using STM32L476RG as the MCU, interfacing with an external battery monitor AFE (BQ79656‑Q1).I first validated the MCU hardware and basic firmware by testing the on‑board LEDs and UART communication via test points using USART2. These tests were successful and confirmed that the STM32 configuration and standard UART peripheral are working as expected.After this initial validation, I started implementing the communication between the STM32 and the AFE. For this communication path, LPUART1 is used, while USART2 remains dedicated only for basic UART testing and debug output.As part of this implementation, I took a Single Device Read command frame from a reference software design document for a similar AFE and directly programmed the frame transmission in STM32CubeIDE using HAL UART APIs.While debugging the firmware in STM32CubeIDE, I consistently encounter a “Target not available” issue during execution, particularly when reaching
Dear Community, I am researching how to use a 50Mpx MIPI CSI-2 2 LANE RAW 10 sensor with stm32N647.The idea is not to use the full sensor, instead using analogue/digital crop and windowing on the sensor to capture a specific part of the image and downsize it to a smaller size before entering the ISP of the MCU. The sensor doesn't have scaling.So after all steps I am left with a frame size that varies from 11.4 to 2.4 Mpx depending on cases.From there the image needs to be downsized to a buffer with a maximum size of 1024x768 px for the display.The question is whether the scaling of the ISP of the STM32N647 can handle downsizing and at what cost. The ISP is rated at 5Mpx 30fps but specifies it is possible above, the datasheet is vague about this.Thanks for the help.
Hello, I am experiencing an issue with my STM32U5G9J-DK2 board. Description: Board powered through STLINK USB LED LD7 is ON LED LD6 is ON LED LD1 is OFF I measured about 0.8 Ω between 3V3 and GND Component U16 overheats a few seconds after power-up No external circuit is connected I already tried: Another USB cable and power source Disconnecting all external peripherals My question:Could someone help identify where the problem might come from?Could U16 be defective or indicate a short circuit on the 3.3V rail? Thank you for your help.
Section 5.1.1 Step 3 says that Copy the dts file from the directory: x-linux-gnss1-app\linux-kernel\patch\5.15\kernel to the kernelsource directory at <KERNEL SOURCE PATH>/ arch/arm/boot/dts/But in the latest X-LINUX-GNSS1 package, the linux kernel is 6.1.11 and there are 3 patch files and 1 fragment file is present. It is unclear what to copy exactly. @Saurabh.Rawat
Hello.I created a project for the STM32F769I-DISCO board using CubeMX.I am trying to follow an LVGL example, but the example uses BSP-based libraries, and they are not working in my project. After checking, I found that there is no BSP included anywhere in the generated project.From what I understand, when selecting a board in CubeMX, the BSP should normally be included automatically. However, in my case, it is not.I tried downloading the STM32F769I-DISCO BSP from GitHub and manually copying it into the Drivers folder. However, this caused many build errors, possibly due to missing dependencies or incomplete integration, so I reverted those changes.Could you please advise how to properly include or enable BSP for this board when using CubeMX?Thank you.
Hello,I have STM32F7 controller, using Free RTOS, trying to interface external NOR flash, S29GL128S10TFIV13.I have one source file say testCode.cpp, which I want to move completely in external NOR flash, but every time I ran then code it give Hardfault.MEMORY { RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 512K FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 2048K EXT_FLASH (rx) : ORIGIN = 0x64000000, LENGTH = 16M EXT_SRAM_HEAP (xrw) : ORIGIN = 0x60000000, LENGTH = 256K EXT_SRAM_STACK (rw) : ORIGIN = 0x60040000, LENGTH = 256K } SECTIONS { .isr_vector : { . = ALIGN(4); KEEP(*(.isr_vector)) /* Startup code */ . = ALIGN(4); } >FLASH .ext_flash_code : { . = ALIGN(4); _sextflash_run = .; *(.ext_flash_data*) *(.ext_flash_data*) . = ALIGN(4); _eextflash_run = .; } > EXT_FLASH /* 2. SECTION FOR MANUAL ATTRIBUTES (For Arrays) */ .ext_flash_data : { . = ALIGN(4); *(.ext_flash_data) /* Targets __attribute__((section(".ext_flash_data"))) */ *(.ext_flash_data*) . = ALIGN(4
Hello,Trying to move complete *.cpp.obj to external SRAM configure via FMC. Check the below .ld file for STM32F7 controller.MEMORY { RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 512K FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 2048K EXT_SRAM_DATA (rw) : ORIGIN = 0x60000000, LENGTH = 256K EXT_SRAM_MODULES (rw) : ORIGIN = 0x60040000, LENGTH = 256K } /* ========== Section for Buffers / Variables (up to 256KB) ========= */ .ext_sram_data : { . = ALIGN(8); KEEP(*(.ext_sram_data)) KEEP(*(.ext_sram_data*)) . = ALIGN(8); } > EXT_SRAM_DATA AT> FLASH .ext_sram_modules : { . = ALIGN(8); KEEP(*(testModule.cpp.obj)) . = ALIGN(8); } >EXT_SRAM_MODULES AT> FLASH After code compile, I can see the build details asMemory region Used Size Region Size %age Used RAM: 119928 B 512 KB 22.87% FLASH: 246444 B 2 MB 11.75% EXT_SRAM_DATA: 0 B 256 KB 0.00% EXT_SRAM_MODULES: 0 B 256 KB 0.00%And .map file as below.ext_sram_data 0x60000000 0x0 load address 0x0803c2ac 0x60000000 . =
Hello,I was trying to create two heap regions, sing internal RAM and external SRAM. So I tried below, but the code at some point crash and generate hardfault error. Just want to know does the procedure is correct or am I missing something?//in .ld file MEMORY { FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 2048K RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 512K EXT_SRAM (xrw) : ORIGIN = 0x60000000, LENGTH = 512K EXT_PSRAM(xrw) : ORIGIN = 0x6C000000, LENGTH = 8M } _estack = ORIGIN(RAM) + LENGTH(RAM); /* end of RAM */ _Min_Heap_Size = 0x0; _Min_Stack_Size = 0x400; ._user_heap_stack (NOLOAD) : { . = ALIGN(8); PROVIDE ( end = . ); PROVIDE ( _end = . ); . = . + _Min_Heap_Size; . = . + _Min_Stack_Size; . = ALIGN(8); } >RAM .heap_internal (NOLOAD): { . = ALIGN(8); _heap_internal_start = .; . = . + 0x2000; /* 8 KB internal heap */ _heap_internal_end = .; . = ALIGN(8); } >RAM .heap_ext (NOLOAD) : { . = ALIGN(8); _heap_start = .; . = . + 0x40000; /* 256 KB for heap */
Despite my best efforts to populate and boot the the image of the STM32MP157-DK2 using the .tsv files I am met with a mixed result To date I have yet to establish a USB connection despite following the procedures at wiki. The UART connection is working. My environment is as follows ...Ubuntu 24.04.4 LTS - stm32mp1-openstlinux-6.6-yocto-scarthgap-mpu-v26.02.18 - STM32CubeProgrammer v2.22.0 and STM32_Programmer_CLI Be it that I use STM32CubeProg or the STM32_Programmer_CLI terminal interface the FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv is not found despite the path being correct. Yet I am able to flash tf-a-stm32mp157c-dk2-optee-programmer-usb.stm32 0x01 or tf-a-stm32mp157f-dk2-optee-programmer-usb.stm32 0x01 using the terminal which was the first value in a sequence of the .tsv file (see kate as an example). The same conundrum occurs using STM32CubeProg. Might you suggest how I might resolve this problem - be it in establishing a USB connection or flashing the sd card usin
Hi, I'm trying to create a project to display data on an OLED screen. Even before programming my screen, upon simple connection, the connection constantly drops, and I can't maintain a stable link. I don't know where the idle setting is located in the SDK. It doesn't seem to be a truly stable parameter. Perhaps my code isn't stable. Everything else works perfectly; my services are added and functioning, but I still experience this disconnection, often after sending data. If I remain inactive for a long time, after a few seconds, the connection breaks. Thank
I connected the VD55G1 promodule on the LS-CAM-I3C and connected it to the NUCLEO-H563ZI.The Display X-NUCLEO-GFX02Z1 is also connected.This is exactly the same configuration from the README.md.I get always an error in "ret = platform_i3c_assign_dynamic_address(p_dev->p_ctx);" (Line 82 display_qvga_streaming_i3C.c) I3C ErrorAccording to https://www.st.com/resource/en/user_manual/um3224-how-to-integrate-and-configure-the-vd55g1-sensor-stmicroelectronics.pdf Page35 I assume a ACK at the second W=0x7E (ENTDAA).I have a very shot cable between the NUCLEO Board and the LS-CAM-I3C.What could be the Problem
I've relocated the .text section of a test project to SRAM1 through the C-bus address (starting at 0x0A00 0000). I have relocated the main function into SRAM1.The code runs fine, and if I suspend the chip and navigate to the 0x0A00 0000 address space on the disassembly view the code and debug information (function names, source code references, etc.) is present and visible.Navigating to 0x2000 0000 on the disassembly view also displays the same assembly instructions but without any debug informationWith main located in SRAM1, the debugger fails to stop on entry into main, despite the debug configuration setting.If I set a breakpoint on any code that is located in SRAM1, the debugger does not suspend on those breakpoints, UNLESS I set a breakpoint in the reset handler (which is in FLASH), hit the breakpoint after a reset, and step into main from the reset handler, then it stops on breakpoints normally. This behavior occurs regardless of whether code is accessed via C-bus or S-bus.If I r
As is well known, the ADC sampling rate is on the order of microseconds, while the display task may only refresh once every 100 milliseconds. In an RTOS, how can the display task and ADC sampling values be synchronized? With such a long display refresh cycle, how are the numerous ADC sampling values handled—should they be discarded or stored in a buffer? If stored in a buffer, would it occupy substantial memory space? How do people handle this issue in actual applications?
Hello,I am currently working with the STEVAL-L99615C evaluation kit and the Nucleo G071RB microcontroller board. My goal is to set up a LabVIEW program that can:1. Adjust the output voltages of power supplies to simulate real battery cells.2. Read data measured by the evaluation kit (e.g., cell voltages). For this, I need to learn the basics of communication with the evaluation kit, such as reading and writing to registers (e.g., reading VCELL1_MEAS from register 0x04).Steps Taken So Far1. I successfully connected the evaluation kit to the provided STSW-L99615C GUI, and it works as expected for executing scripts and reading data.2. I attempted manual serial communication with the Nucleo G071RB using PuTTY:Port Settings:Baud Rate: 9600 (also tried 115200)Data Bits: 8Parity: NoneStop Bits: 1Flow Control: NoneCommands Attempted:READ 0x04READ 4READ 4\nREAD 0x04\n However, I did not receive any response from the board in PuTTY. Additionally, I observed that my keystrokes wer
I want to debug my board on Vscode, But I cannot find openocd scripts now. Without openocd scripts, how can I debug my board?
My name is Jeongsoo Lee. We are using the L9961 (BMS IC) and have configured the circuit using the L99615C development board to establish a basic framework. However, our battery solution requires a 3-series configuration. The datasheet and development report guide connecting from cell 1, but there is no information on handling the remaining cell 4 and 5 pins. I also have additional questions regarding whether the entire circuit ground should be connected to C0. Our specific questions are: Should the C4 and C5 pins be left floating, or should they be grounded?Should the entire ground of the BMS IC and MCU be connected based on C0? When debugging our BMS board based on the L99615C circuit (5 cells to 3 cells) using the STSW-L9961BMS code, we are encountering an issue where Cells 1 to 3 are read in reverse order. Is this expected behavior? When applying 3V to Cells 1 to 3 using a cell simulation device, the measured voltage differs from the actual voltage. Th
Hey guys.. new here.. I’m building a small STM32F103 board to read temp and pressure sensors… prototype works fine on breadboard but now want to make PCB..Problem is.. I tried to route VCC and GND planes in KiCad, but when I refill copper zones some areas near STM32 pins stay unconnected.. DRC shows some warnings for vias too..Should I place more vias near STM32 or maybe change copper zone settings?? Also decoupling caps.. some are far from pins because of routing.. will that cause issues?? I’m little worried about noise and stability.. never made 2-layer pcb with stm32 before..
Hi, I have an STM32H7S78-DK board and am working on encryption. I’ve looked at the example files for STiROT_OEMuROT: https://github.com/STMicroelectronics/STM32CubeH7RS/tree/main/Projects/STM32H7S78 -DK/ROT_Provisioning/STiROT_OEMuROTI’ve tried that out, and now I’d like to generate my own keys, but what I’m missing are the OEMuROT_Data.obk and STiROT_Data. obk files. I can generate the OEMuROT_Config.obk and STiROT_Config.obk files with their corresponding XML files using STM32TrustedPackageCreator_CLI, but how do I generate the _Data. obk files? They don’t have any config files, and I can’t find anything online either. The batch script uses them, though, as you can see here: https://github.com/STMicroelectronics/STM32CubeH7RS/blob/main/Projects/STM32H7S78-DK/ROT_Provisioning/STiROT_OEMuROT/obkey_provisioning.batPlease help – do I need them? If so, how are they generated and where can I find the corresponding .xml file?
Hi all, I have reached the point of desperation, and I am all out of ideas how to get my STM32U031 project working.I designed a very simple PCB which has only a few components. I have attached the KiCad files in case it is helpful. I followed guidelines for decoupling capacitors and broke out the SWDIO and SWCLK pins. The issue I have is this: I can not program/connect to the chip over SWD. When I power the PCB from 3V, the first noticeable problem is GPIO PA3 goes high. You can notice that because that pin is connected to the gate of a mosfet which is used to switch some LEDs, so when it goes high, the LEDs turn on. It is especially strange because I put an external pulldown resistor on the pin, so the fresh unprogrammed MCU is driving it high for some reason. I also connected my ST Link to the PCB, but when I try to connect with any speed or reset settings, I see this error:02:27:47 : UR connection mode is defined with the SWrst reset mode02:27:47 : ST-LINK SN : 003B00
I am using a STM32WB05KZ of a custom PDB, and I can not read a correct value of Vbattery.I have programed the ACD (+DMA) usgin CubeMX. I use DMA to read the analog inputs:ADC_Conv_Cplt = 0; HAL_ADC_Start_DMA(&hadc1, value, 3); uint32_t start = HAL_GetTick(); while(ADC_Conv_Cplt==0){ //timeout if ((HAL_GetTick() - start) > 3000){//wait 3 seconds break; } }; HAL_ADC_Stop_DMA(&hadc1);According de manual, the formula for ADC converted data after calibration is the following: Code = Integer(4096/3.6 * VIN) [clamped at 4095]. The result of conversion from Vbat is 0x271, applying the formula I get 0,549V when the Vbat is 3V.I also use 2 analog inputs in PB2 and PB5 and nome of them read correctly. In other proyects with stm32l105 and stm32wl55 the DMA works. I sure I am doing something wrong...Can anybody help me?Edited to apply proper source code formatting - please see How to insert source code for future reference.
Hi,I have made up six boards and three of them had an unusually high standby current (35mA instead of 1mA).Eventually, when the IC was removed, we found Pins 5 & 6 of the removed IC were shorted internally (0.3R)They were also shorted to pin 45 with 3.7R. The other two boards are showing similar shorts.The board worked fine with a new MCU.Does anyone know what might cause this short?TIA,Patrick.
The sensor box pro is a neat device. If I use the CLI Example program and the USB cable, I can get 8000 data points per second, if I use a traditional C# program I get 8 data points per second. The CLI yields dat files, which can be read with a simple C# program, although why you would mix 6 and 4 data groups is beyond my skill set to understand, but it is easier to use than Python and MEMS Set. And it is easier to do the byte data in C#. (It took less time to write this program than I spent trying to get Python to work.)CLI Example makes me type enter to start. I have many ST.COM accelerometers all over the world and I am not going to type enter to start, but the main.cpp and main.h and the cmake lists file will not compile in CMAKE or Visual Studio. So I cannot fix the challenging feature. Could we get VS SLNX file and the C++ code for this program as part of the SLNX so it is easy to take out the enter statement and break the outpu
Dear al!i need your help, i design PCB use STM32H755ZIT6, i set up mode PWR_SMPS_1V8_SUPLLY_LDO via STM32CubeMX 6.12.1. I expect core M7's clock is 400Mhz, M4's clock is 200Mhz. I measure voltage after L2 is 1.8V, at each Vcap pin is 1.0V, The MCU warmed up to about 35 degrees Celsius and chip didn't run. can you share me my mistake, this is the first time which i handle with SMPS block
Hi,I’m trying to understand how the build setup works in VS Code.Could you advise where and how to configure VS Code so that .bin and .hex files are always generated when building both Debug and Release configurations?Is this controlled via CMake, or through one of the .json configuration files?Whichever approach is correct, could you also share the specific scripts or commands that need to be used?Thank you :)
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.