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
The STM32 sends an HTTP GET with the AT command AT#XHTTPCREQ. The modem answers with the HTTP header, a #XHTTPCRSP:<len>,<state> line and the body. The complete response is about 4432 bytes. I start reception with:HAL_UART_AbortReceive(&huart1);while (HAL_UART_GetState(&huart1) != HAL_UART_STATE_READY);HAL_UARTEx_ReceiveToIdle_DMA(&huart1, (uint8_t*)rx_buffer, 4500); // buffer is 4500 bytesProblemHAL_UARTEx_RxEventCallback is called with huart->RxEventType == HAL_UART_RXEVENT_IDLE and Size = 256, and the reception ends. The value is always exactly 256, and the rest of the response is not received!!Setup:MCU: STM32WB5MMGH IDE / CubeMX / HAL package version 6.15.0 Peer device: nRF9160 running Serial LTE Modem (AT commands over UART)Cube configuration:USART1: asynchronous, 115200 baud, 8N1, oversampling 16, FIFO mode disabled, hardware flow control disabled, overrun enabled, DMA on RX error enabled USART1_RX: DMA1 Channel 3, peripheral to memory, Normal mode,
Hello everyone,I used to work with U5 family microcontrollers. Recently I migrate to C5 families, and to MX2 UI.When I wanted to create interruptions for DMA UART events, normally I worked with RxEventCallback (classic). However, seems I´m not capable to find this same __weak function anywhere inside the hal_uart.c file. Am I missing something? I´m working with STM32C562R mcu, in CubeIDE 2.2Thank you everyone.
Hi,I have project for STM32F405 created manually. Project is using fixed GCC 4.92014q4.After updating STM32CubeIDE to version 1.14.0 i got warnings shown below.Compiler option "Cyclomatic Complexity" is disabled.File "subdir.mk" contains this rule:# Each subdirectory must supply rules for building sources it contributes Src/%.o Src/%.su Src/%.cyclo: ../Src/%.c Src/subdir.mk How to remove this warnings?
Hi all,Dwelving deeper into the life and soul of the STM32Cube extensions I have come across a rather evil little bug. Luckily it is quite easy to reproduce.Use CubeMX to generate a boilerplate CMake project for any STM32 chipOpen VS Code, and open the folderIn VS Code, disable STM32Cube CMake Support extensionIn VS Code, hit "F1" and type "edit user". Select "Preferences: Open User Settings (JSON)"In the JSON editor, remove the "cmake.environment" keyIn VS Code, re-enable the STM32Cube CMake SupportExpected outcome:The "cmake.environment" setting should be put into the ".vscode\settings.json" file, similar to how "cmake.cmakePath" is placed there by the extension.Observed outcome:The "cmake.environment" setting stays in the user's local settings file and affects all projects, ST and non-ST alike. The "${env:PATH}" evaluation is at the end of the line but nevertheless the setting gives preference to ST-sourced tools and executables if they happen to be found from from the folders that
Hello ST Community, I am working with the SAES peripheral on both an STM32U545 and an STM32WBA65.I am trying to use the wrapped key mode to protect encryption keys. For firmware updates, I have implemented the following key hierarchy:A product key is wrapped using the DHUK and stored in Flash. A binary key is used to encrypt the firmware image. The binary key is encrypted using the product key.At runtime, the device should:Unwrap the product key using the DHUK. Use the unwrapped product key to unwrap the binary key. Use the binary key to decrypt the firmware image.I would like to perform this complete sequence using SAES wrapped mode.This works correctly on the STM32U545, but not on the STM32WBA65, and I cannot identify the reason for this difference in behavior. On both Nucleo boards (NUCLEO-U545RE-Q and NUCLEO-WBA65RI), I implemented the following test code: /* The size of the plaintext is in words */ #define KEY_SIZE 8U #define PLAINTEXT_SIZE 8U uint32_t ProductKey[K
Hello everyone,I am a student member of Team VITAKSH at VIT Bhopal University, India. We are developing a scientific payload called OSAD (Open Spectral Atmosphere Dataset) for a high-altitude balloon mission.Our objective is to measure solar spectral variations at different altitudes and correlate them with atmospheric and environmental parameters.We have procured the STM32 NUCLEO-F722ZE and are beginning firmware development. Before integrating all our sensors, we want to establish a reliable firmware architecture rather than simply implementing each sensor independently.Our payload involves multiple sensors communicating over I²C, SPI and UART. We expect to acquire measurements periodically, timestamp them, process the incoming data and store them reliably for post-flight analysis.We are currently trying to understand a few architectural decisions:1. Firmware structure: What would be a good way to organise a multi-sensor acquisition system using STM32CubeIDE and HAL? Would a modular,
Hi,I’m debugging intermittent DID_VID read errors on an STPM4_RASPI v1.2 evaluation board with an ST33TPHF2XSPI. The host is an Arty A7-100T FPGA. The interface is SPI mode 0 at 10 MHz with 3.3 V I/O, and the TPM board is powered from the Arty’s PMOD 3.3 V supply.When I repeatedly read four bytes from DID_VID using the SPI header 83 D4 0F 00, the TPM returns the expected value, 4A 10 00 00, for an extended period. Incorrect responses occur intermittently after many successful reads. On a failing read, I observed 81 FF 81 FF when locality 0 was inactive and A1 FF A1 FF when it was active. Acquiring and releasing locality without resetting the TPM changed the incorrect response accordingly.In the Saleae captures, the DID_VID header on MOSI is correct, the incorrect bytes are visible on MISO, and CS stays low through the header, wait, and data phases. Incorrect reads typically show about 15 wait bytes in our logs, versus about one for correct reads. The issue occurs at both 1 ms and 1 s p
NUCLEO-H563ZI with STM32CubeMX 6.18.1 and STM32CubeIDE 2.2.0 reading in magnetometer data at 100 kHz then printing the data out the USART3 VCP. Baud set at 115200 but to read the data requires receiving it at 38400, one third the set baud rate. PLL is set at 250MHz, but that has no influence on the baud rate. How do I get the baud rate to 115200 like USART3 is set at? What could be slowing everything down by 1/3? Data came out at >1 sec intervals on one project. On this project it comes out closer to 6 seconds. That, and the baud rate is receiving at 38400 has me looking at the board funny.Any suggestions as to why it is generating data at 1/3 the rate set?
Hello out there, I downloaded and installed STM32CubeIDE on a Debian system (amd64, testing, kernel 7.3.0-rc3) . No problems so far. Then I created a simple project for a Bluepill board with autocreated code from STM32CubeMX, which I edited a little bit. So far it’s a small simple program which doesn’t create any errors. But there is nothing to compile it, no buildchain, no compiler and no possibilities to put in my Debian installed cross-compiler and tool chains. All the menu items are empty.My main screen looks like this: And this is my installation: Also no possibility to connect my ST-LinkV2 to the IDE.Something missing here?Thank you BR Christian
There is a minor copy-paste typo in the Reference Manual (Section: RCC control/status register (RCC_CSR)).Currently, Bit 29 is titled: Bit 29 IWDGRSTF: Independent window watchdog reset flagIt should be: Bit 29 IWDGRSTF: Independent watchdog reset flag (without the word "window").Best regards.
Hello, Our setup uses a VL53L9-based board with an STM32N657 (NUCLEO-N657X0-Q). The sensor streams RAW8 over one data lane at 1 Gbps on VC0. We are using ST’s driver, and 54 × 42 at 100 fps works well.We would like to connect three or four sensors to the N657’s CSI-2 receiver and trigger them through SYNC_IN at staggered times, so their frames do not overlap on the link. Each frame occupies the link for about 0.24 ms of the 10 ms period.We checked the receiver’s lane-state flags between frames. The clock lane remains in high-speed mode throughout streaming, while the data lane returns to the stop state (LP-11). This suggests that the sensors keep driving both lanes, which would prevent them from sharing the same lanes without a MIPI switch or bridge.Could you please clarify the following?Clock-lane mode: Can the VL53L9CX use non-continuous clock mode and return its clock lane to LP-11 between frames? If so, which register or firmware patch enables this? Pin states: Can the MIPI clock a
Hi,I'm developing an STM32 application that utilizes mx wifi component from B-U585I-IOT02A board support package, i am trying to configure it to utilize CMSIS_OS but it fails to build out of the box then.Symptom. Setting MX_WIFI_USE_CMSIS_OS == 1 does not compile against a CMSIS-RTOS v2 environment. The component's CMSIS layer declares and uses CMSIS-RTOS v1 identifiers that do not exist in the v2 shim (cmsis_os.h here only forwards to cmsis_os2.h, osCMSIS = 0x20001U):/* mx_wifi_cmsis_os.h */#define LOCK_DECLARE(A) osMutexId A /* v2 type is osMutexId_t */#define FIFO_DECLARE(Q) osMessageQId Q /* line 187: v1 type, v2 has none */void *fifo_get(osMessageQId queue, uint32_t timeout); /* line 238 */osThreadId thread_new(const char *name, void (*thread)(void const *), ...); /* 250 *//* LOCK_INIT's osCMSIS >= 0x20000U branch still calls v1 macros: */osMutexDef(MUTEX); (A) = osMutexNew(osMutex(MUTEX)); /* osMutexDef/osMutex are v1 *
The app note AN2867 has a table of recommended crystals for the LSE oscillator (Table 7). There’s a line for Abracon ABS07 32.768kHz crystal (datasheet), and it’s recommended for the G4 family. The gmcrit = 2.1631 μA/V in the table.Section 3.4 in the app note AN2867 asks for a gain margin gm / gmcrit greater than 5. The gm for STM32G474 is 0.5 μA/V for low drive capability and 2.7 μA/V for high drive capability (table 42 in the STM32G474 datasheet).The 2.7 / 2.1631 is noticeably less than 5. At the same time, this crystal is recommended for STM32G4. How does the ABS07 32.768kHz crystal meet the gain margin recommendation? I’m asking because I’d like to understand the gain margin requirement. Best regards,Nick
Hello everyone,I'd like to know if anyone has tried setting the size of the FLASH memory in a .ld file so that the unsafe zone is larger than the safe zone, for example, by changing the size of the unsafe zone .ld file to more than half the size of the flash memory and leaving the size of the safe zone .ld file at half the size of the flash memory.
Hi I recently bought the cam-5943-081-clr with the STEVAL-CAM-M0I PCB4280D P-Board recommended in the cam-5943-081-clr databrief.I saw that the STM32MP257F-DK CSI pinout (22 pin) is compatible with the pinout of the P-Board (22 pin), and could be compatible with the STM32MP135F-DK with a 22 to 15 pins flex cable.3 driver exists concerning the VB5943 ( STSW-VD5943_N6, RPI and V4L2) for now.Would such drivers (without V4L2) be available on the STM32MP257F-DK for this camera bundle in the future ? Same question for the STM32MP135F-DK considering it embeds the STMIPID02 deserializer.
For a custom circuit with the STM32N657X0H3QVDD and VDDIOx at 1.8V VDD Core at 0.8V Internal SMPS configuration No USB and CSI Can you advise on the following:Can a single 1.8V input power supply be used? Will the power-up sequence be managed internally, as we are opting to use an internal SMPS?
I’m having an issue where I get no output when trying to do PWM with DMA using Timer 3, Channel 1 on an STM32F401RET6.I am using PB4 for my Timer 3, Channel 1 pin.Regular PWM output works perfectly on this channel and pin.But if I try and do DMA transfers, there is no PWM output (voltage stays at 0).I’ve confirmed that I can do PWM DMA on another timer, Timer 2 Channel 1; this works perfectly. But when I switch to Timer 3, Channel 1, there is no output.My timer setup:/* TIM2 init function */void MX_TIM2_Init(void){ /* USER CODE BEGIN TIM2_Init 0 */ /* USER CODE END TIM2_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; TIM_MasterConfigTypeDef sMasterConfig = {0}; TIM_OC_InitTypeDef sConfigOC = {0}; /* USER CODE BEGIN TIM2_Init 1 */ /* USER CODE END TIM2_Init 1 */ htim2.Instance = TIM2; htim2.Init.Prescaler = 0; htim2.Init.CounterMode = TIM_COUNTERMODE_UP; htim2.Init.Period = 90-1; htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim2.Init.AutoReloadPreload = TI
EnvironmentBoard: NUCLEO-C562RE MCU: STM32C562RET6 STM32CubeMX2: [your version] Project type: CMake Middleware: FreeRTOS configured through STM32CubeMX2ProblemWhen a FreeRTOS task is configured in STM32CubeMX2, the task creation code and task entry function are generated in:generated/middleware/freertos/mx_freertos_app.cThe official ST tutorial for using FreeRTOS with STM32CubeMX2 also shows application logic being implemented directly inside the generated task function:https://community.st.com/stm32-mcus-60/how-to-use-freertos-with-stm32cubemx2-161926However, after modifying the generated task function and running IDE Project Generation again, STM32CubeMX2 detects mx_freertos_app.c as an externally modified generated file and reports a conflict.The original file can be preserved as a backup when "Overwrite with backup" is selected, so the application code is not silently lost.However, this means that normal project regeneration requires conflict handling and potentially manual merging
Hi ST Community,Neither the LSM6DSV320X datasheet nor the FSM application note AN6291 clearly specifies the sampling rate at which the peak-tracking feature processes the high-g accelerometer data.Our application is focused on shock detection. We would like to operate the high-g accelerometer at its maximum ODR of 7.68 kHz to capture short-duration shock events. However, to reduce the amount of data transferred to the host MCU, we only want to store the maximum acceleration vector detected within each 100 ms measurement window (i.e., 10 peak samples per second).The sensor's FSM and integrated peak-tracking feature appear to provide all the functionality required to implement this directly within the sensor.However, the documentation does not clearly indicate whether the peak-tracking feature processes the high-g accelerometer data at: The configured FSM ODR (maximum 960 Hz), potentially missing short shock peaks between FSM processing cycles. The configured high-g accelerometer ODR (
Hello, I was wondering where the installed software packs are stored on the disk? I would like to have a look at the content and the examples, assuming e.g. the HAL pack or the Nucleo board pack contains these examples.
Similar to this post earlier this year, the same setup using the STM32N657x0-Q + STEVAL-66GYMAI1 seems to have the wrong lens shipped on the order. When streaming video, the only distance with a in-focus image is from extremely close up (<2 cm), which is not what is advertised for the STEVAL-66GYMAI1. The attached photo shows an example of the camera pointed at the dev board showing this issue. When adjusting the M12 lens focus across its full rotation range, no improvements were made.
Hello,I am currently working with the STEVAL-66GYMAI evaluation board and the VD66GY sensor in a host-managed architecture where sensor I²C accesses are initiated from the PC.While reviewing the documentation and the supplied drivers, I found what appears to be an inconsistency and would like to clarify the expected behavior.According to UM2602 - How to integrate and configure the VD56G3, VD66GY and VD16GZ devices:Section 10 (Firmware Patch) states that a firmware patch must be loaded during the READY_TO_BOOT state. Section 11 (VT Patch) states that a VT patch must be loaded during the SW_STANDBY state. However, in the current ST driver (vd6g.c) from the camera middleware, stm32-mw-camera/sensors/vd6g/vd6g.c at main · STMicroelectronics/stm32-mw-camera · GitHubthe patch-loading functions appear to be bypassed for Fast-Boot devices: case VD6G_TOP_DIE_FAST_BOOT: ret = 0; break; This behavior exists in both:VD6G_ApplyPatch()VD6G_ApplyVtPatch() My sensor report:Model ID : 0x5603D
Hello,I am designing a PCB with the VB1943 / VB5943 in the OBGA package (DS14880 / DS14968 Rev 3). The datasheets give the package drawing (0.8 mm pitch, Ø0.52 mm balls) but no recommended PCB land pattern. Could you share:the recommended pad diameter and type (SMD or NSMD) and the solder mask opening; the stencil aperture and thickness; the MSL level, bake conditions and maximum number of reflow cycles, and whether a second-side reflow with the sensor on the bottom side is allowed?I am currently assuming an NSMD pad of Ø0.40 mm with a Ø0.50 mm mask opening. Is that in line with ST’s recommendation?Two related questions on the datasheet:The Rev 3 revision history says “Ball assignment (see-through view): updated ball referencing”. What exactly changed compared with Rev 1/2, and is Table 6 of Rev 3 final? What is the nominal distance from the seating plane (ball tips) to the focusing plane, and the cover glass thickness and refractive index? Fig. 32 gives 1.02 ± 0.075, 1.84 ± 0.09 and 2
Hello,I am currently porting OpenSTLinux to a custom board based on the STM32MP255F.I successfully built all the required images, wrote them to an SD card, and attempted to boot the board. However, OP-TEE OS crashes just before U-Boot starts, with the following error:E/TC:0 0 stm32_iac_itr:192 IAC exceptions [159:128]: 0x10000000E/TC:0 0 stm32_iac_itr:197 IAC exception ID: 156E/TC:0 0 Panic at /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r3.1/core/drivers/firewall/stm32_iac.c:212 <stm32_iac_itr>As far as I understand, IAC exception ID 156 is related to RCC.I checked the corresponding OP-TEE source code (stm32_iac.c) as well as the RCC-related Device Tree definitions, but so far I have not been able to determine what is causing the IAC exception. Environment- SoC: STM32MP255F- Board: Custom board- OpenSTLinux: openstlinux-6.6-yocto-scarthgap-mpu-v26.06.10- OP-TEE: 4.0.0-stm32mp-r3.1- STM32CubeMX: V6.18.1- STM32Cube FW_MP2: V1.3.2 Device Tree backgroundThe Device Tree used for thi
I want to download the code from the demo of STM32N6570-DK that comes flashed onto the board out of the box to be able to re-flash it. On another forum it was already answered that this only comes in binary. But I have not been able to find this binary file.
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.