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
WORKING:> sudo java -jar SetupSTM32CubeProgrammer-2.11.0.exeFAILS> sudo java -jar SetupSTM32CubeProgrammer-2.12.0.exeCompletely uninstalled JAVA, then reinstalled - no change.Reviewed several community posts, no solution yet.Environment: macOS Big Sur
I am trying to port a FW which was running on STM32H7 controller to F4 core of STM32MP157.I get this errorsCM4.elf section `.text' will not fit in region `SRAM1_text' CM4 C/C++ Problemmake: *** [makefile:68: CM4.elf] Error 1 CM4 C/C++ Problemregion `SRAM1_text' overflowed by 1073768 bytes CM4 C/C++ Problemregion SRAM1_text overflowed with text and data CM4 C/C++ Problemsection .data VMA [0000000010020000,0000000010020327] overlaps section .text VMA [0000000010000000,0000000010124003] CM4 C/C++ ProblemHow to over come this problem, is it possible to change the allocated RAM for M4 code?
Hi,I have an stm32mp157d-dk1 board, for which I am building the core-image-minimal image within the poky (Dunfell) distribution. Other than adding the "meta-st-stm32mp" layer I have not made any ST related customisations.I am trying to launch a custom elf file from the bootloader, following section 3.2.1 of the guide: How to start the coprocessor from the bootloader I am running into a few issues:1. If I simply modify CONFIG_EXTRA_ENV_SETTINGS as suggested I cannot flash the SD card:That is, if I modify CONFIG_EXTRA_ENV_SETTINGS so that it becomes (I added some additional print-out, that I do not believe is causing my situation): #define CONFIG_EXTRA_ENV_SETTINGS \ "stdin=serial\0" \ "stdout=serial\0" \ "stderr=serial\0" \ "kernel_addr_r=0xc2000000\0" \ "fdt_addr_r=0xc4000000\0" \ "fdtoverlay_addr_r=0xc4100000\0" \ "scriptaddr=0xc4100000\0" \ "pxefile_addr_r=0xc4200000\0" \ "splashimage=0xc4300000\0" \ "ramdisk_addr_r=0xc4400000\0" \ "altbootcmd
Hi,I am using the stm32mp157f-dk2, I'm using the core-image-minimal image and i'm trying to create a custom image. However, I would like to increase the rootfs size in order to add modules in the root filesystem once the kernel starts. I tried modifying the file /meta-st/meta-st-stm32mp/conf/machine/include/st-nachine-common-stm32mp.incIMAGE_ROOTFS_MAXSIZE ?= "2017660"Then, i tried to modify the /meta-st/meta-st-stm32mp/recipes-devtools/sdcard-raw-tools/sdcard-raw-tools/create_sdcard_from_flashlayout.sh file, just as the post DEFAULT_RAW_SIZE=4096 DEFAULT_ROOTFS_PARTITION_SIZE=2097152I also modified the local.conf fileIMAGE_ROOTFS_EXTRA_SPACE = "1008830"The problem i'm expecting is, the image built, but I see this message at the end of the build processWARNING: quoia-custom-1.0-r0 do_create_flashlayout_config: >>> Cannot generate FlashLayout_sdcard_stm32mp157f-dk2-trusted.tsv file: the st-image-userfs-poky-stm32mp1.ext4 binary size (1167261696) for userfs
I am trying to configure some HW IP to work with the M4 core of the STM32MP157, I can find only the GPIO already assigned to other IPs ont he development Kit.How to configure GPIO's and configure interrupts related to SPI DMA from the M4 side?Attached is a screenshot for the available GPIO's on CubeMX.
HelloIn the new version of Yocto release mickedore, SIGN_TOOL variable needs to be specified to sign TF-A binary which should corresponds to STM32CubeProgrammer signing tool https://wiki.st.com/stm32mpu/wiki/Signing_toolPractically, how can we set the the variable to the STM32CubeProgrammer signing tool? Is there a Yocto recipe native that include this tool?https://github.com/STMicroelectronics/meta-st-stm32mp/blob/mickledore/recipes-bsp/trusted-firmware-a/tf-a-stm32mp.inc#L296Thanks
Hi,I bought two same board and use one to test.After upgrade stlinux on this testing board, the cpu it can recognize is only one when the other one can recognize it two.could you give me a guide to fix it and why this happened?Thanks.
I have STM32MP157A-DK1 boardI am using distribution package.I want to add c++ library based on cmake to my distribution.I crated the recipe using commanddevtool add --no-same-dir ../pass/to/mylibThen build usingbitbake mylibThe build is done but I get this error bu do_package_qa"do_package_qa: QA Issue: -dev package mylib-dev contains non-symlink .so '/usr/lib/mylib.so' [dev-elf]"what is the reason for such error and how to overcome it?ThanksHossam
I have a custom board with a stm32mp151c and 256M DRAM.Trying to get optee 3.12 from ecosystem 3.0.0 to start.Everything works fine with tf-a 2.4-r1 and sp_min, u-boot 2020.10 etc.But I can't get optee to start. I've enabled a high loglevel and the last print I get from optee is:...I/TC: Pager is enabled. Hashes: 2208 bytesThen everything goes quiet. No stacktrace, fault, or anything else. Just "dead".To me, this looks like some very basic issue with DRAM sizes etc. But I can't say for sure.My dts looks correct with memory regions and declarations.But I noticed that in the build conf.mk was getting some weird stuff.CFG_DRAM_SIZECFG_SHMEM_STARTCFG_TZDRAM_STARTThese three had some wonky values for a 256M board. And they seem to be used?So my conclusion is that it does not suffice to set dts properties for optee, some tweaking of platform memory sizes (looks like there are options for 512M 1G etc, but not 256M) needs to be done.Anything else that needs to be fixed for a 256M board?Maybe t
When porting applications from single core M4's equipped with FLASH, the RAM associated with M4 in MP1 is supposed to cater for both RAM and former FLASH needs. It won't fit. How to overcome this if M4 code/data size cannot be reduced?
We are using the STM32MP157AABx device in our project and updating to the v5.0 Ecosystem and STM32CubeMX v6.9.0.When we generate our device tree files, the optee-os device tree tries to include:#include "stm32mp15xxab-pinctrl.dtsi"This file is not found in the optee-os-stm32mp v3.19.0 source tree referenced in the v5.0 Ecosystem.I have had to manually modify the dts to include:# include "stm32mp15xxac-pinctrl.dtsi"This is the closest match, but not equivalent to the number of gpio banks in the AABx package.Is this an issue with optee-os-stm32mp source code, the CubeMX tool, or user error in our configuration?
Doing a build using yocto mickledore it fails with this error message.CMake Error at host/xtest/CMakeLists.txt:3 (include): include could not find requested file: ... /tmp-glibc/work/osd32mp1_brk-ostl-linux-gnueabi/optee-test/3.19.0+gitAUTOINC+ab9863cc18-r0/recipe-sysroot/usr/include/optee/export-user_ta/host_include/conf.cmakeThe kernel is built correctly but it fails on building optee-test.It seems that the directories and files in export-user_ta are not auto-generated. What bitbake configuration makes this happen?
..
Hello, I am currently researching about possibilities in STM32MP1 dual core. I am trying to create user program that uses HW Semaphore. I used program from wiki:https://wiki.st.com/stm32mpu/wiki/Hardware_spinlock_overview.and makefile described here:https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Create_a_simple_hello-world_applicationwith including builded linux kernel 5.15.67.But I can't build program, because of numerous errors. I was trying to resolve some of errors by including them hard-coded way into user space program, but I think, that is not the correct way to fix these errors. How to properly build program including kernel files? Is there any include to be included when using kernel files? Or any other makefile switch? See attached files...Thanks for any tips.Some of compile errors:Original post (with less description):https://community.st.com/t5/other-tools-mpu/stm32mp1-build-user-program-with-hwspinlock
I tried to add development tools to my openSTLinux using apt-get install, but couldn't find gcc.so I tried to create a distribution including gcc, make, cmake and git.When I search for available recipes for gcc usingfind ../layers/ -iname "*gcc*.bb"I get the following list of gcc tools../layers/meta-st/meta-st-stm32mp/recipes-devtools/gcc-arm-none-eabi/gcc-arm-none-eabi-native_11.bb../layers/meta-st/meta-st-stm32mp/recipes-devtools/gcc-arm-none-eabi/nativesdk-gcc-arm-none-eabi_11.bb../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross-canadian_12.2.bb../layers/openembedded-core/meta/recipes-devtools/gcc/libgcc-initial_12.2.bb../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_12.2.bb../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-crosssdk_12.2.bb../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-sanitizers_12.2.bb../layers/openembedded-core/meta/recipes-devtools/gcc/gcc_12.2.bb../layers/openembedded-core/meta/recipes-devtools/gcc/libgcc_12.2.bb../
We are using STM32MP13 with Linux for the A7 and using HAL (no OS) for the M4 Coprocessor. In Linux we configured in device tree the I2S (codec and sound are also configured in device tree). &i2s1 { clocks = <&rcc SPI1>, <&rcc SPI1_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>; clock-names = "pclk", "i2sclk", "x8k", "x11k"; pinctrl-names = "default", "sleep"; pinctrl-0 = <&i2s1_pins_audio &i2s1_pins_z_audio >; pinctrl-1 = <&i2s1_sleep_pins_audio &i2s1_sleep_pins_z_audio >; status = "okay"; dmas = <&dmamux1 38 0x400 0x01>; dma-names = "tx"; i2s1_port: port { i2s1_endpoint: endpoint { remote-endpoint = <&codec_corscience_endpoint>; format = "i2s"; }; }; }; At M4 this was done using CubeIDE for the SPI3 and SPI4. These ports are working but as soon we play a sound using aplay the SPI3/4 hangs.
Isn't there a script file for generating RAW images for eMMC like the "create_sdcard_from_flashlayout.sh" file for generating RAW images for SD?Also, why is SD memory mapping different from eMMC memory mapping?
Hello,I am in process of designing my own STM32MP1 powered device. I was wondering if I can use STLINK-V3MODS as a drop in replacement for ST-LINK/V2-1 in STM32MP157-EVAL reference design. I need the Virtual COM interface embedded in device.-Mark
HelloI detect (regular) ST-LINK v32 with STM2CubeProgrammer, but it remains not connectrd.Please tell me what is the problem and how to fix this problem. ?[LOG]18:18:10 : STM32CubeProgrammer API v2.14.0 | Windows-32Bits18:18:13 : UR connection mode is defined with the HWrst reset mode18:18:13 : ST-LINK SN : 002800205553500E2039325618:18:13 : ST-LINK FW : V3J12M3B5S118:18:13 : Board : STLINK-V3SET18:18:13 : Voltage : 3.33V18:18:13 : SWD freq : 8000 KHz18:18:13 : Connect mode: Normal18:18:13 : Reset mode : Hardware reset18:18:13 : Device ID : 0x50018:18:13 : Revision ID : Rev Z
I want to emulate the stm32mp157 on qemu. I have been taking the kernel image and initrd from yocto build, but it is not loading the kernel. using the following commandqemu-system-arm \-M virt -smp 8,sockets=1,cores=4,threads=2 -m 4G \-cpu cortex-a7 \-device virtio-tablet-pci \-device virtio-keyboard-pci \-device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 \-device virtio-gpu-pci \-device virtio-rng-pci,rng=rng0 \-netdev tap,id=net0,ifname=$TAP,script=no,downscript=no \-object rng-random,filename=/dev/urandom,id=rng0 \-serial mon:stdio -serial null -nographic \-initrd senecos-image-stm32mp1-ems-c2-faa1-20230803140050.rootfs.cpio.gz \-kernel Image \-append 'root=/dev/ram0 rw debugshell ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8 console=ttyAMA0 console=hvc0 '
Hello,I would like to ask you few questions since I have some unclearances about STM32MP157F MPU:1. If 933MHz DDR3L RAM was connected to the MPU according to the schematic, will the MPU automatically underclock it to max 533MHz?2. Is it possible to connect an OLED display to the STM32MP157F?3. Since SLC NAND memories are quite expensive in higher densities (>= 16GB), would it be a problem if a different configuration such as TLC was used? Does the cell configuration also matter in e.MMC and what is its max data transfer rate for read/write when connected to SDMMC, if the datasheet says max I/O speed is 208 MB/s? Would it be possible to use HS200 mode to take advantage of the maximum capabilities of the MPU?4. If the Wi-Fi + Bluetooth module has a Wi-Fi SDIO host interface and as stated , the SDMMC supports data rates up to 208 MB/s, would it be possible to use the Wi-Fi 5/6 module to also take advantage of the MPU maximum capabilities instead of the Wi-Fi 4 65Mb/s (8,125MB/s)
Recently I got a problem with RPMSG driver when M5 coprocessor restarts. Thanks to https://community.st.com/s/question/0D53W00000936uRSAQ/kernel-panic-with-pollselect-syscalls-on-virtual-uart-devices-to-m4-core-when-m4-watchdog-restarts?t=1632144260162the problem is over.Now I get the same problem with RPMSG SDB driver (see attachment). Can you help me ?
I am working on yocto project. I started with a custom board based on stm32mp157. You can find the board description in this link custom board. Vendor has a board support package in dunfell version. But I am doing my project in kirkstone version. I have choosen my distribution packgae from the openstlinuxdistribution. I have following build configuration for creating the image:Build Configuration: BB_VERSION = "2.0.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "arm-emt_eglfs-linux-gnueabi" MACHINE = "emsbc-argon" DISTRO = "emt-eglfs" DISTRO_VERSION = "1.3" TUNE_FEATURES = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard" TARGET_FPU = "hard" DISTRO_CODENAME = "kirkstone" ACCEPT_EULA_emsbc-argon = "1" GCCVERSION = "11.%" PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp-argon" meta-emtrion-emsbc-argon meta-emtrion = "<unknown>:<unknown>" meta = "HEAD:f7766da462905ec67bf549d46b8017be36cd5b2a" meta-oe meta-initramfs meta-multimedia me
Hi,I'm having some difficulty routing 1GB DDR3L memory with the STM32MP151DAC1. Both reference boards available for this product use different memory or pitch configurations. I found an Application Note, AN5122, that guides through memory routing, but I would like some actual reference design example, to compare. There are any reference, ap notes, or anything to help with this?Regards,Arion Doneda
Hi,I find the 'STM32MP1_SeriesDDRmemory_routing_guidelines_layout_examples_V3.0' from ST's site.I've several questions: It seems the column 'STM32MP15XXAA LENGTH (mm)' is the package delay per pin, right?Actually, the delay is a time factor. But here the delay is given in 'mm', then what's the propagation speed ST used?Can you provide delays in ps? Or can I get the delays from the IBIS file?Thanks.
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.