Get ready for the STM32 Summit 2026 | Online, November 3
Join conversations with your peers and ST experts. Explore the full potential of STM32 microprocessors for your embedded design.
Most recent activity
Hi,I am new to STM32 and the Signing Tool and I'm trying to sign using a key from an HSM (nitrokey) but i get the following error:"Error loading pkcs#11 module functions".I run the following on Ubuntu 20.04:STM32MP_SigningTool_CLI --binary-image [path to stm32 file] --algorithm 2 --module /usr/lib/x86_64-linux-gnu/engines-1.1/libpkcs11.so --key-index 0x0 --slot-index 0x0 --password 123456 --output ./signed.stm32Any help appreciated!ThanksDoug
My environmentSTM32MP157C-DK2ST OpenSTLinux - Weston - (A Yocto Project Based Distro) 4.0.4-openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23 stm32mp1 ttySTM0Linux stm32mp1 5.15.67 #1 SMP PREEMPT Thu Sep 8 10:32:54 UTC 2022 armv7l armv7l armv7l GNU/Linux2.2 Configure the AI OpenSTLinux package repository↑Once the board is booted, execute the following command in the console in order to configure the AI OpenSTLinux package repository:root@stm32mp1:~# wget http://extra.packages.openstlinux.st.com/AI/3.1/pool/confi g/a/apt-openstlinux-ai/apt-openstlinux-ai_1.0_armhf.deb --2022-11-27 10:05:26-- http://extra.packages.openstlinux.st.com/AI/3.1/pool/config/a/apt-openstlinux-ai/apt-openstlinux-ai_1.0_armhf.deb Resolving extra.packages.openstlinux.st.com... 52.219.169.48 Connecting to extra.packages.openstlinux.st.com|52.219.169.48|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1128 (1.1K) [application/x-debian-package] Saving to: 'apt-openstlinux
HiWe are using SEEED studio 102110318 module which uses STM32MP157CAC3 processor. We want to know if there is any way we can keep processor pin PD13 pin to low state in suspend state. We want the pin to maintain low state while in sleep mode. We have added pullup on this pin in Hardware which is affecting one of our peripheral operation in sleep mode. For this reason we want this pin to be set low which will solve the issue. We do not have any other option to remove pullup in hardware as our device production is completedPD13 is used as PWM to control LCD backlight, Is there any possibility to maintain PD13 as its runtime state during suspend mode, basically i dont want to control this pin during suspend modeI tried in sysfs, to control autosuspend_delay_ms but im getting IO error please find below imageis there any way to control it from suspend mode?Is there any other drivers that will support this feature?RegardsSrini
Hi!I am using STM32MP157C-DK2 board and I want to share memory between to processor. My idea is to update variable in the M4 core and then read it in the A7 core (linux). To do this, I create a section in SRAM3 (both cores can access) and save the variable in it:STM32MP157CACX_RAM.ld /* MODIFICATION STARTS HERE */ .buffer(NOLOAD) : { . = ALIGN (1); . = ABSOLUTE (0x10041000); *(.TxBuffer) } > SRAM3_ipc_shmI am using STM32MP157C-DK2 board and I want to share memory between to processor. My idea is to update variable in the M4 core and then read it in the A7 core (linux). To do this, I create a section in SRAM3 (both cores can access) and save the variable in it:STM32MP157CACX_RAM.ld /* MODIFICATION STARTS HERE */ .buffer(NOLOAD) : { . = ALIGN (1); . = ABSOLUTE (0x10041000); *(.TxBuffer) } > SRAM3_ipc_shmMain.cuint8_t x[4] __attribute__ ((section(".TxBuffer"), used));I have debugged and checked that
..
*** The source tree is not clean, please run 'make ARCH=arm mrproper'*** in /home/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/linux-5.10.10***make[2]: *** [outputmakefile] Error 1make[1]: *** [/home/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/linux-5.10.10/include/config/auto.conf.cmd] Error 2make[1]: Leaving directory `/home/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/build'make: *** [__sub-make] Error 2
HelloI have problem, i can't flash emmc on SoM MYC-YA157C-V2 (STM32MP157A).I use STM32CubeProgrammer ver.2.11.0 under Windows 11 OS.Tried to use STM32CubeProgrammer and _CLI (with different wait timeouts).My firmware script:set tsv="FlashLayout_emmc_stm32mp157c-ya157c-512d-v2-trusted.tsv" set stprog="C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" %stprog% -c port=usb1 -tm 30000 -w %tsv%While downloading i get the following log:Warning: Timeout is forced to 30000 ms USB speed : High Speed (480MBit/s) Manuf. ID : STMicroelectronics Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000 SN : 003F00333130511539373430 DFU protocol: 1.1 Board : -- Device ID : 0x0500 Device name : STM32MP1 Device type : MPU Revision ID : -- Device CPU : Cortex-A7 Start Embedded Flashing service Memory Programming ... Opening and parsing file: tf-a-stm32mp157c-ya157c-512d-v2-serialboot.stm32 File : tf-a-s
Hi,we are using a coin cell to supply the internal RTC of an STM32MP157 when our system is unpowered.This works as expected - as long as the external supply is off. As soon as the system is powered on, the battery is discharged with >20µA.Observing the register ADC_CCR shows that VBATEN is permanently set, connecting VBAT to the ADC input and a resistor devider (as stated in Fig. 248 in the reference manual).[Edit: removed misleading reference to ADC driver]In my understanding VBATEN is supposed to be set only while (and shortly before) VBAT is actually sampled. Otherwise the switch as seen in Fig. 248 does not make much sense to me.
Hi Everybody,I would like to completely boot kernel 5.10-dunfell (last year) from a 64MB dataflash (nor0). No mmc0 or nand0. Compiled the correct DTS with TF-A, U-Boot and kernel, I would like to use the following TSV for STM32CubeProgrammer:#Opt Id Name Type IP Offset Binary - 0x01 fsbl1-boot Binary none 0x0 tf-a-stm32mp151a-***-mx-usb.stm32 - 0x03 fip-boot Binary none 0x0 fip-stm32mp151a-***-mx-trusted.bin P 0x04 fsbl1 Binary nor0 0x00000000 tf-a-stm32mp151a-***-mx-nor.stm32 P 0x05 fsbl2 Binary nor0 0x00040000 tf-a-stm32mp151a-***-mx-nor.stm32 P 0x06 fip Binary nor0 0x00080000 fip-stm32mp151a-***-mx-trusted.bin PDE 0x07 u-boot-env Binary nor0 0x00480000 none P 0x10 UBI Binary nor0 0x00500000 rootfs.binwhere *** is my project code (obfuscated).Once started, U-Boot fails to proceed to load rootfs.bin, which contains the kernel, modules and filesystem as a UBI partition. This was produced by Buildroot and it is valid; I checked loop-mounting it with mtdram. The type for UBI is Binary s
Hi,root@si-rd22:/home/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/u-boot-stm32mp-2020.10.r1-r0/u-boot-stm32mp-2020.10.r1# make stm32mp15_defconfigMakefile:40: *** missing separator. Stop.can anyone please let me know in makefile line no. 40 I tried putting TAB but still error is not resolved.Makefile:else ifeq ("riscv64", $(MK_ARCH)) export HOST_ARCH=$(HOST_ARCH_RISCV64)endifundefine MK_ARCH // line no 40Thankyou
Hi,We are using SEEED studio 102110318 module which uses STM32MP157CAC3 processor. We want to know if there is any way we can keep processor pin PD13 pin to low state in suspend state. We want the pin to maintain low state while in sleep mode. We have added pullup on this pin in Hardware which is affecting one of our peripheral operation in sleep mode. For this reason we want this pin to be set low which will solve the issue. We do not have any other option to remove pullup in hardware as our device production is completedRegardsNarendra Singh
I want to use arm-ostl-linux-gnueabi-gcc on windows. I have installed stm32mp1-gcc9.3.0-r2.exe on my windows 10 OS. When I try to compile a code, libraries like stdlib.h etc not found error appears. How can I resolve this?
Hi.I am following the instructions written in STM32MP1 Developer Package - stm32mpu and meta-st-stm32mp/README.HOW_TO.txt at kirkstone · STMicroelectronics/meta-st-stm32mp · GitHub to build u-bootWhen I execute make -f $PWD/../Makefile.sdk all, I get following message. Missing u-boot-stm32mp157a-dk1-trusted.dtb file in folder: '$FIP_DEPLOYDIR_UBOOT' or '$FIP_DEPLOYDIR_ROOT/u-boot'make: *** [/home/itron/Documents/workspace/STM32MP1/Developer-Package/stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sources/arm-ostl-linux-gnueabi/u-boot-stm32mp-v2021.10-stm32mp1-r1-r0/u-boot-stm32mp-v2021.10-stm32mp1-r1/../Makefile.sdk:130: fip] Error 1I did cd $PWD/../../FIP_artifacts/u-boot, I can see u-boot-stm32mp157a-dk1-trusted.dtb is in there though.I am using v22.06.15 for SDK and SourceThanks in advance
Hi ST experts,Would like to check if STM's MPU able to support Window CE 6 or Linux platform?Thank you
Hi!Problem: The board boots correctly into the Linux kernel, but the kernel is unable to mount the rootfs.We designed a custom board using stm32mp157f. It is based on the DK2 with some differences:PLL Base clock 48Mhz (instead of 24MHz)Other power supply than the pmic (with a fixed power regulators)eMMC on board (not used)Therefore changes to the tf-a and u-boot (dts) had to be made.The changes were applied on copies of the dts files for stm32mp157f-dk2.u-boot sees mmc0:STM32MP> mmc info Device: STM32 SD/MMC Manufacturer ID: 9f OEM: 5449 Name: SDCIT Bus Speed: 50000000 Mode: SD High Speed (50MHz) Rd Block Len: 512 SD version 3.0 High Capacity: Yes Capacity: 15 GiB Bus Width: 4-bit Erase Group Size: 512 Bytesand is able to load the kernel and initrd:bootcmd_nexio boot_syslinux_conf extlinux/nexio_extlinux_6.conf switch to partitions #0, OK mmc0 is current device Scanning mmc 0:4... Found /extlinux/nexio_extlinux_6.conf Retrieving file: /extlinux/nexio_extlinux_6.conf 334 bytes read
CK_SCMI0_HSE is a syntax error when compiling with dtc, but it does not exist in the file stm32mp1-clks/h. Is it okay to set it to CK_HSE?
Custom PCB, STM32MP157C chip. Linux 5.7.10. Buildroot build. No issues - Linux boots to console prompt without trouble, no errors. I can view device registers and all memory regions using Segger Jlink via SWD in both SPL and UBoot. Once Linux starts - I can only view memory from 0xC0000000 to 0xCFFFFFFF, i.e. the DRAM. Any attempt to read internal RAM or device registers via SWD fails with "cannot read memory". JLink connected to CPU 0 (A7). If connected to M4 all I get is 0x23000000 regardless of what address I try to read (but the M4 is still in reset so that may be the reason).I am not certain if SWD read goes through A7 virtual memory mapping or not - but anybody know what needs to change so I can access internal RAM space and device registers from SWD once Linux is running ?
Hello everyone,I need a way to synchronize A7 and M4 cores (find the same timestamp) within 1 ~ 2 usec. Is there any shared timer or resources except for memory and virtual serial com between these two cores? I have a PPS signal and I want A7 to be aware of its arrival, but it has a 10 usec latency from the moment the PPS signal arrives! I do appreciate it if you let me know about viable methods I can take to mitigate this issue. Best,Saeed
Hi ST Community,I have been trying to add the WLAN interface to my stm32mp157f-dk2 board with the distro "openstlinux-weston" and the machine "stm32mp1" without success with the following documentation:I have applied the kernel configuration given in chapter 3 of the following link https://wiki.st.com/stm32mpu/wiki/WLAN_overview#How_to_use_WLANI checked that the file "stm32mp157f-dk2.dts" has the configuration described in the chapter 3.2 of the following link https://wiki.st.com/stm32mpu/wiki/WLAN_device_tree_configuration#cite_note-stm32mp151.dtsi-6Also I checked that the stm43mp1.conf file (machine configuration file) has the following settings MACHINE_FEATURES += "wifi" WIFI_LIST += "linux-firmware-bcm43430"After applying all these settings and rebuilding the image, when I connect to the stm32mp157f-dk2 board and apply the command "ifconfig -a" I don't see any new WLAN interface.Maybe I'm missing something?Thanks in advance
Hi! I have created a program to send messages between cores (A7 and M4), using virtual uart. The messages that are sent from the A7 core are received by the M4 core. My error occurs when I try to read the messages that are sent from the M4 core to the A7. The program that I have created in linux is the following (M4 program is running): How can I read the messages that are sent from the M4 core?Is there any example to follow?Thanks!
Hello, I would like to disable the thermal shutdown at 120C on STM32MP157A-DK1 which embeds a STM32MP157A. It runs Yocto Project and contrary to other boards I worked on, I cannot turn off and even change the critical temperature (the procedure is the same on other boards it succeeded) so the board is turning off itself.Any help is welcome. Thank you
Hi,I'm using stm32mp153c and I managed to start M4 code after the SPL initialization and before U-BOOT. All initializations work fine except for the MX_OPENAMP_Init.I see that if I start the code after SPL the variable of num_of_vrings (that is equal to the define VRING_COUNT 2) is 0. Whereas if I start the M4 code directly from linux the variable is set to 2 and the OPENAMP initialization works.I tried to set a delay of 1 minute before the IPCC and OPENAMP initializations (in order to wait for LINUX to enable virt_uart and rpmsg_sdb devices) but the OPENAMP initialization still failed.Any suggestions?Thanks in advance.Best regards,Andrea
Hi there, I've got an STM32MP157F-DK2 devkit, I managed to set up all the packages, including Yocto distribution (Distribution Package) and all seems to be working fine for me. Now I'm starting to modify ST distribution, just to get used to the environment. ... I'm working on the splash screens right now. I easily changed the Uboot splash screen: I only needed to modify .bb recipe for uboot splash and copy the correct images to the right folder. Now I'm trying to modify also the Kernel splash screen, and things started to get really confusing... I did some research and I discovered that the ST meta-layer seems to use a modified version of psplash script from Poky. I found that in the layer meta-st/meta-st-openstlinux/recipes-core/psplash/psplash-drm there's what I'm looking for. However, I can't figure out how to make things work properly. What do I have to change? What kind of images should I use? (I tried png 480x272 8bits depth but they seem not working) Thanks so muchSimone
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.