Get ready for the STM32 Summit 2026 | Online, November 3
Ask questions and find answers on STM32 microprocessors, including hardware, power, DRAM, flashing, interfacing, device tree, and peripherals.
Most recent activity
I have been looking for step by step guidance on how to create a linux application for STM32MP157C-DK2, but I end up being unsecssuful all the time. The only help I seem to get is to import an existing project, which does not help me. I want my application to be the one running on startup instead of the current demo application that is on the SD card.Your help on this matter is really appreciated.Sel.
Hello Community Hope, all are doing well I'm dealing with the BSP development with STM32MP157a-dk1 board (as my intent is the design the bsp for my own custom board )For the instance, I'm intended to go from top to bottom of the Flash layout for the SDcard bootThat's why I'm following the bsp development tutorial from here https://community.st.com/s/article/FAQ-STM32MP1-Bring-up-procedureVery first, i need to customize the TF-A for my own board For the simplicity, I'm taking the reference of the DK1 board onlyTo get the very initial UART logs from the TF-A, i have just flashed the SD card with the default TF-A provided with the starter packages using Cube programmer I've just added the stm32mp157a-dk1-trusted.tsv file and gave the path of the binary file for the same On IDE GUI , I've just check mark for the ID (0x01) i.e fsbl1-bootboth boot pin of the board at boot-loader mode And then, successfully downloaded the tf-a with SDcard Now, my problem is i'm unable to get the very initial
systemd-analyze blame: 6.297s dev-mmcblk1p3.device 3.711s user@0.service 3.668s systemd-udev-trigger.service 729ms console-kit-log-system-start.service 663ms weston.service 598ms systemd-logind.service 516ms pxl-init-script.service 489ms lighttpd.service 373ms systemd-journal-flush.service 365ms systemd-tmpfiles-setup.service 348ms sys-kernel-debug.mount 343ms systemd-journald.service 339ms dev-mqueue.mount 312ms systemd-modules-load.service 308ms tmp.mount &
How to debug what's behind a system reset because of watchdog? I tried using dynamic debug and add stm32_iwdg.c file to print debug output, but that didn't give me more info, just some pings. So what can be reason for watchdog reset? We have program on A7 which is doing some tasks when it is waked up via virtual uart from Cortex M4 which is running all time. Waking up is going well until one time when system is gone in low power and then it is rebooted and reset reason is 0x214, which is wdg reset. Virtual uart wakeup is enabled all the time. I also tried to disable watchdog in kernel menuconfig, but obviously then same case happened after some time (20minutes, 30minutes...) but there was no reset, because there was no wdg, so wdg is just doing it's job.Thanks in advance,Nenad
I found no STM boards on OSADL platform (www.osadl.org). Why ?
Hey there, I am new to STM32MP1 and this forum has been a great help. During the last week I am trying to understand the OpenAMP between the M4 and A7. The ttyRPMSG makes things quite straight forward for the M4 part. When going to the linux part, using terminal is also very convenient, but I would like to send some simple messages from inside C. Until now, I have struggled quite a bit with getting the concept. I have not found yet any simple examples for that. If you have something in mind it would be of great help.
..
I create a process A to communicate with M4, another process B every 2 min will be calculate some data cost 230ms. in this inteval, process A cant use OpenAmp to send cmd to M4, until process B complete the calculation.
Hi,I tired to refer to "https://wiki.st.com/stm32mpu/wiki/How_to_integrate_AWS_IoT_Greengrass_on_top_of_openSTLinux_distribution" to do "bitbake st-image-demo-aws"My compiled OS is UBUNTU 20.04.I got below error:"ERROR: ParseError at /home/zouqz/stm32/DistPkg/openstlinux-5.10/layers/meta-virtualization/recipes-extended/libvirt/libvirt-python.inc:1: Could not inherit file classes/python3targetconfig.bbclass"please advise,Thanks,QiZhang
Hello,we want to bring up our own board with stm32mp157c. Processor is connected to a Microchip LAN8720 through RMII.I configured device tree as described here:https://wiki.st.com/stm32mpu/wiki/Ethernet_device_tree_configuration#RMII_with_Crystal_on_PHY_-28Reference_clock_-28standard_RMII_clock_name-29_is_provided_by_a_Phy_Crystal-29Actual device tree configuration:&ethernet0{ pinctrl-names = "default", "sleep"; pinctrl-0 = <&eth1_pins_mx>; pinctrl-1 = <&eth1_sleep_pins_mx>; status = "okay"; phy-mode = "rmii"; max-speed = <100>; phy-handle = <&phy0>; mdio0 { #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; phy0: ethernet-phy@1 { reg = <1>; }; };So far so good. Controller is booting and during boot up it seems that PHY driver is loaded (Output is very equal to eval board we have). So I think it's ok.~# dmesg | grep ethernet [ 2.902084] stm32-dwmac 5800a000.ethernet: IRQ
Hello, In this wiki https://wiki.st.com/stm32mpu/wiki/IKS01A3_MEMS_expansion_boardBoard $> ls -1 /boot/stm32*dk2*/boot/stm32mp157c-dk2-a7-examples.dtb/boot/stm32mp157c-dk2-iks01ax.dtb/boot/stm32mp157c-dk2-m4-examples.dtb/boot/stm32mp157c-dk2.dtbfrm where does the bold dtb comes from? I cant find it on my STM32MPU.Also where is the dts file for this.I cant find it in arch/arm/boot/dts with name stm32mp157c-dk2-iks01ax.dts??Regards,Pv
For one project we would want to use only de M4 core of the SM32MP157 MPU. We want this because we have no time to learn how to develop the whole application using linux and the whole potential of the MPU, but we would want to have the hardware ready for a future update. We have been trying to use the M4 core in engineering mode, but we have been only able to debug the code. When we unplug the board and replug it the code is not executed. The board that we are using is the STM32MP157A-DK1. Thank you in advance for the help
If I order from st, how many days does it usually take to get to Korea?I placed an order last week... it's only for processing.
Hey.. Hi.. hello..Hope you all are doing wellI've my custom made board, which is quite similar with the STM32MP157 DK2 board Unfortunately, it's unable to bootDTS configuration for the PMIC, Clock and UART seems good I need to starts with the SPL/U-boot I need to know, is there any way to debug the SPL/U-boot via CubeIDE ?I'm intended to do GDB debug via JTAG All suggestions and recommendations welcome Thanks :)
Hi,iam trying to get a full understanding of remoteproc and its resource tabel. In the paper i read i understood it that the resource table is used to give the information about the vrings location to the master and the slave. The master parses the ressource table during starting. When i had a look at my code i saw that the adresse of the vrings are set to -1 (attached picture). So iam confused about it really works. Does the master knows the location from the device tree and give it through the slave? And how does the master knows where it has to load the elf-File from the M4, also from the device tree? In the linker script i saw that the regions of the memorys are define but i guess never really used in the code.
Hi,I have been trying to flash the SD card of the STM32MP157A-DK1 following the instructions of the ST Wiki, although in this wiki the board used is the DK2. However the flashing process stops after a while and shows the errors that i attach in the pictures. The CubeProgrammer version is the 2.6. After some research i saw that another option could be execute the flashing process from the command shell but i have not been able to do it because it never finds the file to be flashed, despite copying it in the STM32CubeProgrammer\bin folder. Thanks in advance.
Hi,I am trying to debug in engineering mode with the STM32MP157A-DK1 through a external ST-Link V3 but i am not being able to get it to work. I attacht the error gotten, as well as pictures of the connection and the debug configuration in Cube IDE. The image thas shows the debug configuration has the OpenOCD option configured, however i have also tried the GDB option but the board is not even found in this case. Thank you in advance.
Hy i wanted to ask how i can set the clockspeed on my Device tree so the USART3 will work with 10MB/s my device tree looks at them moment like this:&usart3 { pinctrl-names = "default", "sleep", "idle"; pinctrl-0 = <&usart3_pins_b>; pinctrl-1 = <&usart3_sleep_pins_b>; pinctrl-2 = <&usart3_idle_pins_b>; uart-has-rtscts; status = "okay";};at the moment is is on automatic. I wanted to try it out with the CubeMX but when i want to set the Paramter settings on the Linux context it always tells me that there is no configuration.
Hi,While following the example at https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Developer_Package#Updating_the_kernel_device_tree, I'm running into problems downloading the SDK.The link provided from instructions below, always downloads the "SOURCES" tar not the "SDK".Developer package:the SDK toolchain, provided within the en.SDK-x86_64-stm32mp1-openstlinux-<YY>-<MM>-<DD>.tar.xz file (download it from st.com)I have tried searching for the SDK at other places on your web-site, all results bring back the en.SOURCES-stm32mp1-openstlinux-5-4-dunfell-mp1-20-06-24.tar.xz not the SDKCould someone please verify this issue and point me to where I can get the SDK.Thanks in advance!
We are using SoM MYC-YA157C from MYIR with STM32MP1 onboard. MYIR creates pretty device-tree hierarchy, which is handy for update. CubeMX creates partial single device tree file. I would like to merge some of it parts (pinmxing, for instance) with MYIR device tree into resulting DTS file. What is a proper way for doing it ? PS. Xilinx provides system-user.dtsi file which is included AFTER all system DTSI`s in such way that it adds or overrides contents of system DTSI while merging into final DTS file. It is very convenient. Does STM provide similar capabilities ?
I used the latest official version(2021-03-31) to configure the stm32mp157c-dk2 of the optee version, and used the official tutorial to generate fip.bin and burn it to the corresponding partition, but it seems that the image is not checked,in other worlds, I did not see the successful prompt for the verification of the mirror image.
Can I use STUSB1602 with STM32MP1?The STM32MP157C-DK2 has an STUSB1600, but it is not a PD controller, so I am reviewing the STUSB1602.STUSB1602 seems to support only STM32F0, STM32F4, STM32G, and STM32L.I'm curious to see if it is possible to port and use the STUSB1602 related driver to STM32MP1. Is there any related document?
Hi, I have tried to build the Distribution Package following this guide: https://wiki.st.com/stm32mpu/index.php/STM32MP1_Distribution_Package#Building_the_OpenSTLinux_distributionMy goal is to run a build that is as small as possible. Therefore I choose openstlinux-eglfs as distro (without Wayland and X11): PC $> DISTRO=openstlinux-eglfs MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.shPC $> bitbake st-image-coreI haven't made any modifications in any file but the build fails. I have inserted the output of "PC $> bitbake st-image-core" in bitbake_outputWhy does the build fail?
I'm working with the STM32MP157C-DK2 dev board and I've noticed that sometimes when powering up the board there is a 20-30 second delay where I don't even see the boot up messages. It's doesn't appear to be U-boot related either. Has anyone else notice this? and if so were you able to fix it?
Hi, we are currently bring up our custom STM32MP157 Board. We get in any constellation a "DDR addr bus test: can't access memory @ 0xc000004"We think that our crystal is correctly running at 24 Mhz because we connecting over USB to the Board. Also the Voltages is correctly. We use the same DDR Chip, that is on the DK2 ( Micron ), with the same settings. We run a little bit out of ideas how to handle this. We also got DDR errors in Uboot SPL.Have you any hints beyond the "Bring up" Guide?Best regards
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.