Get ready for the STM32 Summit 2026 | Online, November 3
Ask questions and find answers on STM32 microprocessors software development tools.
Most recent activity
I have set up the device, 5V 3A wall PSU and connected to the USB stlink connection. Connecting to the onboard stlink I can recognize the board serial number but the programmer fails to recognize the device. What am I missing? The device works perfectly in stand alone mode. As it would not identify the device I upgraded the firmware to V2J37M26 to see if that would correct it. This was the output in the programmer if it helps. 12:26:58 : ST-LINK SN : 0669FF333536414257062332 12:26:58 : ST-LINK FW : V2J37M26 12:26:58 : Board : -- 12:26:58 : Voltage : 3.27V 12:26:58 : SWD freq : 4000 KHz 12:26:58 : Connect mode: Normal 12:26:58 : Reset mode : Hardware reset 12:26:58 : Error: Cannot identify the device
Hi,I'm trying to create a debug configuration in STM32CubeIDE to debug Linux Kernel but I can't find any related article about the issue. I want to use gdb with ST-LINK (OpenOCD) as JTAG device to debug the Kernel that I have already compiled.Any suggestion?
Hi ,I am trying to follow the tutorial which is here : https://www.youtube.com/watch?list=PLnMKNibPkDnFeV4sBarnsAtFTg7h6V-9_&v=XhB0rGLjl_Q&feature=youtu.beThis is one of the workshop which i am trying to recreate. At 11:50 , the commands are listed to generate the dtb file from dts file. But when i try to follow it , it is not working and unable to generate dtb file from dts file.I have OpenSTLinux dunfell 5.10.10 flashed on the STM32MPU.I also tried folllowing this tutorial but this also does not seem to work on latest version : https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Developer_PackageAny leads will be appreciated how to achieve it as in latest SDK it is not working.
I try to use the STM32MP1 in engeneering boot mode to develop the co-processor's firmware. Unfortunately the code generation is not complete, meaning initialization for all GPIO pins (exept MCO Pins) are missing. Is it possible to activate the code generation for the GPIO pins which are used only by the M4 co-processor? Thanks an best regards
Hello,I'm trying to develop an application that use an STM32MP1 Series (STM32MP157A-DK1 for the moment)My application need inter-processor communication between the A7 and M4 CoresI had generated my project with STM32CubeMX and the project is successfully created for the M4 core with a ready to use main.cppI then followed the wiki page How to manage OpenSTLinux project in STM32CubeIDE and compiled the Generated .dts files to a .dtb file and uploaded it on my board. (with a u-boot project)The new configuration works well on the board (my newly updated I2C port is now well recognized on CA7 so the configuration update worked) but when i'm trying to launch the CM4 project from STM32CubeIDE it fails with an error popup saying: "Failed to insert all hardware breakpoints: you have requested too many hardware breakpoints/Watchpoints" (even if i have only one!) and the followings console message:Info : Ne
Custom board STM32MP15AABMX Cube version 6.2.1I just switched from v2 of the Distribution ecosystem to v3. After updating MX Cube to work with the latest and re configuring the kernel and device tree files I'm running into the listed issue.I am able to build and deploy everything to emmc and initially boot the kernel to a command prompt. Upon the next reboot, The system fails to boot to a command prompt and the otg peripheral complains about dwc2 49000000.usb-otg: Overcurrent change detected.Any ideas why, or tips for debugging?
I want to use the STM32CubeIDE to debug the M4 on the STM32MP1.I setup the debug setting for debug probe ST-Link (OpenOCD). If I use the automated generation of the script, it refer to [find target/stm32mp1x.cfg].This is not part of the default installation of STM32CubeIDE 1.6.1 and it is not located in https://github.com/STMicroelectronics/OpenOCD/tree/openocd-cubeide-r3/tcl/targetIn general it doesn't seems to be the MP1 openocd files for the MP1 within the windows installation.
I work on Windows and use the STM32CubeIDE 1.6.1. I want to program and debug the M4 part, On the A7 part Linux is working.My current state is, that The A7 is in Bootloader mode and the DFU per USB is connected and shown in Windows (Gerätemanager) as USB device. There is no serial port.In the debug settings STM32CubeIDE require a serial port.With STM32CubeProgrammer USB1 connects and seems to workAt the end of the day I want to create and debug a M4 program.ThxSteffen.
I've tried using WSLg into windows 10 to start a project using the STM32cubeide but it fails. The ide is launched but those not automaticaly download stuff, but manualy do. If click new project, target selector animation goes and then I have this message "STM32 target or STM32Cube example selection is required". So can't select mpu. etc...What is the simplest way to start dev :full linux machinevirtual machineWSLg /w10 should workThx for any help.
When you create a project, CORE_CM4 symbol is added to properties by default.However, if you look at stm32mp1xx_hal_rcc.h, the CORE_CM4 area is still disabled. Is it a bug? Can I ignore it and use it? Or please tell me how to solve it.
Is there any reason why M4 is reset multiple times when entering debug mode in STM32CubeIDE? Is this normal?For example, in the case of an application that toggles GPIO, GPIO defaults to low while entering debug mode, then toggles, then goes low and toggles again. When entering debug mode completely, GPIO stays low and then toggles. (Original operation)It doesn't matter whether it completely enters debug mode and works, but it seems that m4 is reset several times while entering debug mode. I want to know why and is this normal?
I don't know What Can I Do.Please Help Me. Can you share the information or guide StmCubeMX and StmCubeIDe Programing
Is it possible to use the CubeIDE on OSX for debugging firmware for STM32MP1?The interface is lacking some features and the debugging configuration is completely different.Also I can't manage to make it work.Here is what shows up when I launch Debug Configurations:
Good afternoon. Using CubeMX, I created an empty project for the STM32MP157A-DK1 board. It compiles without errors. But when I try to start debugging in engineering mode, I get a message that there are too many breakpoints. When I try to start debugging in production mode, I have no connection between the board and the debugger. Where did I go wrong? Sincerely, Alexander.
Hello everyone, I'm configuring my STM32MP157C-DK2 Board pins and i want to make two SD Card partitions availabe. For the first one i chose the SDMMC1 and attributed it to PC10 pin for the second one do i need to choose SDMMC2 and to attribute it to another pin (for ex. PC6) or is it wrong ? Or can i divide later in the device tree ?
I am able to build my STM32MP1 Linux project. Below you can see what is built:I have been trying to follow the guide on the STM32 wiki here: https://wiki.st.com/stm32mpu/wiki/How_to_manage_OpenSTLinux_project_in_STM32CubeIDE#Linux_projectThe issue is that there is information that is completely missing from the getting started guide is that when I try to do this step: Run As->STM32 Cortex-A Linux Deployment I get the following screen. Right away this is different from the guide and has an error message that says: Connection "" not available at the top.Other guides on the wiki mention that the Target Status should be online. Mine is stuck offline and I don't see any indication on how to set that up either.I currently have 3 USB connections to the STM32MP1 Discovery board. One USB C to a power supply, One USB C, and a micro USB to my PC.
I try to configure the pins of the MDIOS controler of the STM32MP157C in STM32CubeMX version 6.2.1 . The datasheet states, for pin PA10 -ALT11 the function MDIOS_MDIO. But I cannot select this function for PA10. I also cannot find MDIOS in the devices column.Is MDIOS not supported by CubeMX or did I make something wrong?
Hello,I'm trying the NAND boot on our STM32MP157AAB3 custom board but until today I could't make the ROM code load the tf-a image from this memory.I'm yet able to boot from uSD (SDMMC1), eMMC (SDMMC2) and serial NOR (QUADSPI). For uSD I partitioned the device as described in wiki, for eMMC the only way I found to make the ROM code able to load the image is programming it via STM32CubeProgrammer (same procedure of uSD won't work), for NOR I wrote it from u-boot with sf commands.Our board is equipped with Winbond W29N08GVSIAA parallel NAND, connected to the FMC default pins as stated in wiki. The NAND datasheet report all the ONFI parameters requested by the ROM code, none of the OTP is blown. I'm building tf-a, u-boot and linux kernel from the ST repos aligned to STM32MP15-ecosystem-v2.1.0 release, the dts are created starting from STM32CubeMX output with USER CODE added according to wiki.When I boot from another device, in u-boot I'm able to detect, write and read the NAND device. Writ
Hi,I just upgraded my STM32CubeProgrammer to 2.7 and now getting error that can't find tf-a-stm32mp157c-dk2-serialboot.stm32.I tried this on three other images that have worked in past, get same error.tf-a-stm32mp157c-dk2-serialboot.stm32 is not found on file system for any of these images.Specifics:target: stm32mp157c-dk2host: Windows 10Images built on WSL.Unfortunately I deleted 2.4 before installing 2.7, also tried 2.6, 2.5 and get same problem.Have any suggestions ?
Burning STM32MP1 via USB DFU works fine. When I try to burn via USART I stick with errors:GetPhase command not acknowledged after 3 retriesParition 0xbb not found in TSV FileFlash layout is the same in both cases (attached). Is it possible to burn STM32MP1 from anything else than USB DFU (USART or JTAG/SWD) ?
I've been using the Windows version of STM32CubeIDE for a while but had to switch to the Linux version to work with the STM32MP157A chip (since it has an MPU to work with). I am currently working with V1.6.0 on Debian. Currently, I'm trying to organize it a bit so it's a bit more usable but I'm having trouble resizing any of the windows. It doesn't seem to allow me to make changes to, say, the divider between the project explorer and the code window. it just feels like everything is locked into place. If I detach and try and drag it to one side, it doesn't appear to "dock" correctly and, instead, just blocks other windows. Maybe this is just because Linux doesn't work well with the interface and there's nothing that can be done but I wanted to check and see if there's a way to resize windows so it's usable. It's kind of a mess to work with right now. Any help you can give me would be greatly appreciated. Thanks!
I noticed that even if I create a new project using STM32CubeMX IDE for STM32MP157F-EV1 board, in the clock configuration, the MPUSS_CK is 650MHz. In Linux, I can see the CPU frequency is 650MHz only. How can I clock the CPU to 800MHz as supported by the SoC?
I use CubeMx creating stm32mp157 device tree. After the 2nd create , the path "CA7->DeviceTree->[My board]->u-boot" always has a file named "<My board>.dts.bak" . modified the Device Tree code in kernel (USER CODE), then push create. The u-boot dts will be replaced by kernel dts.
I am running the st-example-image-qt distribution package and am trying to use the M4 processor to feed sensor data to my UI. I can import the OpenAMP_TTY_echo example into stm32cubeide and debug it with my board fine. But now I am trying to make my own project since the OpenAMP example does not have a .ioc configuration file and I would like to set up some timer interrupts and things. Looking in the OpenAMP example, the timer HAL files are not even in there. So I created a new project and selected the STM32MP157c-DK2. It loaded a .ioc configuration file but the project will not build. I don't think there is a build file but I thought that was generated automatically? I can add a debug configuration but there is no .elf to link to. What would be the easiest way to move forward?
Hi everyone,I have a problem using STM32CubeProgrammer (and CLI). They are both showing that my userfs partition have a size of -1162381824 bytes. That partition have size of 2.9GB. After programming with CubeProgrammer I have kernel panic, and I don't know if this is related to CubeProgrammer. I'm trying to program SD card partition by partition using STM32CubeProgrammer but I don't have luck. When I get whole RAW image of SD card and then flash another SD card everything is working. When I get bootfs, userfs, vendorfs and rootfs using dd comand from SD card and then try to program using CubeProgrammer, kernel panic happens. Where I am wrong?Best regards,Nenad
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.