Developer support experience survey - We value your feedback
Join conversations with your peers and ST experts. Explore the full potential of STM32 microprocessors for your embedded design.
Most recent activity
Hello, we are trying to start our custom STM32MP157 board. We encountered some problems that I want to ask about. First is with TF-A, it gets to the SD card init (boot source) and it fails. We have eMMC on MMC2 and it also gives error message. NOTICE: CPU: STM32MP157DAC Rev.Z NOTICE: Model: Zegarson board TF-A testing 0.0.10 ERROR: stm32_sdmmc2_mmc_init: DT error ERROR: SDMMC1 init failed PANIC at PC : 0x2ffeb8cf What is really weird about that, after some time playing with MMC configs (pull-ups, 1-bit 4-bit wide bus, speed, etc.) it randomly started working and got to DDR init and only then failed. NOTICE: CPU: STM32MP157DAC Rev.Z NOTICE: Model: Zegarson board TF-A testing 0.0.8 NOTICE: BL2: v2.8-stm32mp1-r2.0(release):v2.8-stm32mp-r2-1-g648de4789-dirty(648de478) NOTICE: BL2: Built : 03:58:54, Jul 13 2024 ERROR: DDR addr bus test: can't access memory @ 0xc0000004 PANIC at PC : 0x2ffeac63 But a few days after we made clean build and it again has SD init problem.What
I am working with the STM32MP157F-DK2 Discovery kit, and I would like to know if it's possible to:Run Yocto Linux (OpenSTLinux) on the Cortex-A7 cores for high-level application development.Simultaneously run a real-time Embedded C project (using STM32CubeMX or STM32CubeIDE) on the Cortex-M4 core for handling real-time tasks.If this is feasible, what would be the best approach to achieve this configuration? Also, what are the considerations or steps involved in managing inter-core communication between the two environments?
I am facing the Issue on Qt , i Downloaded the OpenSTlinux Distribution package , and i wanted to find the qt layer but i can't please help me out.
Hi everyone,I'm currently working with the STM32MP157 Linux board and need some guidance on setting it up for use with Google Chrome and .NET applications. Could anyone provide a step-by-step guide or any useful resources to get this done?Specifically, I'm looking for:Installation steps for Google Chrome on the STM32MP157 board.Configuring the board to work with .NET applications.Any potential issues or tips for optimizing performance.Any help would be greatly appreciated!Thanks you
Hi! What interruppt code line should I use when connecting to the PMIC?The choices are:gpioa 0exti 55Which one should it be? Here is a snippet from my Linux DT. pmic:stpmic@33{ compatible = "st,stpmic1"; reg = <0x33>; interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>; /*interrupts-extended = <&exti 55 IRQ_TYPE_EDGE_FALLING>;*/ interrupt-controller; #interrupt-cells = <2>; status = "okay";
Hi , i have the custom board of (STM32mp157F-dk2), all the things are same but the ST-Link channel removed and many thing changes has done , there is added JTAG pin in place of ST-link port , so in Openstlinux distribution package any modification should i do. like in linux and u-boot , device tree, and menuconfig , drivers related , i do not know any thing for this one. just i am doing from scratch i need your support to start from the scratch.
The first logo appears, but the display behind it does not work. Looking at the error message below, it seems like there is a problem with ext4. How can I solve it? Or did something go wrong? NOTICE: CPU: STM32MP157FAC Rev.ZNOTICE: Model: STMicroelectronics STM32MP157F-DK2 Discovery BoardINFO: PMIC version = 0x21INFO: Reset reason (0x14):INFO: Pad Reset from NRSTINFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000INFO: FCONF: Reading firmware configuration information for: stm32mp_ioINFO: Using SDMMCINFO: Instance 1INFO: Boot used partition fsbl1NOTICE: BL2: v2.8-stm32mp1-r1.0(debug):lts-v2.8.6-dirty(ff0bd5f9)NOTICE: BL2: Built : 17:57:15, Apr 21 2023INFO: BL2: Doing platform setupINFO: RAM: DDR3-DDR3L 16bits 533000kHzINFO: Memory size = 0x20000000 (512 MB)INFO: BL2: Loading image id 1INFO: Loading image id=1 at address 0x2ffff000INFO: Image id=1 loaded: 0x2ffff000 - 0x2ffff1eaINFO: FCONF: Reading FW_CONFIG firmware configuration file from: 0x2ffff000INFO: FCON
Hi!I have a custom board with custom device tree. As far as I can say, it works (boot over emmc) but the kernel gives a trace at the start. [ 0.255543] debugfs: Directory 'cpu0' with parent 'opp' already present! [ 0.261757] Unable to get STM32 DDR PMU clock [ 0.294819] stm32-mdma 58000000.dma: STM32 MDMA driver registered [ 0.296155] stm32-dma 48000000.dma: no dma pool: can't use MDMA: 0 [ 0.297740] stm32-dma 48000000.dma: STM32 DMA driver registered [ 0.298366] reg11: supplied by fixed_3v3 [ 0.298741] reg18: supplied by fixed_3v3 [ 0.299068] usb33: supplied by fixed_3v3 [ 0.304778] dwc2 49000000.usb-otg: 49000000.usb-otg supply vusb_d not found, using dummy regulator [ 0.304931] dwc2 49000000.usb-otg: 49000000.usb-otg supply vusb_a not found, using dummy regulator [ 0.307539] debugfs: Directory 'cpu0' with parent 'opp' already present! [ 0.307696] ------------[ cut here ]------------ [ 0.307729] WARNING: CPU: 0 PID: 16 at drivers/opp/of.c:686 _of_add_opp_table_v2+0x50c/0x5c0 [ 0.3077
I’m working on a project with the STM32MP157F-DK2 Discovery kit, I’m exploring the possibility of integrating GSM for internet access.Has anyone successfully implemented GSM connectivity on the STM32MP157F-DK2? If so, could you share your experience, including the hardware setup, GSM module used, and any software configurations or drivers required?I’d appreciate any insights or guidance on how to proceed.
Hi erveryone,I want to implement A/B partitioning functionality, not for updates, but to enable switching to an alternative ROOTFS partition if U-Boot fails to start the kernel. For example, if partition A fails to boot three times, switch to partition B and attempt to boot three times as well. Additionally, incorporate a watchdog to check for timeouts, and if all attempts fail, report an error.Currently, I have modified the contents of meta-st/meta-st-stm32mp/conf/machine/include, specifically st-machine-image-partition-stm32mp.inc and st-machine-extlinux-config-stm32mp.inc, and in the .tsv file, I can generate two partitions, rootfs_A and rootfs_B, and boot the kernel using rootfs_A. I have found some relevant information that mentions enabling CONFIG_BOOTCOUNT_ENV and CONFIG_BOOTCOUNT_LIMIT in U-Boot's configuration. I have set these in my menuconfig, but I am unsure how to use them or where to modify. I have only found that /drivers/bootcount/bootcount_env.c seems to hav
Hi all,i'm trying to run the DDR_Init project as my first project on STM32MP135F-DK board.I loaded the project on CDT Eclipse IDE and added some configurations: the build is ok.I report the main.c compiler command line as example:Building file: C:/Progetti/dbTechnologies/testSTM32/DDR/Projects/STM32MP135C-DK/Examples/DDR/DDR_Init/Src/main.c Invoking: GNU Arm Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-a7 -mthumb -mfloat-abi=hard -mfpu=vfpv4-d16 -Og -ffunction-sections -fstack-usage -g3 -DCORE_CA7 -DUSE_STM32MP13XX_DK -DSTM32MP135Fxx -DDDR_TYPE_DDR3_4Gb -I"C:\Progetti\dbTechnologies\testSTM32\DDR\Drivers\CMSIS\Device\ST\STM32MP13xx\Include" -I"C:\Progetti\dbTechnologies\testSTM32\DDR\Drivers\CMSIS\Core_A\Include" -I"C:\Progetti\dbTechnologies\testSTM32\DDR\Drivers\BSP\STM32MP13xx_DISCO" -I"C:\Progetti\dbTechnologies\testSTM32\DDR\Projects\STM32MP135C-DK\Examples\DDR\DDR_Init\Inc" -I"C:\Progetti\dbTechnologies\testSTM32\DDR\Drivers\STM32MP13xx_HAL_Driver\Inc" -std=gnu11 -MMD -MP -MF"
Hi,i am facing the issue with the header file like I am using ADC pin where i facing the issue with kernel space programming just facing the issue with library like " consumer.h, machine.h , iio.h , and many thing ", but in Workspace i found the library is present but in sysroot directory library is not there also same as a board why the library not include ??.please help me out this problem Note: i am using the openstlinux distributuion package.
how to add meta qt layers into our OpenSTlinux distribution package. please do step by step
My MP157DAC board encountered some problems using SDKv5.0, u-boot could not be started correctly when using usb burning, it seems to be related to DDR, but I can not find the reason, the community does not have similar problems, hope to get some help: DRAM: E/TC:0 tzc_it_handler:79 TZC permission failureE/TC:0 dump_fail_filter:417 Overrun violation on filter 0E/TC:0 dump_fail_filter:420 Permission violation on filter 0E/TC:0 dump_fail_filter:425 Violation @0xfdb16fb0, non-secure privileged read, AXI ID 4a0
Hi,I have customized a board using STM32MP157DAC referencing the mp157d-disco board hardware design.I have problem when trying to flash the image in the Starter Package. The error message as below:20:55:08 : STM32CubeProgrammer API v2.17.0 | Windows-64Bits20:58:45 : UR connection mode is defined with the HWrst reset mode20:58:45 : USB speed : High Speed (480MBit/s)20:58:45 : Manuf. ID : STMicroelectronics20:58:45 : Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x000020:58:45 : SN : 0046001E333151063132363320:58:45 : DFU protocol: 1.120:58:45 : Board : --20:58:45 : Device ID : 0x050020:59:00 : Read TSV File: C:\Users\chenxu\Downloads\ENFLAS~1.TAR\ENFLAS~1.26\STM32M~1.26\images\stm32mp1\FLASHL~1\optee\FL8A1F~1.TSV20:59:00 : Number of partitions: 1320:59:07 : Start Embedded Flashing service20:59:07 : Memory Programming ...20:59:07 : Opening and parsing file: tf-a-stm32mp157d-dk1-usb.stm3220:59:07 : File : tf-a-stm32mp157d-dk1-usb.stm3220:59:07 : Size : 220.41 KB20:59:07 : P
Hi everyone,I'm working on a custom board based on STM32MP157F-DK2. I am running Yocto 5.0.3 (scarthgap) with trusted boot (not signed).I could build the Zephyr (3.7.0) rpmsg sample that worked out of the box:https://docs.zephyrproject.org/latest/samples/subsys/ipc/openamp_rsc_table/README.htmlNow the issue is when I tried to debug the m4 core with a JTAG, the board crashes, here is what I see on the Linux console: E/TC:0 tzc_it_handler:79 TZC permission failure E/TC:0 dump_fail_filter:420 Permission violation on filter 0 E/TC:0 dump_fail_filter:425 Violation @0xdeadbef0, non-secure privileged read, AXI ID 1 E/TC:0 Panic at core/arch/arm/plat-stm32mp1/plat_tzc400.c:84 <tzc_it_handler> E/TC:0 TEE load address @ 0xde000000 E/TC:0 Call stack: E/TC:0 0xde002961 E/TC:0 0xde017cd1 E/TC:0 0xde0046d7 E/TC:0 0xde0179f7 E/TC:0 0xde023679 E/TC:0 0xde000348 I started JLinkGDBServer with those parameters: JLinkGDBServer -port 2331 -s -device STM32MP15XX_M4 -endian little -speed
Hi!I having a question. I'm using STM32MP151 processor and my initrd won't work because it got stuck at the initialization of the inird inside init/main.c file inside Linux source. Follow the arrows <------ static int __ref kernel_init(void *unused) { int ret; /* * Wait until kthreadd is all set-up. */ pr_info("static int __ref kernel_init(void *unused): wait_for_completion(&kthreadd_done);"); wait_for_completion(&kthreadd_done); pr_info("static int __ref kernel_init(void *unused): kernel_init_freeable();"); kernel_init_freeable(); <----- pr_info("static int __ref kernel_init(void *unused): kernel_init_freeable(); OK"); /* need to finish all async __init code before freeing the memory */ async_synchronize_full(); .... .... .... } static noinline void __init kernel_init_freeable(void) { .. ... ... pr_info("static noinline void __init kernel_init_freeable(void): do_basic_setup();"); do_basic_setup(); <---- pr_info("static noinline void __
Hello We are Working on a custom board with STM32MP157AAA3 processor.We are using Buildroot(V2023.08.2) for checking USB 2nd Port in which the PHY port 2 is configured as host controller using UTMI . we referred the below link to configure the dts :https://wiki.st.com/stm32mpu/wiki/USBPHYC_device_tree_configuration We are configuring the USB in dts file exactly the same in Uboot (V2023.10) and Linux(V5.13), It works in Linux but not in Uboot We are attaching the configuration of our dts file below.Hope you could Verify it and suggest us where we are going wrong. Thanks & RegardsAkshitha Pattem
Hi I am using the discovery kit (STM32MP157F-dk2), i check the manual and i did not get the Actual pin of the CANFD , so please let me know the pin of the CANFD or other-wise could you please provide me the example how to read the CANFD value from the pin.
Hi everyone i download the Distribution package for ##STM32MP1F-DK2 and i made some changes on kernel like in device tree, my colleague is doing work-from-home job, So my colleague wanted to see the changes own there laptop and something want to change according to there requirement on same source code( Distribution package). how we can do that .please help me out this
Hello,I want to operate the device in the following manner, but I don't fully understand the concept of the External Loader:Store DDR Init FW and Main FW in the External NOR Flash.These two FW will be downloaded to the Flash during board production.Upon powering on the board, immediately execute the DDR Init FW stored in the NOR Flash.In this case, to access the NOR Flash, QSPI and other GPIOs need to be activated first. Should this role be handled by custom firmware, or does the External Loader take care of this?If that is not the case, do I simply need to set the boot pins to NOR Flash mode to boot directly from NOR Flash? Below are some example files related to the External Loader. I would like to understand what roles each of these files performs.What does "offset" mean? Should it be set differently depending on the address in NOR Flash where the FW is downloaded?Is there a way to obtain the source code for the corresponding bin files? *The MPU being used is STM32MP131FAE
Hi Every One i am facing the issue to find the pins of PWM in the (STM32mp157f-dk2 ), i configured the PWM channel in device tree and pwm channel is visible in /sys/class/pemchip0/pwm , so i need to collect the input from the pins but which pin is connected to PWM i do not know , could you please help me out this.(this is my my output form the board terminal )root@stm32mp1:/sys/class/pwm/pwmchip0/pwm0# lscapture duty_cycle enable period polarity power ueventroot@stm32mp1:/sys/class/pwm/pwmchip0/pwm0#I Need 1. how to use pin and which pin i need to connect 2. i want to collect the input prom the PWM.3. and the should be show on the terminal. if i am wrong and any thing missing , please correct me
Hi there, I'm trying to start my M4 fw from u-boot ( https://wiki.stmicroelectronics.cn/stm32mpu/index.php?title=How_to_start_the_coprocessor_from_the_bootloader&oldid=76509#Synchronizing_the_remote_firmware_with_Linux ). We finally managed to load the firmware from u-boot and it runs properly (I can see peripherals working at boot time); btw the guide is not correct for the bootcmd section, let's talk about it in a separate thread! Now, I must integrate the RPMSG interface, and, in the guide ( https://wiki.stmicroelectronics.cn/stm32mpu/wiki/How_to_start_the_coprocessor_from_the_bootloader#STM32Cube ), there's a section describing a Synchronization between u-boot and Linux. It cites that, for non-blocking use cases, IPCC interrupts can be used. But I can't find ANY reference to that in any guide or forum. Can please somebody explain to me how to make this synchronization work properly? I understand that I have to implement M4 fw in a way that the 
Hello,we want to implement Non-blocking method like in https://wiki.st.com/stm32mpu/wiki/How_to_start_the_coprocessor_from_the_bootloaderOur efforts searching documentation and reading discussions in the forum hadn´t resolve the situation.We are using a devicetree genertated by the CubeMX tool for stm32mp157f-eval1. When starting the Application in a booted linux system, it works as expected. The trace logs are available, and the /dev/ttyRPMSG0 virtual UART is loaded:cat /sys/class/remoteproc/remoteproc0/state outputs 'running'cat /sys/kernel/debug/remoteproc/remoteproc0/trace0 shows our debug outputs from the M4We can send dummy data to /dev/ttyRPMSG0 and get the echoed responseIn our use case we need the M4 Application to start as early as possible, so we have configured u-boot SSBL to load the ELF file and start the M4 execution. We are then facing the problem that the software is started, but the linux kernel does not load the /dev/ttyRPMSG0 device:cat /sy
Hello,I am wondering what could be the best way to write a device tree that sets the STM32MP1 as SAI SLAVE with a CODEC also running as SAI slave. The HW design I am studying has the following specs:1) STM32MP1 with ALSA and one SAI interface.2) A codec chipset running as SAI slave.3) The Si5351B part running as a MASTER clock providing the SAI bit and frame (L/R) clocks to both the SoC and CODEC.I understand such a setup is a little out of the norm. How can the device tree be modified on the SAI side to avoid the STM32MP1 to become a MASTER. The snippet of a possible device tree is below.How can I force the STM32MP1 to be a SLAVE on SAI?I would imagine writing the device tree as follows: &sai1{ pinctrl-names = "default", "sleep"; pinctrl-0 = <&sai1b_pins_mx>; pinctrl-1 = <&sai1b_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN sai1 */ /* Specify external clock sources for SAI1 We MUST add the clock-names according to the doc. */ clocks = <&
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.