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
Hi,We are using stm32mp157a processor in my custom board.In my custom board we have limited peripherals so i need to disable remaining peripherals like ltdc and hdmi ,etc. I disabled in dts files but it didn't effected. How can i disable peripherals in u boot?
hi,I am working with a custom board based on the STM32MP157C. I use a lan9303 chip which is acting as a switch for ethernet. In the linux kernel, there are no problems with the ethernet but I can't get it to work in u-boot. Even when I use the same Device-Tree layout for the ethernet and phy. The address 0 is the same thats used by the kernel but u-boot doesn't seem to find the phy there.The device tree for ethernet looks like this:&ethernet0 { status = "okay"; pinctrl-0 = <&ethernet0_rmii_pins_a>; pinctrl-1 = <&ethernet0_rmii_pins_sleep_a>; pinctrl-names = "default", "sleep"; phy-mode = "rmii"; }; &pinctrl { ethernet0_rmii_pins_a: rmii-0 { pins1 { pinmux = <STM32_PINMUX('G', 13, AF11)>, /* ETH1_RMII_TXD0 */ <STM32_PINMUX('G', 14, AF11)>, /* ETH1_RMII_TXD1 */ <STM32_PINMUX('B', 11, AF11)>, /* ETH1_RMII_TX_EN */ <STM32_PINMUX('A', 1, AF11)>, /* ETH1_RMII_REF_CLK */ <STM32_PINMUX('A', 2, AF11)>
On my Ubuntu 20.04, Flashing of STM32MP157C-DK2 with STMCubeProgrammer fails with the following error I easily reproduced using the scripts:$ STM32_Programmer.sh -c port=usb1 -w FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv ------------------------------------------------------------------- STM32CubeProgrammer v2.9.0 ------------------------------------------------------------------- USB speed : High Speed (480MBit/s) Manuf. ID : STMicroelectronics Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000 SN : 002C002E3338511134383330 FW version : 0x0110 Board : -- Device ID : 0x0500 Device name : STM32MP1 Device type : MPU Revision ID : -- Device CPU : Cortex-A7 Start Embedded Flashing service Error: File does not exist: /users/vincent/Documents/03_DEV/STM32MP1/en.FLASH-stm32mp1-openstlinux-5-10-dunfell-mp1-21-11-17_tar_v3.1.0/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/images/stm32mp1/flashlayout_st-image-weston/trusted/arm
I use a STM32MP157C and connected to MAX24287 PHY by RGMII.After linux booted there is only 100Mbps connection - I put the PHY into Diagnostic Loopback Mode and the situation is the same.My dts:&ethernet0{ pinctrl-names = "default", "sleep"; pinctrl-0 = <&eth1_pins_mx>; pinctrl-1 = <&eth1_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN ethernet0 */ phy-mode = "rgmii-id"; max-speed = <1000>; phy-handle = <&phy0>; mdio0 { #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; reset-gpios = <&gpioa 4 GPIO_ACTIVE_LOW>; reset-delay-us = <10000>; post-reset-delay-us = <1000>; phy0: ethernet-phy@3 { reg = <3>; sfp;/* compatible = "ethernet-phy-ieee802.3-c22"; *//* interrupt-parent = <&gpioa>; *//* interrupts = <9 IRQ_TYPE_EDGE_FALLING>; */ }; }; /* USER CODE END ethernet0 */};The PHY has 25MHz external clock, it gives 125MHz RX_
How can I configure the i2c duty cycle to 50% in the linux device tree for a 33kHz device?I have modified the frequency from 100000 to 33000 but I couldn't find a setting for the duty cycle and right now I measure ~83%.MPU stm32mp153.
Hi all,I am not familiar with STM32 platform but the DFSDM ADC feature seems to do exactly what I want (external delta-sigma modulator + digital filtering). I bought a STM32MP157C-DK2 board and started playing with it. But, I can't find any working example of DFDSM and I am a bit lost ...What would be the best way to start working with DFSDM ?Thanks,Best regards,Nicolas
Hello there,We are working on a design based on the STM32MP1 eval kit which is using Realtek RTL8211 for Ethernet.However this IC seems to be hard to buy; Realtek distributors are giving lead times of +1 year.Can someone recommend alternatives?Thanks,Guillermo
I am having difficulties activating the EXTI interrupt for a pin in the M4 NVIC. What I did: Opened STM32CubeMX, selected the board STM32MP157F-DK2, opted to configure all peripherals in their default state Activate SPI5 in the M4 domain, incl. DMA domain Select PF3 pin EXTI mode with falling edge trigger detection (in my application serves as a data ready signal that should start the SPI transfer) Now trying to activate EXTI Line 3 interrupt in NVIC, but the check-box is greyed out & I have no clue what I am missing to let me activate the EXTI line 3 interrupt Does anyone know what I missed? Attached is the ioc file generated so far. Thank you all so much for any help!
We are trying to bring-up our custom board and every step of the way we see panic messages, we need some direction in understanding what went wrong. Our board has the following:Processor: STM32MP157FACxQSPI NAND flash memory is our boot device (AS5F18G04SND)PMIC: STPMIC1BDDR memory LPDDR - 32-bit - 128MB memory. All the device trees were generated using the latest CubeMx.Issue1: We had he first panic when flashing partition 1. When the PMIC node in device tree was set as below for buck 1 it fails in flashing partition 1.vddcore:buck1{regulator-name = "vddcore";regulator-min-microvolt = <1200000>;regulator-max-microvolt = <1200000>;regulator-always-on;regulator-initial-mode = <0>;regulator-over-current-protection;};However if I change it to the one below with the max voltage set to 1.35V it completes flashing partition 1 and fails in partition 3.vddcore:buck1{regulator-name = "vddcore";regulator-min-microvolt = <1200000>;regulator-max-microvolt = <1350000>;
Hi All,i am using stm32mp1 with i2c on sgtl5000 codec and control lines are over carrier i2si am getting kernel soc sgtl5000.c error sgtl5000 0-000a: Error reading chip id -6<STM32_PINMUX('A', 15, AF5)>; /* I2S1_WS */<STM32_PINMUX('Z', 0, AF5)>, /* I2S1_CK */ <STM32_PINMUX('Z', 1, AF5)>, /* I2S1_SDI */ <STM32_PINMUX('Z', 2, AF5)>, /* I2S1_SDO */ <STM32_PINMUX('Z', 6, AF5)>; /* I2S1_MCK */Any reference dts on i2s1 would be helpful.. and suggest on kernel error .
From my understanding of the documentation, my steps to lowest power (VBAT mode) on the STM32MP1-DK2 kit would be: Connect Battery to VBATSet BREN in TF-ADisable wake sources other than from PMIC and RTCenter sleep via: "echo mem > /sys/power/state"Is this correct? Am I missing any steps here?Thanks,Ben Beckwith
I've just finished the tutorials on MP1 and have built a few Nucleo projects. When I want to use a GPIO pin on the Nucleo board I go o the ioc file, name a pin and hit Project > Generate Code, and I'll see the pins at the bottom of my Core > main.c file, but when I do that in a new project for the MP1, I don't see anything added to the project.Further, if I search the entire directory for the name of the pin "HEATER" in my case, I don't see it anywhere else but the ioc file.```$ grep -rnw . -e 'HEATER'./test.ioc:647:PA10.GPIO_Label=HEATER```What am I doing wrong?
make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040 GEN Makefile HOSTCC scripts/mod/mk_elfconfig/media/user/H3D1P2/Tools/STM32MP1/STM_ECO_3.10/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so: error loading plugin: /media/user/H3D1P2/Tools/STM32MP1/STM_ECO_3.10/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/lib/libc.so.6: version `GLIBC_2.33' not found (required by /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so)collect2: error: ld returned 1 exit statusmake[2]: *** [scripts/Makefile.host:95: scripts/mod/mk_elfconfig] Error 1make[1]: *** [/media/user/H3D1P2/Tools/STM32MP1/STM_ECO_3.10/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.61-stm32mp-r2-r0/linux-5.10.61/Makefile:1214: prepare0] Error 2make: *** [/media/user/H3D1P2/Tools/STM32MP1/STM_ECO_3.10/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21
Hi, CommunityI'm building linux based firmware on STM32MP157F ad I need to apply linux RT patches.I'm using STM32MP157F-EV1 for testingAs linuxkernel I'm using ST linux v5.10-stm32mp-r2, of STMicroelectronics linux repo. This tag is v5.10.61 kernel version, so I took patch-5.10.59-rt52.patch.gz, since it is nearest kernel version. The patch was applied without errors, but at startup there is a following exception in pinctrl-stm32 driver:[ 2.905809] ------------[ cut here ]------------ [ 2.905823] WARNING: CPU: 0 PID: 1 at kernel/locking/rtmutex.c:2040 __rt_mutex_trylock+0x110/0x114 [ 2.905860] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 5.10.61-rt52agvl-stm32mp157f-ev1 #2 [ 2.905873] Hardware name: STM32 (Device Tree Support) [ 2.905890] [<c010f7c8>] (unwind_backtrace) from [<c010c3c0>] (show_stack+0x10/0x14) [ 2.905919] [<c010c3c0>] (show_stack) from [<c0db0a58>] (dump_stack+0xb4/0xc8) [ 2.905940] [<c0db0a58>] (dump_stack) from [<c012f8f8>] (__w
Hi,Is there any Yocto layer which can be added to ST's Linux distribution to connect smartphones such as Android Auto/Apple CarPlay? Thanks in advance.
hi,we are trying to flash our yocto build on our custom board using the stm32cubeprogrammer via usb in dfu mode. the flashing fails w/ the following message:19:33:39 : Opening and parsing file: tf-a-stm32mp157f-nff-mx-usb.stm3219:33:39 : File : tf-a-stm32mp157f-nff-mx-usb.stm3219:33:39 : Size : 225596 Bytes19:33:39 : Partition ID : 0x0119:33:39 : Download in Progress:19:33:39 : File download complete19:33:39 : Time elapsed during download operation: 00:00:00.55019:33:39 : RUNNING Program ...19:33:39 : PartID: :0x0119:35:29 : Error: an error occured while uploading data from the virtual partition 0xF1on the console we see the following message:on the console we see the following log:PANIC at PC : 0x2ffea97fException mode=0x00000016 at: 0x2ffea97fwe've looked at the following troubleshooting guide:https://c
..
I'm following the tutorial here but when I define `VIRT_UART_HandleTypeDef huart0;` I get error: unknown type name. It seems like the only include I should need is openamp.h, but that doesn't seem to do the trick.
HI all,We are using LAN8720 as the ethernet PHY for connectivity.The IC has 25MHz crystal connected for the refclk and we want to run in RMII mode. We have requirement of not using the INT_N for the ethernet IC.Upon exploring the ST Docs I was not able to figure out the same. What should be the correct device tree configuration for the same? We need to get it up correctly for each of TF-A , U-BOOT and Kernel ? So looking for answer around the same for device tree changes for each of these.LAN8720 + RMII Mode + REFCLK with no using the INT_N interface.Really appreciate the help.
I'm using the bootlin buildroot branch: st/2021.02.I want to run a certain function on init of the Uboot (board_init function), like the ones used for the DK1 and DK2. My problem is that the function doesn't seem to be called. I have tried to debug the problem and put printf and put commands to get something shown on terminal, but nothing gets printed on terminal. I also tried to put while(1); function, to the board_init function, but the boot just goes on. When using make uboot-rebuild, I can see that the stm32mp1.c is compiled after I have changed it. I also deleted everything on output/images, so that the new images are really made. I also tried to do the same to board_late_init function, but no change.What am I doing wrong? Is the function not really called? If not, why? And if yes, why isn't it even stopping with while(1) endless loop?
I'm trying develop on Cortex-M4 of "Getting started STM32MP157x-DK2".I have a problem that don't detects the board IP address when "6 Check connection to the target" of Modify, rebuild and reload firmware.However, Linux prompt are displayed in the console windows by clicking on the "STM32 butterfly button" and I can run Linux command on the board.Serial target widget status icon is yellow light, and status is "idle".I read STM32CubeIDE support wiki page (this page), but I can't discover solution this problem.Are there any other settings that should be made?Am I missing something?I use STM32CubeIDE on Windows10 OS.I'm not familiar English, so I'm sorry if my sentence is strange.Best regards.
Hello, i'm trying to use M4 kernel from A7 kernel worked under linux.I've started with openSTlinux distro and it works well (i can upload firmware to M4 using rproc), but for some reasons i need to make a very small distro (less than 16 mb). For this i'm started to use buildroot build system, which i configured to use linux kernel from https://github.com/STMicroelectronics/linux (i've tried to use 5.10 and 5.4 branches)I'm try to original .config from openstlinux (/proc/config.gz) to build my own kernel and it builds fine. But when system is booting up i've got a regrettable messages:[ 1.667275] stm32-rproc 10000000.m4: error -EINVAL: failed to get mcu reset[ 1.674148] remoteproc remoteproc0: releasing m4[ 1.678863] stm32-rproc: probe of 10000000.m4 failed with error -22Some investigation brought me to file drivers/reset/core.c and function static int of_reset_simple_xlate(struct reset_controller_dev *rcdev, &nbs
Hi , We are using the STM32MP157-dk1 board. We are able to boot the both cores (cortex A7) bare metal code from the SRAM but where as loading to the DDR that time only core 0 is booting properly and core 1 not booting. Is their any way to enable the DDR accessing to core1(second A7).
Using the ecosystem v1.2 after a cold boot the system boot properly but after issuing a reboot command the system loads u-boot but it gets stuck at loading the kernel. Are there any known limitations/issues?
Hello, I want to use DDR test suite in STM32 cube IDE but I always have a error when I try to connect my board. I think I understood that was because I have to modify something with stage boot with SPL. I red the docs but I am quite lost can someone give me the steps to make DDR test suite work ?Kind regards
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.