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
Hi I was trying to connect a custom LVDS display to my STM32MP257F-dk board but it does not seem to work, The display has a resolution of 1024x600 pixel and also it uses "vesa-24" scheme, so i assume that i don't need to change the device tree as it matches the specification of the default display which is supplied with the dev kit. If otherwise please advice. Please not that i am not using the touch panel of the display so the i2c connection of the dev kit are not connected to the display board can that disable the LVDS port ? Is there any way to debug the LVDS display, Please advise in this matter. Regards,Samip
Hello,I try to connect the STM32CubeProgrammer (v2.20.0) to the STM32L496 that has enabled Read-Out Protection, but it is not possible. I need just to do the full chip erase and download new firmware.I remember that STM32CubeProgrammer (v2.0.0) allowed to erase the whole ship and connect to MCU successfully. Unfortunately, this old version doesn't work on Windows 11.Please help me to execute these two steps (full chip erase and connect) for the STM32L496 that has Read-Out Protection enabled.Thanks,Alex
I am designing a system that will utilize the dual bank feature of the STM32 devices to make a robust system for OTA updates. I am currently using a STM32U545 for my project and have questions about writing to the FLASH_OPTR to change the SWAP_BANK bit.My setup has an external microcontroller connected to my STM32U545 that interfaces through UART and has control of the BOOT0 pin and the RST pin of the STM32 device. I was confused by the statement in the AN3155 pg. 20 when it talked about the Write Memory command and said "If the Write Memory command is issued to the option byte area, all bytes are erased before writing the new values, and at the end of the command the bootloader generates a systemreset to take into account the new configuration of the option bytes". What does it mean by all bytes are erased? My current plan was to use the read memory command and read the register FLASH_OPTR at 0x4002 2040 and then read bit 20 of that register(SWAP_BANK bit) then perform an operati
I have an other issue at the moment. I cant use the GPIOD, VSSI02 is on 3.3V. Im using stm32g0b1kb. It wont toggle it wont read, it does nothing. I have created a small application far away from my main app just to test the GPIO functions.Hi, I a already Figured it out. But Thank you for the response. I have an other issue at the moment. I cant use the GPIOD, VSSI02 is on 3.3V. Im using stm32g0b1kb. It wont toggle it wont read, it does nothing. What am I missing.I cant toggle, read or write them? PB9 PB6, and PD1 to PD3/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2025 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
Hi,I'm working on a new PCBA design and it will require firmware update over the air of a STM32H563.The ST67W will be used in access point mode at all times.Is it possible to use the ST67W to update a target MCU? Is it done using the built-in bootloader? Is UART or SPI used for it? Can I also update the ST67W's firmware over the air as well?I'm in the PCBA design phase and I want to ensure that all of the required data lines are connected properly, as well as the BOOT0 pin.Any example would be helpful as well.Thanks,Étienne Machabée
Hello ST Community,I’m developing a custom external loader for STM32CubeProgrammer where the STM32 acts as a bridge to program an external MCU (not external flash). The STM32 uses UART5 as a debug port and also as the communication interface to the external MCU.In testing, I see CubeProgrammer calling Write() repeatedly with non‑sector‑aligned sizes and addresses that don’t start at sector boundaries. Sample output from my loader:Starting... Address: 0x90000000 Size: 0x0003C700 Size is not sector aligned:0x0003C700 Address: 0x9003C700 Size: 0x0003C700 Size is not sector aligned:0x0003C700 Address is not start of sector:0x9003C700 ... Address: 0x901E3800 Size: 0x00018E00 Size is not sector aligned:0x00018E00 Address is not start of sector:0x901E3800 Address: 0x901FC600 Size: 0x00018E60 Size is not sector aligned:0x00018E60 Address is not start of sector:0x901FC600This looks like CubeProgrammer is splitting the image into chunks (e.g., 0x3C700, then smaller fragments near the end
We repair Fire Alarm Panels, and I have a known good chip PSD813F1A that I can read and save the data but when I program the blank device it will program but then gives me a verify error and it doesn't function in the panel. I'm using the Logical devices XPRO programmer with the proper adapter DX2052 (PLCC). It is listed in the program's library so that's not the issue. Not sure if there's a source to properly program this device or do I need special programming software and programmer to accomplish this. Any help will be amazing!! Thanks for allowing me post here.
Hello,With the latest release of the extension (3.6.4), the pre-release version (based on bundle manager) was moved to be the official release, thus making CLT obsolete.My original launch file (based on CLT) does not work anymore, it included a Debug script, an Attach script, and a build+flash-only script.To create a compatible launch file, I used the preset script - "STM32Cube: STM32 Launch ST-Link GDB Server" by using vscode's "create a launch.json file" option.This does work for debugging, but creates a few issues-a. Doe's not contain an "Attach" option - I could not find any help on the options for configuring the "stlinkgdbtarget" script type.b. The "Memory Inspector" which is part of the extension pack, does not work anymore with the generated launch file. I get a "No debugger attached" while debugging.c. The vscode reset debug button does not reset the core anymore - it re-flashes the device. Can anyone help me create a launch file that will contain these features based on
Hello,Where can I view the commands sent and received from the ST67W611M1 using the SPI and UART? The datasheet doesn't provide this information. I couldn't find any other documents describing the command system on the ST67W611M1 page.
Hi, In my UI project I need a vertucal boxProgress while all available backgrouds and images are horizontal while w&h are greyed out. When I create a custom background, the progress bar is not working. Same for circleProgress (size control). Can you help please.
I am trying to configure STM32 Nucleo-64 G070RB Board as Modbus RTU Master to send commands to a slave and receive response. I have connected MAX485 - TTL to RS485 board. Powered with 5V, DE and RE connected to USART1 DE Pin. Board's A and B are connected to slave (VFD) at a distance of less than 2 meters.I am able to send commands and slave works fine. The response from salve received is not echo of the command as expected. UART reports Parity error and Noise error :1h and 2h => 3h.When the slave was connected to PC and same commands were sent using QModBus, slave works the same way (as expected) and response received is correct (echo of the command).UART1 configuration: huart1.Instance = USART1; huart1.Init.BaudRate = 9600; huart1.Init.WordLength = UART_WORDLENGTH_9B; huart1.Init.StopBits = UART_STOPBITS_1; huart1.Init.Parity = UART_PARITY_EVEN; huart1.Init.Mode = UART_MODE_TX_RX; huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; huart1.Init.OverSampling = UART_OVER
Hi,using TouchGFX, I get the following error when I run the code.How can I fix this?Thanks***************************************************************Compiling simulator/main.cppCompiling touchgfx/framework/source/platform/driver/touch/SDL2TouchController.cppLinking build/bin/simulator.exem.AllocationBase 0x0, m.BaseAddress 0x60EA0000, m.RegionSize 0x370000, m.State 0x10000C:\Programmi2\TouchGFX\4.26.0\env\MinGW\msys\1.0\bin\rm.exe: *** Couldn't reserve space for cygwin's heap (0x60EA0000 <0x1A90000>) in child, Win32 error 0generated/simulator/gcc/Makefile:160: recipe for target 'build/bin/simulator.exe' failedmake[2]: *** [build/bin/simulator.exe] Error 1generated/simulator/gcc/Makefile:155: recipe for target 'generate_assets' failedmake[1]: *** [generate_assets] Error 2simulator/gcc/Makefile:32: recipe for target 'all' failedmake: *** [all] Error 2Failed
I have a STM32 project created for STM32H757 which has dual core CPU. The directory structure is look like this:I wanted to build this project using command line in my ubutnu machine. I have tried with this command:$ <INSTALLTION_DIRECTORY>/st/stm32cubeide_1.12.1/stm32cubeide --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data "./" -build fx/CM7But it shows "WARNING: No Project matched "fx/CM7". Skipping..."I have tried running it from root of the project directory like "<REPO_PATH>/sca_repo/fx_redesign/fx", also tried it running from inside the fx directory too like "<REPO_PATH>/sca_repo/fx_redesign/fx/CM7/". But output does not changed, I can not figure out what I am missing here, can anyone help me ?
Hi everyone, I have an display driving issue causing some unwanted artifacts. Some context information about my platform. I'm running an STM32H7B0. My binary is stored on an external octospi (quad mode) memory (not just the resources of TouchGFX). My frame buffer is entirely in internal RAM. I have configured the LTDC to drive a 480x800 display at 16bpp. I have also enabled DMA2D with a M2M configuration. Finally, my system is running FreeRTOS as an OS. This all is set up with the CubeMX generator. The issue I am facing is that some image elements on my display seem to sometime flicker when invalidated. These elements will have some black lines through them. See attached image for the black lines though the round image objects on my display. Some points I have looked at so far: I am invalidating my cache after the generated hal performs the flushFrameBuffer. I have my MPU setup to avoid speculative accesses on my OSPI memory range. Any sugges
Hi STM Community Team,Good day! We are working on a project called DFMEA Analysis for flight products so, we kindly request the provision of the functional safety Document (Pin FMEA). Given the time-sensitive nature of the current project, we would greatly appreciate it if you could expedite the sharing these documents for the below listed item at your earliest convenienceS.NODesignatorPart NumberManufacturerData SheetFIT Rate DocumentRemarks1U16STM32WL5MOCH6STRSTMicroelectronicsYesYes
I'm attempting MIFARE communication using the ST25R3916 microcontroller, but the NT does not return during the AUTH communication. I successfully obtained the UID, and after tag selection, the SAK returned as 0x08. However, after sending 06, 01, the CRC error in the 0x1C register is set. The NT should then return from the tag, but not a single byte is returned.The AUTH sequence is described below.DIRECT_COMMAND_SEND(0xDB); //Clear FIFOREG_WRITE(0x22,0b00000000); //TX BYTE Number(MSB)REG_WRITE(0x23,0b00010000); //TX BYTE Number(LSB)BSS=0; //SS=0__delay_us(10);SPI_send(0b10000000); //FIFO write commandSPI_send(0x60); //FIFO data1SPI_send(0x01); //FIFO data2BSS=1; //SS=1__delay_us(10);DIRECT_COM(0xC4); //FIFO Transmit With CRCAfter this, a CRC error occurs, and NT doesn't return a single byte.Does anyone know why?
Hello!I am facing a problem when trying to connect to a remote server using NetXDuo and MQTT. We have a cloud service with which we want to establish a connection so we can send some data. I am basing my project on the example from the STMH573 MQTT Client. The exact problem I am facing is that when trying to establish the connection using the username and password, and the certificates an error occurs, when trying to secure connect. I get these two TSL alerts - alert level is 0x2 and alert value 0x28 (secure connection failed to be established). Using TLSv1.2.What I did:Converting CA certificate to the header file format openssl x509 -in ca.crt -outform DER -out ca.der # Then convert into the header file format using xxd.exe xxd.exe -i ca.der > ca.cert.hConverting client certificate to the header file format openssl x509 -in client.crt -outform DER -out client.der # Then converting it into the header file format xxd.exe -i client.der > client.cert.hConverting client k
Hi, I’m Lalin Prasad. I’m currently learning bare-metal programming using he STM32L433 MCU (STM32L433RCT6PU).While working with I²C communication, I interfaced a sensor successfully, but I’m not getting the correct output values.This is the UART terminal output — the proximity (PROX) value is always 0:UART OKI2C OK390CONF1 writtenCONF2 writtenVCNL ReadyPROX = 0PROX = 0PROX = 0Please help me understand why the proximity reading is always 0./*The below mentioned code is main.c*/ #include "timer.h" #include "i2c.h" #include "uart.h" uint16_t value = 0; int main(void) { set_clock(); uart_init(); uart_write("UART OK\r\n"); i2c_init(); uart_write("I2C OK\r\n"); uint16_t id=i2c_read(0x0C); uart_write_int(id); uart_write("\r\n"); // Bit 0 = 1 → PS enable i2c_write(0x03, 0x0001); uart_write("CONF1 written\r\n"); // 2) PS_CONF2 (0x04) — LED current = 10 mA i2c_write(0x04, 0x0008); uart_write("CONF2 written\r\n"); // delay for sensor startup for(volatile int d=0; d<2000
Hello everyone, My name is Aleksandar, and this is my first time posting here.I’m trying to simulate the operation of the TL494 controller in a full-bridge (H-bridge) configuration using an STM32F103 (Blue Pill) and STM32CubeIDE with the HAL library.Project goal: The aim is to simulate the TL494 controller and apply it to control MOSFETs in a full-bridge (H-bridge) configuration. The goal is to generate two PWM signals that are phase-shifted by 180°.I would like to have full control over the switching frequency (1kHz - 200kHz) and duty cycle (5% - 45%) , and I also want to implement dead time (5%) that is proportional (percentage-based) to the frequency. I have already tried to simulate this behavior in CubeIDE, but I couldn’t get the correct phase-shifted signals.I would really appreciate some guidance or examples on how to properly configure the timers for this. My question is:Is it better to use CH1 and CH1N of a single timer (with complementary outputs), or two independent timers?
Hardware: STEVAL-STWINKT1B and NUCLEO-N657X0-QThe STEVAL supports Nano Edge Studio and stdatalog-pysdk , but this will not work when communicating P2P to a Nucleo. Are there example codes for the STEVAL where it communicates eg. via UART to other boards? The only resource I could find is fp-sns-datalog2/Projects/STM32L4R9ZI-STWIN/Applications/DATALOG2 at main · STMicroelectronics/fp-sns-datalog2 , is it difficult to implement a communication protocol using that? There were multiple example codes for the NUCLEO, so no problem there. I already have implemented UART IT buffer on Nucleo (struggled getting UART DMA to work), so it would be easiest if something similar could be implemented on STEVAL.
Hi all i have been working with LTDC module inside stm32 MCUs to drive an external parallel 24 bit RGB display , i integrated an LVGL UI inside this project but my output is kinda look like this i dont know what is causing it , . display is running at 11 mhz.i am using nucleo H7A3ZI-q dev board with cortex M7i asked in lvgl no response from them :sad_but_relieved_face: any help here i also tried to fill iw with two colors 50-by 50 theni got this so i think that problem is not with LVGL . <<<<<<<<<<<<update>>>>>>>>>>>>>>>>>>>i was able to get this output bu changing the startaddress from if i put 0x24000000 i get the misaligned one . but now the issue is if i integrate LVGL now while the startaddress is (uint32_t)framebuffer , i get nothing in display , if i chnage that to 0x24000000 i get the misaligned output of LVGL  
On an existing, working project developed with stm32cubeide 1.19.0 and the stm32h743zit developed with azrtosh7 3.3.0 that uses usbhs as the host for msc and midi devices, I need to add usbfs channel management to connect hid and midi, but I'm having significant problems configuring the system with stm32cubemx. I haven't found any examples online that support both USB channels. Has anyone tried using both USB channels and can give me some advice? During testing, I found that creating code from stm32cubemx 6.15.0 with both USB channels has many problems. I had to make some manual changes to the code created because it starts running, but only partially works.
Hi,I need some solution. Issue is stm32G0b1re nucleo board is detecting as Jlink device in device manager. But I want this to detect as STM stlink device. I have uninstall driver then it is decting as USB port. Even I have tried to install stsw-link009 driver. But somehow it is not installing driver. As I can't that in control manager. let me know what to be done to update driver so that I could see it as STM stlink device. Thank You
Hi team,I am trying to run BMSCCTX using Pi as MCU. 1. I read the L9963 E and L9963 T datasheets. i found that any 8 bit message wakes up the BMS , i tried sending sample messages like 8 bit zeros and was able to turn on d2 led of bms.if the wake up is done correct, bms should return a default frame of 0x0000000016. But i am not getting it and after 1 min it goes to sleep mode. when i run a code, D2, D8 and D9 lights up, but D7 - for spi is not blinking.2. I also have one more doutb, inside the bms, the L9963 T converts 4 pin spi to 2 pin ISOp and ISOm pins which goes to L9963E as ISOLp_SDI and ISOLm_NCS.Does the output of the L9963 E comes from the same? as it is bidirectional. Or ISOHp and ISOHm are the output pins for L9963E?? 3. If I am using only one BMSCCTX, to get the replies from E should i loopback connect ISOL pins with ISOH pins?4. In AEK-MCU-C4MINI sample projects i see the pins-TXEN, DIS, BNE, ISOAm, ISOFreq are connected as GPIOswhereas i am using Pi and ha
I am curious what dictates the operating conditions of the STEVAL-ESC002V1 to a 2-6S battery and 20A current capability? I would like to use this chipset and operate from an 8S battery. The specs state that the MCU is capable of operating up to 45V and a fully charged 8S battery would only be 33.6V. Therefore I would assume the MCU can operate at the voltages I need and what would need to change on the EVAL board to test at the increased voltages?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.