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,I'm working QSMP-1570 SOM. There is STM32MP157C on it. I am trying to communicate between processors using RPMSG.I see that RPMSG's are formed under /dev.ttyRPMSG0, ttyRPMSG1.I'm opened serial port in linux side;if ((fd = open("/dev/ttyRPMSG0", O_RDONLY | O_NOCTTY)) < 0) { GL.status |= YNDL_STATUS_FATAL_ERROR; fd = STDERR_FILENO; return EXIT_FAILURE; }Then when i call function write();write(fd, buffer, 200); // return -1Function retruns errno:11 (Resource temporarily unavailable)Buffer in IPCC isn't it ring buffer?Why am I getting an error ?
Time out check load galcore module expiredwhay are we getting this, how to fix this, ?
Hi hope you're well. I got stuck on part 6.Compile kernel source code->Compile and install on the current source code directory->make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040 giving an error as below. Thanks in advance! CC drivers/usb/dwc2/core.o CC drivers/usb/dwc2/core_intr.o CC drivers/usb/dwc2/platform.o CC drivers/usb/dwc2/drd.odrivers/usb/dwc2/drd.c: In function ‘dwc2_drd_update’:drivers/usb/dwc2/drd.c:86:35: error: ‘struct dwc2_hsotg’ has no member named ‘test_mode’; did you mean ‘dr_mode’? if (!avalid && !bvalid && hsotg->test_mode) { ^~~~~~~~~
Hi,we are using Stm32mp157a-dk1 board.We installed dfu-util tool in ubuntu. i didn't find any device (i.e,it shows no dfu capable USB device available). What may be the issue?Thanks in advance.
I found the following errors when I burned kernel alone and starterpackage. May I ask why this was caused? The kernel is through https://github.com/STMicroelectronics/meta-st-stm32mp/blob/dunfell/recipes-kernel/linux/linux-stm32mp/README.HO W_to.txt teaching burn, Starterpackage is delivered via STM32_Programmer_CLI -c port= USb1 -w Flashlayout_st - image - weston/trusted/FlashLayout_sdcard_stm32mp157c - dk2 - trusted. TSV
Hi,I am planning to build an OTA update system for STM32MP1 which I have been using in my development. My question here is that linux based changes can be catered as part of *.swu files in case of OpenSTLinux for A7 , but how do we pack updates for the M4 core alongwith *.swu files for STM32MP1.What if I have couple of other MCU connected via JTAG to MP1 and I want to provide them with OTA update , how will I manage this via Yocto ?Really appreciated all the inputs.
I need to provide 32kHz clock at MCO1 output pin on STM32MP157. I have successfully configured u-boot to provide this clock but as soon as kernel is started clock disappears. After some checks I have found that clock is disabled.My question is if it is possible to create device tree entry to force kernel to enable MCO1 output ?RegardsArkadiusz
Here the relevant parts of my device trees:******************TF-A*******************&pinctrl { rcc_pins_mx: rcc_mx-0 { pins { pinmux = <STM32_PINMUX('G', 2, AF1)>; /* RCC_MCO_2 */ bias-disable; drive-push-pull; slew-rate = <2>; }; }; &rcc { st,hsi-cal; st,cal-sec = <60>; st,clksrc = < CLK_MPU_PLL1P CLK_AXI_PLL2P CLK_MCU_PLL3P CLK_PLL12_HSE CLK_PLL3_HSE CLK_PLL4_HSE CLK_RTC_LSI CLK_MCO1_DISABLED CLK_MCO2_HSE >; st,clkdiv = < 1 /*MPU*/ 0 /*AXI*/ 0 /*MCU*/ 1 /*APB1*/ 1 /*APB2*/ 1 /*APB3*/ 1 /*APB4*/ 2 /*APB5*/ 0 /*RTC*/ 0 /*MCO1*/ 0 /*MCO2*/ >; }; &rcc{ pinctrl-names = "default"; pinctrl-0 = <&rcc_pins_mx>; status = "okay"; secure-status = "okay"; };******************UBoot*****************#ifndef CONFIG_TFABOOT &rcc { u-boot,dm-pre-reloc; st,clksrc = < CLK_MPU_PLL1P CLK_AXI_PLL2P CLK_MCU_PLL3P CLK_PLL12_HS
Hi everyone, I'm stucked into generating a stm32mp1 image with weston support. I 've followed the ST WIKI trying to generate the image, I made sure to have any depedencies installed and tried to rebuild twice the overall image starting from a fresh directory but without any luck. I also tried to generate the st-image-core image resulting with the same issue.I'm stucked into the last task called st-image-resize-initrdst-image-resize-initrd-1.0-r0 do_rootfs: The postinstall intercept hook 'update_mime_database' failed, details in /yocto/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-resize-initrd/1.0-r0/temp/log.do_rootfs ERROR: Logfile of failure stored in: /yocto/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-resize-initrd/1.0-r0/temp/log.do_rootfs.21295 ERROR: Task (/yocto/openstlinux-5.10-dunfell-mp1-21-03-31/layers/meta-st/meta-st-op
Hi ,How we use the CRC unit on Linux in STM32MP1.My target is to use the CRC engine for verification of data at application layer.The link here mentions info about the crypto unit : Crypto API overview - stm32mpuBut in reference no module talks about CRC also OpenSSL does not support CRC.So how it can be used?TIA
Hi ,We are using stm32mp157a processor in our custom board.We want to configure Spi1 to Ethernet Switch(ksz9893rnxia) (Note : we have 2 slaves for Spi1 at Uboot level(Source code ver 2018.11). I have done Pin control and node creations in dts files.1) we are using spi_setup_slave(unsigned int bus, unsigned int cs,unsigned int max_hz, unsigned int mode) (In my case we gave parameters as follows spi_setup_slave(1,0,1000,0) for slave setup but We are getting 0 as return value.We confused about bus,cs,max_hz,mode parameters in spi_setup_slave() function.path for spi_setup_slave Function :"https://elixir.bootlin.com/u-boot/v2018.11/source/drivers/spi/spi-uclass.c#L103".2.if we have more than 1 slave how do we differentiate the cs numbers for spi.3.which driver function is used for spi transmitting and receiving data.Our spi related dts as follows. board_level dts:&spi1 { pinctrl-names = "default", "sleep";  
sound { compatible = "audio-graph-card"; label = "STM32MP15-DK"; /* Sound card identified as STM32MP15DK in ALSA */ routing = "Playback" , "MCLK", "Capture" , "MCLK", "MICL" , "Mic Bias"; dais = <&sai2a_port &sai2b_port &i2s2_port>; status = "okay"; };Hi!! Is this correct. Can you please help me to understanding what does the source and sink means in this. How to make a routing.
Hello,I connected USB CN7 of STM32MP157A-DK1 to a PC with MS Windows.Sadly, the PC failed to find an RNDIS driver with:USB\VID_1D6B&PID_0104&MI_00\6&1164AF84&0&0000I tried to search for a driver, but I could not find any good.Both Windows XP and Windows 7 showed this.Where can I get a driver or an .inf for that?Thank you very much for your time.Sincerely.
We're working with the STM32MP157C SoC, and we're trying to troubleshoot the performance of a custom graphical application, using OpenEGL.It looks like Apitrace might be useful for this task, but I believe a copy is needed to run on the STM32MP157C, itself, in-order to generate the trace (which could then be read by Apitrace on another system). But, I'm under the impression that a special version is needed to be able to work with the GCNano GPU, and I have not been able to find it in Bitbake.Does anybody have experience with this, or know how to use Apitrace for making traces of OpenEGL applications running on the STM32MP157 family of SoCs?Thank you!
HiI try to implement lan9303 switch with stm32mp1.My current achievement is working only one channelMy working dts is&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 = <&switch>; nvmem-cells = <&ethernet_mac_address>; nvmem-cell-names = "mac-address"; st,eth-ref-clk-sel; clock-names = "stmmaceth", "eth-ck", "mac-clk-tx", "mac-clk-rx", "ethstp"; clocks = <&rcc ETHMAC>, <&rcc ETHCK_K>, <&rcc ETHTX>, <&rcc ETHRX>, <&rcc ETHSTP>; mdio0 { #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; switch: switch-phy@0 { compatible = "ethernet-phy-id0007.C0D1","ethernet-phy-ieee802.3-c22"; /*compatible = "smsc,lan9303-mdio";*/ reg = <0>; clocks = <&rcc ETHCK_K>; clock-
Hi, I have been working with the stm32mp157d-dk1, and im trying to keep a circuit on, waiting to a digital signal output produced by a script, but when i put the board on sleep mode, the signal automatically power off because the gpio module turns off too. Is there any way to know, natively, if the system still running, although it is sleep mode?
Hello,I read the STM32MP boot process in this link.And it is a generic Embedded Linux boot process (ROM, SPL, Uboot, Kernel).But, when I read further about STM32MP I figured out that U-boot UEFI commands are enabled, and there is support for PXE network boot which is supported from UEFI environment which is in this case executed from U-boot. Also I found a GPT support on flash memories (eMMC, ..).I'm asking is there a documentation about UEFI on STM32MP ? Like:Is it optional ? (Can it be disabled ?)Is there support for EDK and UEFI application development ?Is UEFI boot process documented ?Thanks,Talel
openstlinux-5.10-dunfell-mp1-21-07-21 I am building st-image-core image in a Ubuntu 20 container on Fedora 34.Any ideas? ERROR: u-boot-stm32mp-2020.10.r1-r0 do_packagedata: Can NOT get PRAUTO, exception No module named '_sysconfigdata' NOTE: recipe u-boot-stm32mp-2020.10.r1-r0: task do_packagedata: Failed ERROR: Logfile of failure stored in: /__w/meta-flutter/stm32mp15-dunfell/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/stm32mp1_disco-ostl-linux-gnueabi/u-boot-stm32mp/2020.10.r1-r0/temp/log.do_packagedata.1303648 ERROR: Task (/__w/meta-flutter/stm32mp15-dunfell/layers/meta-st/meta-st-stm32mp/recipes-bsp/u-boot/u-boot-stm32mp_2020.10.bb:do_packagedata) failed with exit code '1'Searching the line 1 string indicates it may be related to a host contamination issue.I'm trying to get a CI validation job running for my meta-flutter layer.CI job: https://github.com/meta-flutter/meta-flutter/blob/jw/stm32mp15/.github/workflows/stm32mp
..
Hi all, I'm using STM32MP1 and stress it so to understand until the display resolution it can support. I'm using a demo board and the demo SW installed.How can I change the display resolution via shell? Thanks
Hi,We are using Stm32mp157a processor and uboot2018.11 version.We have QSPI interface to NOR flash. We want to write,Read and erase the Data in Qspi Memory(i.e,Nor flash).We want to boot the image from Nor flash,How can we do that ?Thanks in Advance.
Hi,We are using stm32mp157a processor and we are working on uboot-v2018.11 at Linux side. I have an idea on board-debug-uart_init().Path for board_debug_uart_init().Path :board/st/stm32mp1/board.cIn board-debug-uart_init() .We have only UART_TX information i.e They configured only UART_TX pin in board_debug_uart_init() function.I need to know where will we configure UART_RX pin. Refer the below link for uboot-v2018.11 source code Analysis.https://elixir.bootlin.com/u-boot/v2018.11/source
Hello, my main seriale console should be USART2 instead of UART4. I modified the kernel dts as follows: chosen { stdout-path = "serial0:115200n8"; }; aliases { ethernet0 = &ethernet0; mmc0 = &sdmmc1; mmc1 = &sdmmc2; serial0 = &usart2; };and it configures correctly the kernel console. If I try the same modification in tf-a and u-boot dts, at boot i see the log starting on uart4, but it blocks at this point Preparing exit to normal world No serial driver foundShould I modify some boot env too?
在根�?�ST�??供的tf-a编译阶段,为什么我使用make -f Makefile.sdk TF_A_CONFIG=trusted TFA_DEVICETREE=stm32mp157c-dk2 all这个指令编译的时候会报下�?�这些错误?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.