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
Hello,I am experiencing a flash upload issue with STM32CubeIDE(v1.19.0).The MCU I am using is STM32C091GCU6 with 256 KB of internal Flash.I am currently developing code to display image (IMG) data on an LCD.The image data is stored in Flash, copied to SRAM using memcpy(), and then transmitted to the LCD via SPI DMA.From the MAP file, I can confirm both the Flash addresses of the image data and the SRAM copy destination.The relevant MAP file entries are shown below: .rodata.IMG_HORIZONTAL0x08004840 0xfd20 ./Core/Src/font.o0x08004840 IMG_HORIZONTAL.rodata.IMG_VERTICAL0x08014560 0xfd20 ./Core/Src/font.o0x08014560 IMG_VERTICALAfter this configuration, when I build and debug using STM32CubeIDE, the reported uploaded memory size is only 128 KB.Because my code accesses image data located above the 128 KB Flash boundary, a HardFault occurs when running under CubeIDE debug.However, when I take the same build output file and program it using STM32CubeProgrammer(v2.19.0), the firmware is cor
Hi everyone! I'm using an Arduino Portenta H7 (STM32H747) board mounted on a custom carrier board. I'm using STM32CubeIDE as a development environment, with HAL libraries for peripheral initialization.I'm only using the Portenta's M7 core. Portenta interfaces via GPIO to a parallel bus that drives both a display and other peripherals. I'm also using the RTC module for the system clock only, initialized at startup via HAL. Everything works fine until I try to set the RTC datetime using this function: void tm_wr(struct tm *_tm) { RTC_DateTypeDef sDate; RTC_TimeTypeDef sTime; if (_tm->tm_wday == 0) { sDate.WeekDay = 7; } else { sDate.WeekDay = _tm->tm_wday; } sDate.Month = (uint8_t)_tm->tm_mon + 1; sDate.Date = (uint8_t)_tm->tm_mday; sDate.Year = (uint16_t)(_tm->tm_year-100); HAL_RTC_SetDate(&hrtc, &sDate, RTC_FORMAT_BIN); sTime.Hours = (uint8_t)_tm->tm_hour; sTime.Minutes = (uint8_t)_tm->tm_min; sTime.Seconds = (uint8_t)_tm->tm_sec; HAL_RTC_SetTime(&
Hi I have a question that blocked me for several days, Hopefully someone can help, thanks a lot.1:MCU:STM32G0B0CET6,Develop tool:STM32CubeIDE2:I wanna have a test for OTA ,so i create a bootloader project and app project3:Flash segmentation:1)Bootloader(32KB),0x08000000~0x08007FFF APP(240K):0x08008000~0x08047FFF APP BAK(236K):0x08048000~0x08079FFF INFO(8K):0x0807A000~x0807FFFF4:In Bootloader ,try to jump to APP(0x08008000):5:Attached the source code (bootloader and app) and hex file(in debug directory)6:Modifed "ld" file in bootloader project and app project, and I confirm the stack address in 0x08008000 and reset_handler in 0x08008004 is correct.And have set vector in main entry(first line in main()):SCB->VTOR = FLASH_BASE | 0x8000;7:If i use stm32CubeProgrammmer and STM32CubeIDE to start ,app will be run ,But app can not run via bootloader software jump. bootloader jump slide:void RunUserCode( void ) { uint32_t* ucaddr; // i
Hi there,I'm using an N6 with the latest version of IDE and MX with the FSBL/Appli dual project structure as per the FSBL LRUN template, and MX is incorrectly managing code. When using X-CUBE-FREERTOS in Application mode, code generation and cleanup is buggy. I've attached a FreeMarker template error generated WITHIN app_freertos.cWhen removing FreeRTOS from the project, MX fails to remove void MX_FREERTOS_Init(void); and MX_FREERTOS_Init(); from main.c. It also doesn't remove the head app_freertos.h and FreeRTOSConfig.h header files, but does remove the source file. I get the following compiler error:make[1]: *** No rule to make target '/Users/h7/STM32CubeIDE/workspace_1.16.1/N6Project/Appli/Src/app_freertos.c', needed by 'Application/User/app_freertos.o'. Stop.I'm also finding that the files that I have added to the build exclusion list in libraries that I've included in Middlewares/Third_Party are being reset. After a code generation, those files that MX should not be touc
I enabled the bonding feature in STM32WB5MMGH6TR.Bonding is working correctly. But when the device(STM32WB) is bonded to phone(Android 15), calling disconnect from the phone does not disconnect the device.This problem does not occur when:-1. Phone Android version is less than 15(even after bonding it can disconnect).2. Device is not bonded to the phone(Android 15).
It is getting hang at this point, going to infinite loop MCU: STM32F407SPI1 InterfaceTried ST25R_SELFTEST as well same problem
Hello,I have observed this issue in version 6.16.1 across several MCU series (F3, F4, H5, H7), though it appears likely that all earlier versions are affected.The generated .cmake toolchain files incorrectly treat the --specs=nano.specs option as linker-only. This option should be applied globally, as it also affects the system include paths used during compilation. Specifically, it causes the compiler to include arm-none-eabi/include/newlib-nano/newlib.h instead of the standard arm-none-eabi/include/newlib.h.While this mismatch probably does not break ABI compatibility—since the structures provided from the standard headers are larger than those used in the compiled newlib-nano library—it does negate the RAM usage benefits of newlib-nano. This is particularly problematic when using the USE_NEWLIB_REENTRANT FreeRTOS option.Regards,Peter
So here is the outline of my code. I'm getting data every 5 seconds (example data: "vref:2975.12, voltage_max:30.00, voltage_min:-1219.00,avg_error: 4136.04") via UART and i transmit it again to view it in putty via ST Link (USART3). Problem is some of the data is getting corrupted, i'm attaching the Putty terminal output. I have verified the input, using logic analyzer and it's correct.Here is the code, can you help me identify what i might be doing wrong/* 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. * **
Hi, using STM32 Cube Programmer and STM32 Trusted Package Creator W2.21, I was unable to detect the HSM card, getting error 0x88000002. I had to downgrade to V2.14, as mentionned in several posts to get it detected successfully.I use HID Omnikey 3121 reader.Any solution to be able to use last version 2.21 and HSM card ?
I am using the above 2 EVAL boards from ST. I am trying to get the video pipeline going to the point that I do receive the images in memory and the appropriate frame based interrupts are triggered to verify. I have tooled my code for minimal application and it fails. I have started with ST provided x-cube-n6-ai-h264-usb-uvc reference and am using the STM32Cube_FW_N6_V1.3.0 SDK provided. I am using the STMCubeIDE for development.From the terse documentation/information it seems that the 2 EVALs procured should be compatible. However, as mentioned in the other post: https://community.st.com/t5/stm32-mcus-boards-and-hardware/stm32n6-fpc-camera/m-p/755889 , I have found the hard way that the sensor MIPI lane polarities are flipped. i.e. Dx_P and Dx_N from the sensor to the Nucleo Eval.Q1. I have looked through the documentation and have no indication of the MIPI PHY being able to be configured to flip the polarities on the signals. Is this true?Anyways, I have managed to fli
Hi,It seems that some of my measurements (in a green jojo tank) are resulting in a `VL53L4CX_RANGESTATUS_OUTOFBOUNDS_FAIL` error.The measurement itself seems to still be correct as the tank is empty, and the result is around 1800mm.I check the documentation and i don't really see an explanation for this error. It says things are 'out of bounds' but does that simply mean there's not enough reflection?I've taken this sensor because it would do up to 4m, so i'm wondering what i'm doing wrong :)
I am using Motor Pilot 6.4.1 Profiler and noticed that there is no "Start Hall Profiling" option available.Could you please confirm if this feature has been removed or if it is located elsewhere?Best regardsPelino
Hello ST Community,I am working with NUCLEO-WBA55CG and encountering a startup issue when using the BLE_p2pServerThreadX example from STM32CubeWBA v1.8.0.EnvironmentBoard: NUCLEO-WBA55CGMCU: STM32WBA55 (single-core Cortex-M33)SDK: STM32CubeWBA v1.8.0RTOS: Azure RTOS ThreadXExample: BLE_p2pServerThreadXIDE / Toolchain: IAR Embedded Workbench 9.60Debugger: ST-LINK (on-board)Problem DescriptionAfter programming the firmware to the board::cross_mark: On cold power-on (Power-On Reset), the application does not start:white_heavy_check_mark: After pressing the RESET button, the application runs normallyThe issue is 100% reproducibleBLE advertising starts correctly only after a manual reset, not after initial power-up. Additional Tests PerformedThe issue occurs even when Timebase Source is set to SysTickThe MCU is confirmed to be STM32WBA55 (single-core)(not STM32WB, no wireless coprocessor)No user code is executed after early initialization during the failing POR caseAfter RESET, behavio
Hello,I am currently working on a project with an HTTP server, successfully implemented using FreeRTOS. In this setup, I handle client requests for opening and collecting data from the client side. However, since I need to display real-time data on a web page (for an IoT application), it has become necessary to implement the WebSocket protocol.I am looking to implement a WebSocket server on my STM32f746G-DISCO. Unfortunately, I have not been able to find any working examples of WebSocket implementation on STM32.Could you kindly point me in the direction of any relevant examples or provide some guidance on how to get started with this? Also, I would appreciate any insights regarding whether I need to modify my CubeMX configuration when implementing WebSocket, or if the standard initialization is sufficient — enabling ETH, activating lwIP (httpd) without DHCP, and activating FreeRTOS with the default task where the following initialization is done:MX_LWIP_Init();http_server_init();Any he
HiI've been struggling trying to get an Image from a Image sensor over DCMI via the GPDMA on an STM32U575.The image sensor has a resolution of 752*480, though I only want to capture 420*420, which I've configured on the sensor to output. I've also configured it to output a B&W image meaning I only get one byte per pixel.I've used the DCMI_ContinousCap_EmbeddedSychMode example as the basis for my code, though I'm not using an omnivision sensor so I've swapped out the configuration for one required for my image sensor. However, for the most part, I have not modified the GPDMA or linked list settings from this example, just the I2C comms (swapped to SPI) and DCMI to external synchro, and DCMI polarities to match my image sensors output.when I try to pull a full image in one DMA transfer, I get an overflow error after only receiving half the image (88200 bytes). When I make the image size 360*360 I get the full image just fine (129600 bytes).I did try splitting this into 3 requests of
I am writing to request technical assistance regarding a display issue we are encountering while developing with the STM32MP257FA. We have connected an OLED display via the LTDC interface using the RGB888 communication protocol.[Issue Description] While the display output is functional and the image is visible, the colors appear significantly "washed out" (desaturated) compared to the original source image. It feels like some color data is being lost or attenuated.[Troubleshooting Steps Taken] To address this, we have already performed the following debugging steps:Signal Integrity: We suspected a potential issue with the R5 data line (and others) and have attempted to adjust hardware parameters, including impedance matching, trace length, and clock timing.Cross-Verification: We replaced the OLED module with a new one to rule out a component defect, but the symptom remains identical.[Attachments] For your reference, I have attached the following files:Schematic: Our hardware circuit de
Hi,I have implemented CDC USB device on my custom board using STM32C071CBT6. When i connect USB cable to host PC then I can see Virtual COM Port on PC as 'USB Serial Device (COMxx)' However, I tried transmitting some data which I could not receive on PC side. After debugging I noticed that function USBD_CDC_ACM_Activate() is never getting called. In file, app_usbx_device.c, function MX_USBX_Device_Init() has following code:UINT MX_USBX_Device_Init(VOID){UINT ret = UX_SUCCESS;UCHAR *device_framework_high_speed;UCHAR *device_framework_full_speed;ULONG device_framework_hs_length;ULONG device_framework_fs_length;ULONG string_framework_length;ULONG language_id_framework_length;UCHAR *string_framework;UCHAR *language_id_framework; UCHAR *pointer; /* USER CODE BEGIN MX_USBX_Device_Init0 */ /* USER CODE END MX_USBX_Device_Init0 */pointer = ux_device_byte_pool_buffer; /* Initialize USBX Memory */if (ux_system_initialize(pointer, USBX_DEVICE_MEMORY_STACK_SIZE,
Hello ST,Im using STNS01 as a power source in two of my different project prototypes. Unfortunately booth are facing the same problem. When the pcb was produced LDO/charger worked as intended. However after many battery and usb disconnection durring fw debugging, the problem suddenly appeared - LDO do have otput only when USB is connected. After USB disconnect LDO voltage falls to zero eventhrough 4.1V charged li battery remains still connected. Voltages to identify the problem closer:1) connected the battery(AA sized lithium cell), usb cable and measure voltages(all are references against GND, not battery - terminal which is polyswitch protected):usb connected- ntc:0.53V SD:0V IN:5.1V SYS:5.08V BAT:4.13V 2)then I disconnected USB but kept battery connectedusb disconnected batery backup- ntc:0.0V SD:0V IN:0V SYS:0V BAT:4.14V The schematic-power supply part is here: LDO is supplying just low power chips(mcu and sensors). DNP components are soldered manual
The release notes for v2.2.0 say that feature is in there, but I can't seem to find it.I tried the "Full Chip Erase" feature & it cleared everything EXCEPT the EEPROM.
Hey all,I have a Sony IMX686 camera module connected to the STM32N6 Discovery Kit, streaming video to the on-board LCD. The sensor outputs a single-stream RAW Bayer format on Virtual Channel 0, and the DCMIPP receives the data correctly — up to a certain horizontal resolution. The issue appears to be related to a bytes-per-line limit within the DCMIPP or its DMA pipeline.When the IMX686 outputs RAW8, the DCMIPP can only handle horizontal line lengths up to 1552 pixels. If I increase the width beyond 1552 px (e.g., to 1668 px), I begin to see horizontal distortions in the lower portion of the frame. These distortions worsen as the width increases. See the images below.As the width increases further, the distortion grows and eventually affects most of the frame (shown below).When switching the sensor to RAW10, the exact same distortion appears, but it goes away when I reduce the horizontal resolution to 1232 pixels. This matches the expected scaling: 1552 * 8 / 10 ≈ 1241 → nea
The STM32CubeProgrammer does not appear to be able to read system memory from an STM32L051 when using the UART interface however it is able to do so when using the SWD interface. When using the UART interface, both flash and EEPROM can be read, but not system memory. This is on a factory fresh part with no readout protection set (0xAA).c:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe --connect port=COM5 -r8 0x1FF80050 8 ------------------------------------------------------------------- STM32CubeProgrammer v2.21.0 ------------------------------------------------------------------- Serial Port COM5 is successfully opened. Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off Activating device: OK Board : -- Chip ID: 0x417 BootLoader protocol version: 3.1 Device name : STM32L05x/L06x/L010 Flash size : 64 KBytes (default) Device type : MCU Revision ID : -- Device CPU : Cortex-
I'm using STM32_Programmer_CLI software v.2.20.0 to program an ST Nucleo board (NUCLEO-C071RB).I wish the software were better at automatically handling situations that make it fail.For example, this command does work normally for uploading firmware to the board:STM32_Programmer_CLI --connect port=swd --download firmware.elf --startHowever, if you have enabled read-out protection (RDP) by setting RDP=0 in the option bytes, then it fails with "Error: failed to erase memory" (and for some reason, it prints that message twice). If read-out protection truly does prevent you from erasing, the software should be smart enough to detect that RDP is on and then turn it off temporarily. Instead, we have to manually ask the software to do that:STM32_Programmer_CLI --connect port=swd -ob RDP=0xAA --download firmware.elf --startNext, if you have enabled write protection for a relevant portion of flash, the software fails with the same "Error: failed to erase memory" error messages
hey all, i'm working on a team where most people have little experience with stm32s, and we've designed and manufactured our first board with the STM32H7S3I8T6 chip. we followed the data sheet extensively and did a decent amount of research on peripheral values, and after soldering the chip onto the board we checked that all soldered connections were good (especially D+ and D- on the USB bus). some observations: 1. we tried to first use the USB DFU method using the STM32Cube Programmer, but when plugging the board into the computer, no new usb connection is detected (when holding down boot button to set BOOT0 high). 2. we tried using an ST-link module from a Nucleo board to program the board with SWD, but similarly, no device was detected when programming. 3. when checking the D+, D-, and LSE/HSE oscillator data lines, probing them using an oscilloscope results in no signal / very weak noise. i'll attach our schematic for the chip, any and all feedback is greatly appreciated. curr
Hi all, my team is experiencing some boards have failure of their STUSB4500 sink PD controller. We have not 100% determined the cause yet, but I found that our implementation is only using 0.1uF caps for the VREG 1V2 and VREG 2V7 decoupling. This is way under the datasheet minimum of 0.5uF.The failure mode we are seeing is that the STUSB4500 does not communicate on USB PD at all after failure. On both failed boards I have received back, VREG 1V2 and VREG 2V7 output ~0V. My question: is it possible or likely that the 0.1uF decoupling caps are causing or leading to this failure? The STUSB4500 is programmed to negotiate 12V, also. So the operating condition would be to negotiate 5V on plugin, and then negotiate 12V. Thanks!
Hello Team,We are using the "ST33KTPM2X32DKG9" part TPM IC. I would like to know the I2C address of the TPM IC.Regards,Sampat
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.