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
So, I was showing some friends in England how to use the Sensor TileBox Pro to measure a building, using the modified CLI_EXAMPLE program. So starting analysis, the X axis now representing gravity vector in the table, I knew I had the box sitting on its side in a slot in the column, so if I am looking at the box, I was wondering what axis system matched the box and the unit. Your data sheet showsThe whit dot is importantI think the white dot is in the bottom right hand corner, is the white dot on the board an indicator so X is parallel to the short axis of the box laying down, the Y axis is parallel to the long axis lying down and the Z axis is vertical. Please confirm, as I have no desire to take the box apart.
Hello Team,We are using Qulacomm board QCS8550 Aikri kit with LE r90 release for production, In that there is SSC driver support of LSM6DSV Our setup includes two LSM6DSVTR IMU sensors, and we are attempting to read and write sensor data over SSC using an I2C interface. The I2C bus has been configured in the JSON configuration file for the LSM6DSVTR. Use Case Requirements:Configuring both IMU sensors using the SSC driver with an I2C-based interface Using interrupt pins for data-ready signaling Specifically:INT2 must support an external pulse: Current Status:In the current driver implementation located at:source/adsp_proc/ssc_drivers/lsm6dsv From the driver code analysis, we observed that data is currently being received using a FIFO-based mechanism.Additionally, it appears that the default driver implementation supports only the INT1 interrupt, while there is no implementation observed for INT2. Problem Statement:Our requirement is to generate an INT2 pulse for every sensor data sample
Hello ST Community,I am working on a custom STM32-based board and would like to know whether STM32CubeMX provides any official feature to add our own custom board to the Board Selector, similar to ST Discovery, Nucleo, or Evaluation boards.My requirement is that when creating a new project, I should be able to select my custom board and automatically load the default settings such as MCU, pin configuration, clock settings, peripherals, and middleware from a predefined .ioc file.Is this feature officially supported by STM32CubeMX, or is the recommended method to manually create and reuse a base .ioc file for each custom board?Thank you. Vijaya
Hi,We are currently evaluating the possibility of booting an STM32N655X0-based custom board from an SD card and would appreciate some guidance before committing to this design.Current Setup MCU: STM32N655X0 Custom hardware Currently, the FSBL is downloaded directly into RAM during development. The FSBL then loads the application from external flash. We would like to migrate to SD card boot. Understanding from UM3234While reviewing UM3234 - How to Proceed with Boot ROM on STM32N6 MCUs, I found the following description (page 15):In data transfer mode, the Boot ROM searches for two FSBL images. It first looks for a GPT header at LBA1. If GPT is present, the Boot ROM uses the GPT table to locate the FSBL images. If GPT is not found, it falls back to the default locations: FSBL1: LBA 128 FSBL2: LBA 640 Our goal is to use a single SD card for both: Storing the FSBL used by Boot ROM Storing application data using FileX What We TriedOption 1: GPT PartitioningWe partitioned the SD
I need to create, read and modify files using filex. Such files have names that uses cyrillic characters set (they must be codified using unicode 16 bit). It is possible to manage such files? Thanks
Hello folks,I am investigating the Video Encoder on the STM32N6 and have been working through the reference project (VENC_SDCard_ThreadX).The user manual (RM0486) is very vague on detailing the Video Encoder, and lists over 100 pages of registers which appear to be referencing other Software Registers (VENC_SWREGx):There are approximately 500 of registers like these, and it doesn't really say much. Looking through the `asicRegisterDesc[]` structure in the Middleware has been useful to try and see what the registers are used for, but still is nowhere near the amount of detail that is needed.Any further info would be greatly appreciated.Kindest regards,
Hi everyone,I'm working on a project using the STM32F4 series with STM32CubeIDE. After the MCU wakes up from Stop mode, HAL_Delay() seems to get stuck and the program doesn't proceed as expected.I've already re-initialized SysTick after wake-up, but the issue still persists. Has anyone run into this before? Would appreciate any pointers on what might be missing in the clock/SysTick reconfiguration after Stop mode exit.Thanks in advance!
On the STM32WL55, when using LoRa and non-continuous receive mode, the RX timeout triggers immediately, i.e. the value passed to Radio.Rx is ignored. This can be demonstrated using the SubGHz_Phy example on the NUCLEO-WL55JC and setting#define USE_MODEM_LORA 1 #define USE_MODEM_FSK 0and also#define TEST_MODE RADIO_RX and modifying the call to Radio.SetRxConfig: Radio.SetRxConfig(MODEM_LORA, LORA_BANDWIDTH, LORA_SPREADING_FACTOR, LORA_CODINGRATE, 0, LORA_PREAMBLE_LENGTH, LORA_SYMBOL_TIMEOUT, LORA_FIX_LENGTH_PAYLOAD_ON, 0, true, 0, 0, LORA_IQ_INVERSION_ON, false);i.e. setting the last parameter to false such that continuous mode is disabled. The OnRxTimeout function will be called very quickly, even though the timeout is set to 2s. The red LED will flash very quickly. (No transmitter is present, just listening to "silence").Timeouts work fine on FSK RX in non-continuous mode (red LED flashes slowly).Strangely, when first setting the modem to LoRa TX and transmittin
I have used the HAL_Delay function as below, the micro is stm32g474ret6.while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, SET); HAL_GPIO_WritePin(Buzzer_GPIO_Port, Buzzer_Pin, RESET); HAL_Delay(1000); HAL_GPIO_WritePin(LED2_GPIO_Port, LED2_Pin, RESET); } /* USER CODE END 3 */}The problem is the code always struck in the HAL_Delay function with uwTick always returning 0. The systick interrupt handler is not called. Another observation if i enable the timer1 interrupt (i assume enable any interrupt) the code is reset. I generated the PWM using timer1 without interrupts. What is the problem when i enable interrupts how do i check it? Is it something to do with the Interrupt vector table.
i am using a 256K flash version of the STM32G0B1RE. part of the code is to use page 127 for various settings. when the device first starts up i set these settings at address 0x0308F800 this works perfectly. when i update a settings i erase page 127 then write the new settings. For some reason i cannot erase page 127, i am using single BANK mode, i think. when i pause to examine registers and memory i cannot see all the bits in the FLASH register. Suspect there is an issue with the svd file.i have used this technique successfully on other CPU versions so i am confident the basic code works. i think i am missing something around the 1 bank or 2 bank settings for this processor.any help appreciated. Mark
Hello ST Team,I am reproducing the STEVAL-TDR014V1 evaluation board based on the PD55008-E RF power transistor and have attached the original schematic and BOM for reference.While sourcing components, I found that several parts listed in the BOM are either obsolete, difficult to source, or have ambiguous manufacturer references. Before proceeding with the PCB assembly, I would like to verify the component selections and obtain recommended replacements where necessary.I would appreciate assistance with the following: Identification of the original manufacturer part numbers corresponding to the BOM entries. Recommended currently available replacement components for obsolete or unavailable parts. Confirmation of critical specifications that must be maintained for equivalent replacements, especially for: RF matching network capacitors RF inductors and chokes Ferrite beads RF connectors Any other components with special RF or high-frequency requirements Any upd
Hi, For a reason that I cannot explain, the STM32U575ZI (on the nucleo board) is sending a CAN bus message with infinite repeats and 100% bus utilisation, but I have repeated transmission turned off (DAR bit set to 1) and I have confirmed this using the debugger. It continues to send this message at full rate even if I pause the device in the debugger. My code is configured to send a packet with a changing ID from 0 to 4, but the repeated message always has the same ID (0x1, the first message that was queued), indicating that the message is stuck in the TX FIFO. FDCAN_TXBRP is always 0x1. Interrupts for the FDCAN peripheral are not enabled. I have the following code as my main loop: if (HAL_FDCAN_Start(&hfdcan1) != HAL_OK) { Error_Handler(); } FDCAN_TxHeaderTypeDef header; header.Identifier = 0; while (1) { const uint8_t tx_data[] = {0x01, 0x23, 0x45}; while (HAL_FDCAN_GetTxFifoFreeLevel(&hfdcan1) != 3) { HAL_Delay(1); } header.Identifier = (header.Iden
I have a laser engraver that runs on an ESP32 S2 Mini microcontroller. It has the following signature: “Espressif CDC Device” and emulates a COM-type serial port. I had two identical cables; if I connect my engraver to my PC via a serial program (NinjaTerm), I can control GRBL. I cut one of these cables, and they have four wires: VBUS, D+, D-, and GND. After crimping some connectors onto the ends of the wires and testing the cable connected to the port to distinguish between my D+ and D-, Now I’d like to put an STM32F411 (WeAct BlackPill v3.0) between my engraver and my PC to control my homemade Z-axis. The PC side is on a UART port of the STM32 connected to a CH340, and on the engraver side, a USB (D+/D-) CDC Host (Note: I’m not using the USB-C connector already soldered onto the BlackPill). The UART programming side worked perfectly. Where it’s getting stuck is on the CDC side… no response… #include <stdio.h>#include <string.h>#include <stdarg.h>#include "usbh_cdc
I am testing STM32H755 MPU using the nucleo-144 (STM32H755ZI).I used the STM32CubeMX tool to automatically generate a basic FreeRTOS example and added an ledTask to toggle an LED. void ledTaskProc(void *argument){ /* USER CODE BEGIN ledTaskProc */ /* Infinite loop */ for(;;) { if (BspButtonState == BUTTON_PRESSED) { /* Update button state */ BspButtonState = BUTTON_RELEASED; /* -- Sample board code to toggle leds ---- */ if ( 0 == led_select ) BSP_LED_Toggle(LED_GREEN); else if ( 1 == led_select ) BSP_LED_Toggle(LED_YELLOW); else BSP_LED_Toggle(LED_RED); led_select++; if ( led_select >= LED_NUM ) led_select = 0; /* ..... Perform your action ..... */ } else osDelay(10); } /* USER CODE END ledTaskProc */}The operation proceeds without any issues.However, as shown in the image, if I set a breakpoint, I see many nested pxPortInitialiseStack() calls in the call stack.What kind of error could this be? This is not typically seen; i
As an embedded developer, I already have CMake, Ninja, and the GNU Arm Embedded Toolchain installed and properly configured in my system PATH. These are standard development tools that many of us manage ourselves.What frustrates me is that the STM32 VS Code extension seems to completely ignore the existing environment and immediately downloads its own copies of CMake, Ninja, and arm-none-eabi-gcc.Why?Why not first check whether compatible versions already exist on the system? If they do, use them. If they don't, then offer to download them. That seems like a much more reasonable approach.The current behavior feels like this: Ignore the system environment Ignore tools already installed by the user Download another copy of everything anyway The result is duplicated toolchains, wasted disk space, and less control over the development environment.I understand that bundling dependencies may simplify onboarding for beginners, but experienced developers should have the option to use their
I am working with the STM32H7S3L8 MCU and using Zephyr RTOS for development. Currently, I see that Zephyr supports USB FS but does not seem to support USB HS for this MCU. Are there plans to add this support in future Zephyr releases? Any guidance or workarounds for enabling USB HS in Zephyr would be greatly appreciated. Thank you!
Bytewide DMA to a port: RAM to PD8-PD15, with a timer PWM used to generate /WR signal.I wonder if this will work. Some of it is a grey area. This is for loading a buffer into a ST7789 LCD controller, 66ns shortest cycle time.TIM1 and DMA1 are already used in my project.Digging around, it looks like TIM8 -> DMA2 should work, and a byte write to ODR+1 should land in ODR[15:8] and drive PD8-PD15.It also looks like PC6-8 can be used for the PWM output to produce the /WR. The timer overflow loads the next byte, so you have to load the 1st byte manually.There are some gotchas with spurious TIM behaviour. People found that with TIM8_UP, when you enable the timer, if the UGEN (update generation) bit or the initial configuration causes an immediate update event, you can get a spurious first trigger. You may have to set the UDIS bit or clear the update flag carefully, or use the ARPE/preload setup so the first genuine overflow is the first DMA trigger. One methid is after configuring TIM8 but
Hello @B.Montanari I am working with the STM32N6570-DK board and facing an issue while configuring LTDC in a dual-project (FSBL + Application) setup. As an initial step, I tested the "LTDC_Horizontal_Mirroring" example provided for STM32N6. This example is built as an FSBL-only project, and after building and flashing it, the display works correctly as expected. However, my final goal is to use LVGL for GUI development. Since I need more memory space for image storage and application resources, I created two separate projects: FSBL project – responsible for boot and low-level initialization Application project – intended to handle LTDC and GUI (LVGL) In my setup: The device boots successfully. FSBL execution appears correct. Control jumps to the Application project. LTDC peripheral configuration in the Application project is replicated from the working example. RIF configuration is performed in the FSBL project. Despite this, the display remains gray after
Hello ST Community,I am using the NanoEdge AI Studio to generate an anomaly detection library for an STM32L4 device (fixed installation, vibration monitoring). The library works fine, but I need to persist the knowledge learned during runtime so that after a power cycle or reboot, the device does not have to learn again from scratch.I followed the official documentation and community advice (including the solution marked as accepted in [this thread](https://community.st.com/t5/edge-ai/is-there-any-way-to-save-or-export-knowledge-which/td-p/123456)):- Added the `.neai` section in my linker script with `KEEP(*(.neai))`- Declared `extern char _sneai_knowledge[];` and `extern char _eneai_knowledge[];`- Computed `NEAI_KNOWLEDGE_SIZE = (uint32_t)_eneai_knowledge - (uint32_t)_sneai_knowledge;`- Implemented functions to save this RAM section to internal Flash and restore it on boot.However, `NEAI_KNOWLEDGE_SIZE` is **0** and the `.map` file shows that the `.neai` section is empty:```.neai 0x20
Hello, MCU : STM32C011J4-SO8NBoard : Custom I am working on a Teleruptor and one of the feature is to control relay based on zero crossing due to relay latency.My test code is simple: while(1){ if(HAL_GPIO_ReadPin(ZERO_CROSSING_GPIO_Port, ZERO_CROSSING_Pin) == GPIO_PIN_SET) { RELAY_CTRL_GPIO_Port->BSRR = RELAY_CTRL_Pin; } else { RELAY_CTRL_GPIO_Port->BRR = RELAY_CTRL_Pin; }}I run my system at 3Mhz (Consumption matter) and I see a big clock jitter of (8-10us). Please see image below.Normally, this shouldn’t take more than 1-2us.I tried using EXTI but got the same issue.I tried to run system at 12Mhz and issue is resolved but I can’t. Question:Is this behavior normal at this speed?Is there any way I can reduce the jitter? Thanks,Ayoub
Good morning everyone,If I explicitly set an array to a custom memory section, STM32CubeIDE for VSCode is unable to start a debug session, showing a an error popup with text: “bound doStepLoadImages Failed: Load failed”. I am using a NUCLEO-N657X0-Q board.This happens even if the section is linked to to the same memory region (and physical bank) where the the array would end up if left unspecified (linker script attached below).Example code:uint8_t img_buff[PICTURE_BUFFER_SIZE] __ALIGNED(16) __section(".image1");Examining the .map file, img_buff ends up at address 0x34006940, which is, correctly, in AXISRAM1. In this condition, debug doesn’t work.If I remove the __section(".image1") part, the array is assigned (as expected) to section .bss.img_buff, ending up at address 0x340026b0, which is still in AXISRAM1, similarly to the other condition. Debug works as normal.The same issue arises if I place the array in AXISRAM2 (by assigning it to section .axisram2, cfr. linker script below). I
I posted something the other day; that thread is still open, and I'll close it once I have a solution. I think this information must be out there somewhere because right now it's very limited. Here is the thread: CDC HOSTAs I said, I have no problem with the development boards, but your reasoning means that I might still end up with the same problem in the end. Let me explain. We have 3 chips of the same model but in different packages. This means that the 3 chips have the same functions but a different number of ports.STM32F411CEU6 (UFQFPN48) / Dev Board: Weact Blackpill. (unofficial) (BlackPill Schematic)STM32F411RET6 (LQFP 64) / Dev Board: Nucleo-F411RE (Nucleo F411 Schematic)STM32F411VET6 (LQFP 100) / Dev Board: F411-Disco (Disco F411 Schematic)First, I should start by saying that tutorials for HOST/CDC mode are very rare. Usually, the code generated by CubeMX is reliable, and in this case, I was able to test the DEVICE/CDC part wit
Hi,I am creating an External QSPI Loader for STM32U5G7VJTx with MT25QL128A flash.* QSPI driver is implemented and tested successfully in a standalone STM32 project.* Read, Write, and Erase operations are working correctly.* For the External Loader project, I used the loader template files (Dev_Inf.c, Dev_Inf.h, linker script, etc.) and integrated my QSPI driver.* The loader builds successfully and generates the .stldr file without errors.However, when I load the external loader in STM32CubeProgrammer and try to program a .bin file to the external flash, I get the error: "Failed to download file".What additional changes are required after completing the QSPI driver coding step? Are there any common issues related to Init(), Write(), SectorErase(), linker configuration, or Dev_Inf settings that could cause this error?Any guidance would be appreciated.
Hi,We recently bought a STM32H757I-Eval board and played around with it. This did overwrite the demo program it came with so I downloaded the stm32h757i-eval_demo.zip package to restore the demo.I used STMCubeProgrammer for this, did a full chip erase and pointed it at the hex demo file. The programming failed with Error : failed to download Sector[0]I tried the other hex demo files in the with the same result and on two different laptops and the latest CubeProgrammer.The weird thing is that when I power the board the demo seems to work as when new so I don’t know if only part of it is working. It could even have arrived in this condition.Anyone else have this problem? and perhaps a fix?I did try to compile one of the examples from the x-cube-azrtos-h7-v3-5-0.zip package to see if the generated hex would program ok.After a few issues I loaded the program with CubeIDE in debug mode and found the code would enter an infinite loop: while ((PWR-
Hello.I have project for STM32U575 created in CubeIDE just before new release of separate CubeIDE and CubeMX.I imported it into the new version of CubeIDE (2.1.1, it asked whether to “renew” project, and I clicked "yes").Both then and now, the project has this warnings:I didn't pay attention to it earlier because the project was working, but now I see that there are more and more strange problems in it. Could it be because of that?What could cause such warnings? This part of code is not mine, but generated by CubeMX.I didn’t have this warnings on another project for STM32H7.HAL code looks very similar for H7 and U5:H7:U5:But only the one for U5 generating warnings.
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.