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 everyone,I am bringing up a custom motor control inverter board based on the STEVAL-TTM001V1 evaluation kit. I am using StellarStudio, OpenOCD, and the Stellar Motor Control Tool Kit (MCTK with StellarESDK-1.7.0).The Problem: My firmware runs perfectly when launched via a Debug session in StellarStudio. I can step through the code, initialize peripherals, and hit my main loop. However, if I disconnect the debugger and power-cycle the board (or press the physical Reset button), the application completely fails to start.What I have verified so far: Flash Linking: My linker script is correctly pointing to Flash (core1_nvm at 0x08000000). OpenOCD successfully flashes and reports ** Verified OK **. The Trap Location: If I power-cycle the board, let it fail, and then hot-attach the debugger without resetting, I find the PC is trapped in an infinite assembly loop. No Hardware Faults: While trapped in this loop, I checked the CFSR register (0xE000ED28), and it reads 0x00000000. This
Hi ST,I’ve run into a whole lot of issues adding interrupt-based UART to your OEMiRoT w/ Trustzone example on a NUCLEO-U385RG-Q.As you may know this example is not compatible with CubeMX, and it’s not clear which steps are needed to manually incorporate UART4 so that it activates an interrupt on receipt of input when running in the Non-Secure region of code. The idea is to only access the Secure region when needing to utilise certain sensitive variables, called from within a Non-Secure function.Let’s take this opportunity to establish a step-by-step guide for someone who isn’t (yet) an embedded professional, please excuse my ignorance if this already exists, I’d be just as happy to be directed there. My settings so far are:1. Secure/Inc/partition_stm32u385xx.h: Initialise UART4_IRQn as Non-Secure#define NVIC_INIT_ITNS2 1#define NVIC_INIT_ITNS2_VAL 0x000000012. Secure/Src/main.c: Define UART4 pins (CN7 1 & 2, or PC10 & 11) as NonSecureHAL_GPIO_ConfigPinAttributes(GPIOC,
hiIm using the STM32G474RETx for my project.I connected some timers for it but most of them warent generated on my main.c file (TIMER1, TIMER8 and TIMER16 were generated there), but TIM2,TIM5, TIM20 warent generated although i initiated them on the cube file.In addition, the compile button is disabled.Can someone help me with it please.Attached is my cube file.
Context : I want to write a FSBL load and run application on a custom minimal PCB based on STM32N6-DK design. The board uses SMPS power supply and not the default power supply of the STM32N6-DK. I follow this original tutorial as a main example. Problem faced: CubeProgrammer SigningTool version compatibility and header size 1) Write a custom external bootloader to write and read external flash memoryModify the power supply parameter (System Core --> RCC --> SupplySource) in CubeMX to `PWR_SMPS_SUPPLY`Generate ExtMemLoader template from CubeMX Build ExtMemLoader to generate .stldr filemake sure the post build script can be executedmanually copy the .stldr file generated in `/STM32CubeProgrammer.app/Contents/Resources/bin/ExternalLoader/` if necessary 2) Modify SigningTool header generation command in FSBL post-build Build FSBL & Application following the original tutorialCheck heading size, it might be different from the 0x400 that is defin
Hi,I have a firmware running on an STM32H753 that was working correctly. After updating the STM32H7xx_HAL_Driver (by performing the migration in STM32CubeMX), the MCU gets stuck during the execution of SystemClock_Config().While debugging, I noticed that before the migration CubeMX generated:HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2)After the migration, the same function is generated as:HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0)If I manually change it back to:HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2)the MCU works correctly again. However, every time I regenerate the code from CubeMX, it goes back to FLASH_LATENCY_0.I have already tried changing the PLL and clock parameters in the Clock Configuration tab of CubeMX and then restoring the original values, to check whether CubeMX was not correctly updating the clock tree calculation, but the generated code still contains FLASH_LATENCY_0. Is this a bug introduced in the new HAL driver/C
I am using a STM32G071CB MCU on a device that connects to a battery that supports USB PD and I would like to get a battery status periodically. Code generated by STM32CubeMX that includes trace and GUI code works as expected when using STM32CubeMonitor-UCPD. However, the return path of a battery status reply message does not go through usbpd_dpm_user.c, but through GUI code instead. I would like my application to use usbpd_dpm_user.c as the interface using STM32Cube_FW_G0_V1.6.3, but information on how to do that is incomplete and examples are outdated. There seems to be more required than just selecting appropriate usbpd PE options and adding code to USBPD_DPM_SetDataInfo().Currently, USBPD_DPM_RequestGetBatteryStatus() returns USBPD_ERROR, but a request is send to the battery anyway. However, the battery status reply message does not trigger a call to USBPD_DPM_SetDataInfo() or USBPD_DPM_ExtendedMessageReceived(). What am I missing? Is there any documentation other than usbpd basics?
Dear STM Support Team,the following CLI command takes about 30 seconds on a Raspberry Pi (thanks again btw!) compared to 1 second max on windows: STM32_Programmer_CLI -c port=swd sn=xyz I am using this in a loop to detect whether a MCU is connected.All other commands i tried are comparable in speed to windows so i guess this is a bug.The Pi is a Model 5 running Bookworm and a 6.12 kernel. Thank you very much!
Hi there, Is there a drop in replacment for the IS42S32800G-6BLI (besides the obselete MT48LC4M32B2B5)? Or one that is recommended with the STM32H757?
I want to use the example project Ux_Device_CDC_ACM.ioc as the basis of a project to create a Virtual COM Port to bridge USB to UART. I made sure I downloaded the patch version stm32cubec0-v1-4-1. I opened the project in CubeMX. I corrected the USBX Platform Settings to USB, then went straight to generate code for IAR EWarm, as I usually do. Again, as usual, I began by trying to compile the generated project, which has always worked for me before. But I get Ux_Device_CDC_ACM - Ux_Device_CDC_ACM build_ide.ninja:118: multiple rules generate C:/Users/garyd/Downloads/stm32cubec0-v1-4-1/STM32Cube_FW_C0_V1.4.0/Projects/NUCLEO-C071RB/Applications/USBX/Ux_Device_CDC_ACM/EWARM/Ux_Device_CDC_ACM/Obj/STM32C0xx_HAL_Driver_13552679092417003011.dir/stm32c0xx_hal.o Any ideas?
I have taken one dot board a placed the MCU (TSSOP14) STM32L021D4P7 wired with STLINK V2 programmer , Boot0 pin to pull up and pull down option with jumper wire , NRST pin also same pull up 10kohm and jumper wire to pull down to ground. In STM32 CUBE programmer latest version i am using STM32CubeProgrammer 2.23.0 , chip is only detecting if under hot plug mode , under reset mode it not working , its first time from factory its programming through SWDIO /SWCLK VCC and VSS . After detecting the hex file if a loaded its showing internal memory [0 45] failed to erase, so RDP - i kept to AA it in STMcube programmer after that if i click file for programming in GUI its crashing the tool. Kindly give help to program this IC.
I'm trying to use USB SOF for CRS, but CubeMX2 throws an error asking me to enable USB Host. USB SOF for CRS is meant to be used with USB device.
I have my application running properly on my custom board based on STM32C091RCT6 MCU. I developed my application with STM32CubeMX v6.18.0 and STM32C0 Firmware Package v1.4.0 and I use X-CUBE-FREERTOS.1.6.0 (FreeRTOS 11.2.0 and CMSIS-RTOS 2.1.3).Now I need to modify my IOC project. STM32CubeMX notified me for upgrade to the new release 6.18.1 and STM32C0 Firmware Package v1.4.1. So I install the updates and then I let STM32CubeMX migrate my IOC project. I generate the new upgraded application project and build without any errors.But my application crashes when it starts to run. With the debugger I see an unexpected interrupt is generated as osKernelInitialize() is called; my application falls into Default_Handler().Is X-CUBE-FREERTOS.1.6.0 maybe not compatible with STM32C0 Firmware Package v1.4.1?With the upgrade only some of the files in my “Drivers” folder were changed as well as my IOC and .cproject files.
I attempted to create a new Motor Control Workbench project selecting Controller B-G473E-Zest1S and EVLDRIVE102BP. This combo pops up error window preventing project creation… Errors BusInterfaceConnect: SPI_FullDuplex_SWnSS No IP matches all signals requirement General: Interface STDrive102Interface not found in BusInterfaceArray General: Interface STDrive102Interface not found in BusInterfaceArrayI had previously used the EVLDRIVE102BP connected to P-Nucleo-IHM-03 with no trouble. Now I wish to upgrade my design with G473 or G474 to handle HSO or future ZEST.What’s my best course of action to fix that error and get the board combo working?Alternatively I could base my design on the standard ZEST Kit with STEVAL-LVL01A and upgrade the MOSFETs for higher current.Please advise...
Hi,I am in the middle of migrating a project from STM32F767 to STM32H743. Both MCUs being compatible helped a lot.But there have been still a few road blocks, the last of which seems to be SPI. We use SPI3 to interface with a RA8875 based LCD. With DMA, we were able to get good results on F767, but so far not so much on H743. After connecting MOSI/MISO/CLK/CS lines to a logic analyzer, I noticed there both MOSI and CLK lines idle about the half of the time. Please see the screenshot below. During a supposedly active session of data transmission, either through DMA, or blocking write, there are several gaps. The measured during of those gaps are about either 5ms or 6ms.My question is: when would a SPI instance go into idle state? waiting for TX data to be ready (related to the famous D-cache issue on H7)? Please advise. Thanks in advance.ZL
I am running into a frustrating issue while trying to debug my project. Whenever I start a debugging session, the debugger fails to hit or start from the main () function. I have already double-checked and configured the settings under Tools > Options > Debugger [adjust path if necessary], but the issue persists. Because of this, it's extremely difficult to step through the code and understand the execution flow from the beginning. Environment Details IDE / Version: IAR EW 9.20.2 Language: C/C++ touch GFX framework is there Operating System: Windows STM32H750IBTx What I've Tried Checked and re-configured the debugger paths under Tools > Options > Debugger. Cleaned and rebuilt the solution/project. Kept breakpoint one the very first line of code after main () Error Message / Behavior The execution does not stop in main () entirely or throws a symbol loading error.
Hi,In my project with STM32N6 am not using CSI interface, so in this case, all CSI pins are not connected.But what about CSI output CSI_REXT where according to the manual must be connected 200 Ohm resistor to GND?Can I keep this pin unconncted too? In the manual there is only information that resistor is for setting current for RX/TX driver. Similar situation is in USB interfaces, but in STM32N6 Nucleo-144 development board is one of the USB completly unconnected (including OTG2_TXRTUNE pin with similar function like CSI_REXT pin). Which I take as an aswer in case of USB.I dont know what is diferences in internal structure between RX/TX driver in USB and CSI, but i case of USB in my project (USB is not used too) i wil keep every pins unconnected. But can I afford it in case of CSI? Thanks a lot.Rddk.
After generating a CMAKE project using STM32CubeMX2 v1.1.1 followed by setting compiler options to “treat warnings as errors” (-Werror) and enable strict standards-conformance (-Wpedantic) in the root CMakeLists.txt file, I am errors in, mx_def.h. Though this post shows the workaround:What is the recommended C Standard that STM32C5 project should follow? If the generated code stated “gnu11” but yet uses “gnu23”, shouldn’t the generator use the latter instead (see solution)? And, what are the dangers of doing so? Error Message:error: ISO C restricts enumerator values to range of 'int' before C23 Full Error message:[build] C:/PathTo/ProjectName/source/App/generated/hal/mx_def.h:32:38: error: ISO C restricts enumerator values to range of 'int' before C23 [-Werror=pedantic][build] 32 | SYSTEM_OK = 0xEAEAEAEAU, /* System initialization successfully */[build] | ^~~~~~~~~~~[build] C:/PathTo/ProjectName/source
Hello,On an STM32H725, changing RDP from Level 0 to Level 1 causes the firmware to stop running. In my device, the LED and FDCAN stop responding, even without a debugger connected. During debug session, this occurs in “HAL_FLASH_OB_Launch()”, more specifically after “SET_BIT(FLASH->OPTCR, FLASH_OPTCR_OPTSTART);”. After a manual power cycle, the firmware runs normally and RDP Level 1 is successfully applied.Is this expected behavior? Is a reset required after changing RDP from Level 0 to Level 1,Thanks!
Dear community, I’m sharing an application that has been highly requested recently: a demo running TouchGFX on the STM32N6570-DK with a camera module.Please note that this demo is NOT yet finalized. We plan to significantly enhance it over the coming weeks, and once it is ready, it will be directly available in TouchGFX Designer as a board-specific demo (under the Demo tab).In the meantime, since there has been strong demand, here is an early draft that you can already use and draw inspiration from.Another note, we’ll provide only limited support for any questions about this draft, as we are aware of the application’s limitations and are working on a much better version. Again, this demo is not final and does not reflect the quality of an official demo.The project works with TouchGFX 4.25.0 and with STM32CubeIDE. We advise NOT to regenerate code from STM32CubeMX (because there is a limitation here). You can use the flashing scripts provided in the project to flash your board.
Hi ,I'm developing a product on an STM32N6 using TouchGFX. I need to display the image coming from the camera input on the product on the TouchGFX. During our tests, we were able to directly print the image from the DCMI input to the screen and it worked. However, we need an example that takes this image and displays it on the TouchGFX. The AI example prepared for the N6 actually includes this type of work, but the code is not accessible. Could you please share the relevant project or the relevant part so I can integrate it into my project, or could you provide an example project for this?
Hello ST Team,I am working with the STM32N6570-DK board and trying to display the live camera feed on a TouchGFX application.I cannot find any ready-to-use example that integrates DCMIPP (Camera) and TouchGFX.Current Situation:TouchGFX Designer: I have created a UI with a transparent area in the center (Alpha = 0) to display the camera feed. (Please see the attached screenshot).Cube IDE Firmware: I found the DCMIPP_ContinuousMode example and confirmed that it works fine independently. However, merging it into a TouchGFX project manually is quite difficult for me.My Question:Is there a simple, official example or Application Note demonstrating Camera Preview (maybe on Layer 0) + TouchGFX UI (maybe on Layer 1) for the STM32N6570-DK?Since I am new to the STM32N6 series, a detailed, step-by-step explanation would be very helpful.I would appreciate a quick guide or a GitHub link.Thanks.
Table 73 of STM32WL33xx Datasheet indicates an “A” option for Frequency band options (398-464 MHz). I cannot find this variant in stock anywhere. How/when can I purchase this? Will there be a breakout/demo/nucleo board for this “A” version? Thank you.
Hello dear ST Community,I am not sure I can get help here as this topic is related to a WeAct Studio STM32F412 board and not a Nucleo or Discovery board from ST. If not that is fine , no problem.So, back to my issue : For this particular type of project, in the past we used STM32F411 boards but this time we had to change to a board with more RAM's ...The rest of the code in the MCU works as expected.When we connect the USB cable to PC in the Device Manager we get this error :"Unknown USB Device ( Device descriptor Request failed )"We using CubeMX and STM32Cube in VSCodeIn CubeMX I setup now just the basic USB_OTG_FS : Device onlyMiddleware : USB Device as Human Interface device class (HID)** We can share code or ioc file if needed …What I did :- USB Clock is set 48MHz- I tried HSI and HSE for the clock - there is said for the USB to work it requires HSE- I changed the USB cable- I revert to just basic HID and the default report ( but anyway Windows didn’t asked for it yet … )Could you
Dear ST Support Team,I am an embedded systems engineer currently designing a custom PCB around the STM32MP257F microprocessor for a product application (a camera-based embedded system). I am using the STM32MP257F-EV1 evaluation board as our reference design for both hardware and software bring-up.We are now finalizing our own DDR memory design and are running into difficulty sourcing a DDR part that is confirmed compatible with the STM32MP257F. We understand the EV1 reference design uses two 16-Gbit DDR4 DRAMs (16-bit wide, populated for a 32-bit total bus), and that the STM32MP257 DDR controller supports DDR3L up to 2133, DDR4 up to 2400, and LPDDR4 up to 2400, in 16-bit or 32-bit configurations. However, when we check current market availability, we are not able to find DDR parts that are clearly qualified or validated against the STM32MP257F DDR controller, and we want to avoid selecting a part that causes signal integrity, timing, or DDR-training issues on our own layout.Could you
Hi ST,I am working on STM32MP257 platform and I have read some of the previous topic and thread, seems that web multimedia is somewhat supported now by using Qt at its minimalist setting. But the previous claim of “ST is working on enabling chromium/ web browser, and expected to have it out by late 2025” hasn’t really got any update.Can we know if we really have a definitive answer or status update or is there any example or demo?
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.