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
Hi everyone, I am trying to boot up a custom PCB using the STM32MP131D, however I am running into an error during OPTEE. I have attached the optee dts and also a debug log of OPTEE during boot. I confirmed that sdmmc1_io, sdmmc2_io, and cpu0_opp_table were in final dtb file used for optee-os-stm32mp, however something is not quite right. If someone could point me in the right direction that'd be greatly appreciated, thank you. Main Error from OPTEE Boot Log: :0 0 print_probe_list:352 Probe list: 3 elements D/TC:0 0 print_probe_list:354 |- Driver stm32mp1-cpu-opp probes on node cpu0-opp-table D/TC:0 0 print_probe_list:354 |- Driver stm32mp1-iod-regulator probes on node sdmmc1_io D/TC:0 0 print_probe_list:354 |- Driver stm32mp1-iod-regulator probes on node sdmmc2_io D/TC:0 0 print_probe_list:358 `- Probe list end D/TC:0 0 print_probe_list:364 Failed list: 0 elements D/TC:0 0 print_probe_list:369 `- Failed list end F/TC:0 0 probe_driver_node:391 Probing stm32mp1-iod-regulator on
Dear ST Team,I'm considering purchasing a microSD card for the STM32MP157F-DK2 development board, but I want to ensure compatibility before buying.The documentation mentions support for SanDisk Class 10 and UHS Speed Class 1 cards but doesn’t specify the maximum supported capacity. I know the board supports SDHC and SDXC standards, so theoretically, it should handle up to 2 TB (per the SDXC specification).Here are my questions:Has anyone successfully used a 256 GB microSD card (e.g., SanDisk SDSQUAC-256G-GN6MA Ultra 256GB UHS-I Class 10) with this board?Are there any practical limitations or known issues when using SDXC cards with capacities above 128 GB?Does the STM32MP157F-DK2 fully support exFAT, or is additional configuration required?Any insights or experiences with high-capacity microSD cards on this board would be greatly appreciated.Thanks in advance!Zapsis Symeon
Hello everyone,I’m working with an STM32MP157-DK2 board and want to increase the size of the rootfs partition to 10GB.I followed the instructions from the https://wiki.st.com/stm32mpu/wiki/STM32MPU_Distribution_Package to create the image. However, I haven’t been able to find a working solution to resize the rootfs partition.Here’s the current space information from my board:root@stm32mp1:~# df -hFilesystem Size Used Avail Use% Mounted ondevtmpfs 124M 0 124M 0% /dev/dev/mmcblk0p10 3.8G 989M 2.6G 28% /tmpfs 194M 0 194M 0% /dev/shmtmpfs 78M 8.8M 69M 12% /runtmpfs 194M 4.0K 194M 1% /tmp/dev/mmcblk0p8 55M 22M 30M 43% /boot/dev/mmcblk0p9 14M 6.7M 6.0M 53% /vendor/dev/mmcblk0p11 220G 47M 208G 1% /usr/localtmpfs 194M 20K 194M 1% /var/volatiletmpfs 39M 8.0K 39M 1% /run/user/1000tmpfs 39M 4.0K 39M 1% /run/user/0I’ve come across some forum discussions, but none of the suggested solutions have worked for me.Could someone please provide clear instructions to resize the rootfs partition to 10GB?Wha
HelloI am currently working on the STM32P157 to RTL8211F-CG connection diagram using the RGMII interface. Since Realtek does not provide much documentation such as application notes, I used the MB1272C as a reference design. By the way, thanks for sharing. In the mentioned reference design, pin 36 (XTALL_IN) of the RTL8211F-CG is connected via a 22R resistor to port PB5 (ETH_CLK) of the STM32P157 processor.However, in AN5031, on page 74 (Figure 47), ETH_CLK is connected to pin 37 (XTALL_OUT) of the RTL8211F(I)-CG. Also in RM0436 on page 503 in Table 49, ETH_CLK is as a clock output for the Ethernet PHY. However, in the RTL8211F-CG note, pin 37 is described as XTAL_OUT/EXT_CLK, theoretically a clock input, but the pin is marked as output.I am a bit confused,did I miss something? I do not know now whether I should connect the ETH_CLK output to XTALL_IN or XTALL_OUT, common sense tells me that the output is connected to the input, but...Thanks for any sugestions.
Good morning,Could you confirm for me the version of Ubuntu most suitable for installing the development tools for "STM32 MPU ecosystem release note - v6.0.0"On version "22.04", I have problem to install "libncurses5".https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Install_the_SDK yocto@Yocto:~$ sudo apt-get install build-essential libncurses-dev libncurses5 libyaml-dev libssl-dev Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package libncurses5 yocto@Yocto:~$ if necessary I am ready to install a newer or older version.Thank youLoupi
I was going through the "Modify, rebuild and reload the Linux® kernel" section of the getting started guide for the STM32MP157x-DK2 board:https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Modify,_rebuild_and_reload_the_Linux%C2%AE_kernel and when I ran the command "scp -r install_artifact/lib/modules/* root@<ip of board>:/lib/modules" with the ip address of my board I got the following output at the end:Makefile 100% 669 133.5KB/s 00:00 poly1305-mips.pl 100% 24KB 1.6MB/s 00:00 scp: write remote "/lib/modules/6.6.48/build/source/arch/mips/crypto/poly1305-mips.pl": Failurescp: upload "install_artifact/lib/modules/6.6.48/build/source/arch/mips/crypto/poly1305-mips.pl" to "/lib/modules/6.6.48/build/source/arch/mips/crypto/poly1305-mips.pl" failedchacha-glue.c 100% 4193 344.2KB/s 00:00 scp: write remote "/lib/modules/6.6.48/build/source/arch/mips/crypto/chacha-glue.c": Failurescp: upload "install_artifact/
I am doing with stm32mp157f-dk2 i got succeed with understanding a bit about openstlinux stuffsSo i can do with firmware, user space application debugging with my ide but I wonder can i fetch dti from my distribution package or developer pacage's source file and that make change cubemx setting? i know reverse i means it works in sane way like make dti with cubeide and send it to my source folder but i wonder is it work in reverse way
Hi,I have a STM32MP157F-DK2 and I can't install anything on the card, especially python3-pip, obviously the card is correctly connected to the internet via ethernet and the date and time are correct.I tried both with:- ap-get update- apt-get upgrade- add repos- apt-get update- apt-get install python3-pip- etcI get the following errors root@stm32mp1:~# apt-get install python3-pip Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: python3-pip : Depends: python3-unixadmin but it is not going to be installed E: Unable to correct problems, you have held broken packages. &n
Dear ST Community, I am experiencing issues while attempting to connect my STM32MP1 to a Wi-Fi network using the steps outlined in the official tutorial: How to setup a WLAN connection.The specific issues are as follows:IPv6 connection but no network access: After following all the steps in the tutorial, the wlan0 interface connects successfully, but only obtains an IPv6 address. However, I cannot access the network or perform any connectivity tests.Manual IPv4 configuration required: To gain access to the network, I have to manually set a static IPv4 address on wlan0, along with the default gateway to the router. Once this is done, I can connect to the internet without issues.dhclient command not working: I attempted to obtain an IPv4 address automatically using dhclient, but the command is not available on my system. I saw some forum responses with this command but is not recognised in my board. This raises concerns about whether the tutorial might be outdated or if there’s a mi
Hi,I have a STM32MP157F-DK2 when I try to install something with apt-get I get this error:root@stm32mp1:~# apt install python3Reading package lists... DoneBuilding dependency tree... DoneE: Unable to locate package python3The date is correct.If instead I try to run an apt-get update I receive this message: root@stm32mp1:~# apt-get updateThe software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA).The detailed content licenses can be found at https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses.Reading package lists... Donehow can i fix it? i need to install python-pip with all dependencies Best regardsAB
Hello,I am a newcomer to embedded systems. I have a STM32MP157D-DK1 and I'm planning to develop some python applications to run on the A7 processor. I am encountering some issues.1. I created a simple web application using Python on Ubuntu. (python module: Flask)2. I confirmed that it can be executed successfully.3. I bundled it into a single executable file using pyinstaller (PC $> pyinstaller app.py --onefile).4. I verified that the executable file can be used properly.5. I transferred the file to an STM32 (starter kit).6. When I tried to execute the file, an error occurred.Error Message:./app: line 1: syntax error: unexpected ")"Other experiments:I try to execute python source code directly on STM32, there is no problem.I try to bundle python code into a single executable on STM32, but can't install pyinstaller. (pip3 install pyinstaller)Thanks for your support,Ken.
Hi,I work on a custom board using a DHCOR SoM with a STM32MP157C SoC. I setup the TF-A + OP-TEE boot chain for the secure boot and I managed to boot on the linux stm32 (v6.1). The board hangs at reboot :[ 1480.467975] reboot: Restarting systemI/TC: Forced system resetTo reboot the board, the OP-TEE OS writes '1' in the RCC_MP_GRSTCSETR register bit 0. If TZEN = '1', this register can only be modified in secure mode. TZEN is set to '1' by writing a '1' in the RCC_TZCR register bit 0, which is done by the rcc driver if the 'compatible' property is set to "st,stm32mp1-rcc-secure" in the OP-TEE device tree. The RCC is switched in "secure mode", which is confirmed at boot :D/TC:0 0 check_rcc_secure_configuration:347 RCC/PWR secure hardening: TZEN enable, MCKPROT enableFrom the documentation, chapter 10.4.14 RCC TrustZone function :"The bit TZEN allows the RCC and the PWR to be switched in secure mode. The RCC_TZCR register is only accessible by a secure access. When TZEN = ‘1’, some RCC and
On an STM32MP157D-based system, I wish to condition the Linux CLOCK_REALTIME precision clock against an external clock source in a non-standard manner (ie. not using PTPD or similar).To do this, I am using a wireless radio controlled by the CM4 core on the STM32MP157D to synchronize and condition the 64-bit Ethernet precision timer within a microsecond of a clock on the far end of the wireless connection. This code was adapted from an STM32F767 device, and the port was relatively easy to do.Can I configure the Linux system to use the Ethernet precision timer rather than the default system timer for the CLOCK_REALTIME precision clock? If so, how might I configure this within the kernel or device tree files?Alternatively, how might I adjust the CM4 ARM Cortex-A Generic Timer, which is likely used by default for CLOCK_REALTIME, so that it can be set and adjusted by code running within the CM4 core? Or is some other clock used by Linux for the CLOCK_REALTIME clock?Thanks,Mike
I'm using STM32MP157F-DK2 with the distribution package and x-linux-qt to build the st-image-qt image. So far I've been able to work with this image and my custom recipe in the target.Now, I've been trying to add UART5 support using CubeMX tool.I followed the tutorial on: https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_machine1. In cubemx my project name is "demo-dts" and inside meta-st-stm32mp-addons layer, I created a "mx" folder.2. From cubemx I browsed to this folder and generated the code. Here's the folder structure after generating the codemeta-st-stm32mp-addons/mx/demo-dts Inside demo-dts -> CA7 CM4 Common demo-dts.ioc Drivers EWARM Middlewares3. Inside conf/machine I created stm32mp1-demo-dts.conf and added:CUBEMX_DTB = "stm32mp157f-demo-dts-mx" CUBEMX_PROJECT ="mx/demo-dts/CA7/DeviceTree/demo-dts"4. I created a new build environment with:DISTRO=openstlinux-weston MACHINE=stm32mp15-mx BSP_DEPENDENCY="layers/meta-qt6 layers/meta-st/meta-st-x-linux-qt" source layers/
Are you planning to add Bare Metal mode for STM32MP15x to CubeIde?For the STM32MP13x series, it is present.
HelloWe have a few questions regarding LPDDR4 memory configurations, and we would appreciate your inputs:What is the maximum capacity of an LPDDR4 memory module with a dual-channel, single-rank (1-Die) configuration, where each channel is 16 bits?Does LPDDR4 support a single-channel, dual-rank configuration, and if so, what is the maximum capacity for such a setup?For context, we are considering using dual-channel, single-rank (1-Die) modules with 1G x 32 devices, and I would like to confirm the total capacity possible with this configuration.Looking forward to your response. Thanks & RegardsAkshitha Pattem
Hello,I am trying to perform a bitbake build using micledore openstlinux weston on my STM32MP1 platform. During the final stages of the build, I am encountering an error related to wireplumber that stops the process.Here are the details of the error:ninja: build stopped: subcommand failed.INFO: autodetecting backend as ninjaINFO: calculating backend command to run: /home/futura/Swaroop/STM32MPU_workspace/Distribution-Package/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/wireplumber/0.4.17-r0/recipe-sysroot-native/usr/bin/ninja -j 8 -vWARNING: exit code 1 from a shell command.At the end of the build, I get this error:ERROR: wireplumber-0.4.17-r0 do_compile: ExecutionError('/home/futura/Swaroop/STM32MPU_workspace/Distribution-Package/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/wireplumber/0.4.17-r0/temp/run.do_compile.12651', 1, None, None)ERROR: Logfile of failure stored in: /home/futura/Swaroop/
I created a custom linux image for this target using the distribution package + x-linux-qt and the image "st-image-qt". This image is working correctly on my target. Now, I want to add UART5 and UART4 to receive data over those 2 serial ports. As far as I understand, I need to add something like this in the DTS &usart4 { pinctrl-names = "default", "sleep", "idle";/* pin configurations definition */ pinctrl-0 = <&usart4_pins_a>; /* default pin configuration selection */ pinctrl-1 = <&usart4_sleep_pins_a>; /* sleep pin configuration selection */ pinctrl-2 = <&usart4_idle_pins_a>; /* idle pin configuration selection */ status = "okay"; }; and something like this in the DTSI usart3_pins_a: usart3-0 { pins1 { pinmux = <STM32_PINMUX('B', 10, AF7)>, /* USART3_TX */ <STM32_PINMUX('G', 8, AF8)>; /* USART3_RTS */ bias-disable; drive-push-pull; slew-rate = <0>; }; pins2 { pinmux = <STM32_PINMUX('B', 1
i used stm32cubeMX to generate code to support GPIO external interrupts.i expected to use HAL_GPIO_EXTI_Callback and it compiled but did not work.i had to use HAL_GPIO_EXTI_Falling_Callback and HAL_GPIO_EXTI_Rising_Callbacki used a Nucleo-U5a5ZJ board.cubeMX 6.12.1cubeIDE 1.16.1does anyone know why HAL_GPIO_EXTI_Callback does not work?I noticed that HAL_GPIO_EXTI_Callback was not in the stm32u5xx_hal_gpio.h filethanksphil
Hi All,I have custom phycore stm32mp13 based carrier board and i want to create uboot splash screen, so i created u-boot patches and .cfg file for uboot on my own layer, but when I test no image or backlight. Can anyone check my patches and cfg file and help? Also can I use the lcdputs command to test the LCD? Regards
Hallo,After installing OpenSTLinux on STM32MP135F-DK, after updating all, the command apt-get install x-linux-ai-tool won't work. Any thoughts?regards, Paul
I am getting a buffer ID parsing error every once in a while in the rpmsg_sdb_decode_rxbuf_string() function. It looks like the strsep fails to parse out the ID. This also is only happening on buffer ID 0. Here is the debug from the function.What would cause strsep to truncate the string? Even when the passed in string is correct.Before and after the error. Thanks for any help.Apr 8 20:35:08.378 kernel(debug): rpmsg_sdb(rpmsg_sdb_decode_rxbuf_string): rxbuf_str:B00L00002000 Apr 8 20:35:08.378 kernel(debug): rpmsg_sdb(rpmsg_sdb_decode_rxbuf_string): sub_str:B00  
Hello,I run make for install USB wifi driver for STM32MP1. I had import enviroment, but i can't make project. It reports an error: arm-ostl-linux-gnueabi-gcc: error: unrecognized command-line option ‘-mrecord-mcount’Can you help me check this error?Thanks!
Hello.I am trying to get a custom stm32mp135f to boot.I get following boot messages:NOTICE: CPU: STM32MP135F Rev.YNOTICE: Model: VETON control board based on STM32MP135F - r2WARNING: VDD unknownINFO: Reset reason (0x35):INFO: Power-on Reset (rst_por)INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe0000INFO: FCONF: Reading firmware configuration information for: stm32mp_ioINFO: FCONF: Reading firmware configuration information for: stm32mp_fuseINFO: Using SDMMCINFO: Instance 1INFO: Boot used partition fsbl1NOTICE: BL2: v2.8-stm32mp1-r2.0(debug):()NOTICE: BL2: Built : 12:48:35, Nov 25 2024INFO: BL2: Doing platform setupINFO: RAM: DDR3-DDR3L 16bits 533000kHzINFO: Memory size = 0x40000000 (1024 MB)INFO: BL2: Loading image id 1INFO: Loading image id=1 at address 0x30006000INFO: Image id=1 loaded: 0x30006000 - 0x30006236INFO: FCONF: Reading FW_CONFIG firmware configuration file from: 0x30006000INFO: FCONF: Reading firmware configuration information for: mce_configINFO: FCON
Running the iio_info command on a terminal into a STM32MP157F-DK2 (booting from the shipped SD-card) reports some errors:root@stm32mp1:~# iio_infoLibrary version: 0.23 (git tag: 92d6a35)Compiled with backends: local xml ip usb serialIIO context created with local backend.Backend version: 0.23 (git tag: 92d6a35)Backend description string: Linux stm32mp1 5.15.45 #1 SMP PREEMPT Mon Jun 6 06:43:42 UTC 2022 armv7lIIO context has 2 attributes:local,kernel: 5.15.45uri: local:IIO context has 2 devices:iio:device0: 48003000.adc:adc@0 (buffer capable)2 channels found:...ERROR: checking for trigger : Input/output error (5)iio:device1: 48003000.adc:adc@100 (buffer capable)4 channels found:...ERROR: checking for trigger : Input/output error (5)(Several dozen lines dropped here. And trying to format the output as 'code' throws HTML errors). What do these trigger - related errors tell me?If this is supposed to mean the EIO error (clib errno), i.e. a file read/write error, isn't iio_info sup
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.