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,I'm working with the STM32MP15 and have found a problem with USART1 during the boot process on a secure boot enabled (TZEN) hardware. The system freezes when U-Boot tries to reset USART1.The problem is with the RCC_APB5RSTSETR register (0x188). This register, including the USART1RST bit, can only be changed in secure mode (by OP-TEE) because of the TZEN restriction. However, U-Boot (non-secure world) attempts to modify this register by default. This is because of arch/arm/dts/stm32mp15-u-boot.dtsi:&usart1 { resets = <&rcc USART1_R>; };The ST devkits use UART4RST, this is not TZEN protected. But USART1 is and that causes a bus error:The system freezes.I solved this by using SCMI (so that OP-TEE does the actual reset):resets = <&scmi_reset RST_SCMI_USART1>;Initially, I thought to put this change in my stm32mp153c-custom-scmi.dtsi, but that ...u-boot.dtsi overrides it. So, the change needs to go in a stm32mp153c-custom-u-boot.dtsi.It took me half a day to fi
Hello,with CubeMx 6.9.2 i am generating Code for CubeIDE with the goal to figure out which periphery is assigned to the CA7 or the CM4.With Freemarker it is possible to get information about which IP's are assigned and used but i have no idea how to get information about to which Core (CA7 or CM4) they are assigned.Example:With CubeMx i assigned I2C1 to CM4 and I2C4 to CA7. This can be seen in the .ioc file. CortexA7S.IPs=IWDG2,BSEC\:I,DDR,ETZPC\:I,HSEM,PWR\:I,RCC,RNG1\:I,RTC\:I,TAMP,GIC\:I,I2C4 CortexM4.IPs=IPCC\:I,ETZPC,FREERTOS\:I,HSEM,PWR,RCC,SYS\:I,DMA,NVIC\:I,OPENAMP\:I,I2C2\:I,SPI2\:I,USART3\:I Using the Freemarker example for getting the IP list CA7 and CM4 IP's are summarized to one big pool. [#ftl] [#list configs as dt] [#assign usedIPs =dt.usedIPs] /* List of used IPs */ [#list usedIPs as ip] - ${ip} [/#list]/* List of used IPs */ - RCC - DEBUG - ETZPC - I2C1 - I2C2 - I2C4 - I2C5 - IPCC - PWR - SPI1 .... - NVIC Thank in advance for hints or solutionChee
Dears,I use STM32MP151FAD3 together with STPMIC1. Nowdays I monitored the voltage of vddcore and found it's not stable shown as below.Mostly it's around 1.2v while sometimes it's up to 1.33v .Referring to documentation, I guess it's casued by dynamic voltage and freqency scaling (DVFS). Is my thought correct? Also, is it a normal scenario? will the ustable vddcore have any inflence on EMC?
Hello! Although, the OS is not supported, I'd be happy to get any clues on my relatively generic question.I have realized, that TEX remapping registers (PRRR and NMRR) values are hardcoded in Linux kernel source..equ NMRR, 0x40e040e0I'm particularly interested in the value for the first class of memory access. Lowest two bits (b00) describe Non-Cachable access for Normal memory. FreeBSD kernel uses Write-Back+Write-Alloc. type and it seems to cause problems. When it programs prrr&nmrr and then tries to flush entire unified TLB (p15, 0, r0, c8, c7, 0), I witness distortion of stack memory (zeroes) with lose of return address, etc.Is it kinda implementation dependent behavior of STM32MP157CAC or I shall investigate some OTP/Security settings, preprogrammed by vendor of my board?Thanks in advance for any clues!Stan
I'm having trouble in bringing up my custom board. I've made a custom device tree using CubeMX and adding the sections as described in "Lab-MP15_FromPartNumber_To_BasicDeviceTree_with_CubeMx". I can program fsbl-boot and fip-boot, but i'm not able to boot: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 @0xfff09000, non-secure privileged write, AXI ID 480Also earlier in the log:E/TC:0 0 print_probe_list:366 |- Driver stm32mp1-cpu-opp on node cpu0-opp-table failedI've seen earlier topics on this error (@debugging), the solution was to add a 'reserved memory' section in the u-boot device tree.I have this in my device tree, tried both 0xce000000 and 0xde000000, but I still get the error, any ideas?Attached is the full log and de decompiled .dtb from u-boot.
I have a custom board based on stm32mp157f-ev1 and stm32mp157f-dk2 board.In my custom layer:meta-st/meta-st-openstlinux/conf/distro/* copied and a new distro created based openstlinux-weston.confmeta-st/meta-st-stm32mp/conf/machine/* copied and a new machine created based stm32mp15-eval.confa new image recipe created based meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bblinux-stm32mp, u-boot-stm32mp, tf-a-stm32mp DTS files tuned using openembedded devtool.Image built using:$ DISTRO=mydistro MACHINE=mymachine META_LAYER_ROOT=layers/mylayer layers/meta-st/scripts/envsetup.sh$ bitbake-layers add-layer ../layers/mylayer$ bitbake myimageFlashed on sdcard and try to boot, but stucked after RAMDISK error message:[ 2.714949] hub 2-0:1.0: USB hub found[ 2.717446] hub 2-0:1.0: 2 ports detected[ 2.726168] RAMDISK: Couldn't find valid RAM disk image starting at 0.[ 2.731801] Waiting for root devi
I've been trying to cross compile pyzmq for my stm32mp135f-dk and I'm facing issues with it. I've ran the script to setup my environment for the SDK. And made the required changes in the setup file. Here's my stackoverflow post with the logs as well. https://stackoverflow.com/questions/77420874/cross-compiling-pyzmq-fails-because-the-setup-picks-up-the-x86-compiler-automati?noredirect=1#comment136505142_77420874Any help is much appreciated. The goal is to have a IPC mechanism between a C and Python application that is quick to implement.
Hello,I need to change the SD card interface voltage on stm32mp157f-evl board.As per my understanding we can control this via uSD_LDO_SEL, it can be 2.9volts or 1.8 volts.I need to change to 1.8 volts, how can one control this one via software?Warm regards,S
On STM32F4 has this and it is very easy to use. Does STM32MP15 -M4 MCU have same one?
Hi, we make custom board base on STM32MP15 and without PMIC and have problem with power off command.Does anyone know any document or hint about this? All research we have found always include PMIC.
Hello, i'm currently working on the stm32mp135f-dk with the kirkstone yocto version for layers provided by st. I'm trying to double all fs partitions (rootfs bootfs and userfs) to implement a software update mechanism with an active set of partitions and another one that will be used after being updated. My Flashlayout.tsv file generated by bitbake is the following:#Opt Id Name Type IP Offset Binary - 0x01 fsbl-boot Binary none 0x0 arm-trusted-firmware/tf-a-stm32mp135f-dk-usb.stm32 - 0x03 fip-boot FIP none 0x0 fip/fip-stm32mp135f-dk-optee.bin P 0x04 fsbl1 Binary mmc0 0x00004400 arm-trusted-firmware/tf-a-stm32mp135f-dk-sdcard.stm32 P 0x05 fsbl2 Binary mmc0 0x00044400 arm-trusted-firmware/tf-a-stm32mp135f-dk-sdcard.stm32 P 0x06 metadata1 Binary mmc0 0x00084400 arm-trusted-firmware/metadata.bin P 0x07 metadata2 Binary mmc0 0x000C4400 arm-trusted-firmware/metadata.bin P 0x08 fip-a FIP mmc0 0x00104400 fip/fip-stm32mp135f-dk-optee.bin PED 0x09 fip-b FIP mmc0 0x00504400 none PED 0x0A u-boot-e
hi experts i am not sure this is a right place to use and not good at English please be generousi am not good at linux , i read a wiki "STM32MP15 RAM mapping" and googled some informationi use kernel and u-boot from developerPackagei have no plan to use M4 , so i like to give MCU sram to linux systemin device tree if i remove "no map" property in reseved memory's retram, mcuram,mcuram2 configuration and also remove m4_rproc's memory-region property is it enough ?without no-map does MCURAM which has device tree with "compatible = "shared-dma-pool" be used as linux system shared-dma-pool ? another question is from wiki 3.3.2.2.MCU SRAM4 i can't find example configuration in device tree, where could i get that ? thank you sincerely
Hi there, I am working on an OSD32MP157F custom board inspired by STM32MP157F-DK and Octavo Red boards. The pinout is very similar to the stm32mp157f-dk with the main difference that the Murata LBEE5kL1BX-883 is connected to sdmmc3 instead of sdmmc2 and that there is no ethernet peripheral on the board. Some time ago I attempted to configure the LBEE5kL1BX WiFi part and I faced an NVRAM configuration conflict as explained here. After updating bootargs3 on sdio.txt the WiFi firmware was able to load and Wlan0 interface is functioning as expected since then. Last couple of days I attempted to enable Bluetooth on the same board too. After following Bluetooth Overview I enabled all necessary linux drivers including HCI UART driver, Bluetooth HighSpeed features etc. I also enabled Bluetooth on the dts following the BRCM documentation and the DK2 dts example. Main difference is the pinout is slightly different as seen on the dts below: &nbs
Hi, we need a buffer about 200KB on CM4 MCU (STM32MP153)We change the linker file as below, that allow 256KB heap (combine SRAM2 and SRAM3)But every time the buffer has more than 0x30000 (192KB) then it is failed, seem we can't combine SRAM2 and SRAM3 into one buffer. If the buffer stays on SRAM2 or SRAM3 only then it works, but if the buffer starts on SRAM2 and the end is on SRAM3 then fail.Does anyone know the reason?
I would like to use the Murata Wi-Fi/BT combo module 2BC on STM32MP1.Is it possible?If it is possible, I would like to know how to integrate 2BC on STM32MP1. I understand following.- Murata 1DX are mounted on STM32MP1 evaluation board.- Murata has the necessary FMAC and other files. https://github.com/murata-wireless- CYW4373 description in the file below. https://github.com/torvalds/linux/blob/master/include/linux/mmc/sdio_ids.h Best Regards,Tsutsumi
Hi,I am using a PCM3060 codec connected to a STM32MP135 MPU over I2S1 and I2C, and compiling STM Linux (v6.1) (along with STM's version of TF-A, Optee, and U-Boot) using Buildroot.I had some trouble getting ALSA to output to the codec, it kept giving the response: 44004000.audio-controller-pcm3060-dac: ASoC: pcm3060-dac <-> 44004000.audio-controller No matching formats I managed to work around the issue by changing the formats entry in snd_soc_dai_driver, in pcm3060.c (https://github.com/STMicroelectronics/linux/blob/7928f69738d2e57ee2a0dba6e9e680a3bf75ded9/sound/soc/codecs/pcm3060.c#L189) to SNDRV_PCM_FMTBIT_S32_LE. #define PCM3060_FORMATS (SNDRV_PCM_FMTBIT_S32_LE) static struct snd_soc_dai_driver pcm3060_dai[] = { { .name = "pcm3060-dac", .id = PCM3060_DAI_ID_DAC, .playback = { .stream_name = "Playback", .channels_min = 2, .channels_max = 2, .rates = PCM3060_DAI_RATES_DAC, .formats = PCM3060_FORMATS, }, .ops
Is there any documentation or guidance on how to configure Yocto to deploy a custom u-boot image? I've been following https://wiki.st.com/stm32mpu/wiki/How_to_configure_U-Boot_for_your_board and https://wiki.stmicroelectronics.cn/stm32mpu/wiki/STM32MP15_U-Boot with some success, however these stop short of Yocto.I am able to build our custom build (defconfig, device-tree, with custom source adjustments) but I'm struggling to integrate into Yocto, to complete the flow to a final SD Card image.When I add my variant to `UBOOT_CONFIG` it builds it, but `trusted_stm32mp15` is appended and seems to be the one in the deploy folder: tmp-glibc/deploy/images/<IMAGE_NAME>/u-boot/ and tmp-glibc/deploy/images/<IMAGE_NAME>/fipMy machine.conf file has:UBOOT_CONFIG = "viper_butcombe_beta"UBOOT_CONFIG[viper_butcombe_beta] = "viper-innovations_butcombe-beta_defconfig,,u-boot.dtb" and I see layers/meta-st/meta-st-stm32mp/conf/machine/include/st-machine-
The LPTIM_TypeDef struct that is used throughout many of the HAL header files contains a few RESERVED fields that cover unused address offsets in the peripheral's memory map.The first of these, RESERVED1, is declared as uint16_t. I believe that this is incorrect and that it should be a uint32_t field to ensure that the address offsets of the subsequent fields are correct.Could someone please double-check and correct this if necessary?
Hi, I tried the Hello World application on Cortex-A7, I want to try linking my custom application library in this example. Can I do that?I changed the print_hello function and calling another function from my custom library.I tried linking custom library in Makefile byLDFLAGS += $(shell pkg-config --libs gtk+-3.0) -lxxxxx.aThe library file is in the same folder. But Get the below error: arm-ostl-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/usr-x/STM32MPU_workspace/Developer-Package/SDK/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi -o gtk_hello_world gtk_hello_world.c -O2 -pipe -g -feliminate-unused-debug-types -Wall -pthread -I/home/usr-x/STM32MPU_workspace/Developer-Package/SDK/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/usr/include/gtk-3.0 -I/home/usr-x/STM32MPU_workspace/Developer-Package/SDK/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/usr/include/gio-unix-2.0 -I/home/usr-x/STM32MPU_workspace/Developer-Package
Hello!I have a MP1 board (STM32MP157), and i was wondering if one can have control over which individual pins are used when it comes to FMC. I want to use FMC for PSRAM, 8-bit data mode, but the pin that corresponds to FMC_A2 is already in use (PF2), which would leave me with only 2 address pins (A0 and A1). Would it be possible to skip that pin and have for example FMC_A0, FMC_A1, FMC_A2, FMC_A3 as address pins? It doesnt seem to be possible directly with the CubeIDE but maybe it can be configured via the Device TreeThanks in advance
Dear ST community,I am currently trying to install an 8bit 8080 LCD , and i figured out that it needs FMC $ to be set up in devicetree in order to interface with it using DRM in Linux. i have the following device tree pinctrl nodes setup fmc_pins_mx: fmc_mx-0 { pins { pinmux = <STM32_PINMUX('D', 0, AF12)>, /* FMC_D2 */ <STM32_PINMUX('D', 1, AF12)>, /* FMC_D3 */ <STM32_PINMUX('D', 4, AF12)>, /* FMC_NOE */ <STM32_PINMUX('D', 5, AF12)>, /* FMC_NWE */ <STM32_PINMUX('D', 7, AF12)>, /* FMC_NE1 */ <STM32_PINMUX('D', 14, AF12)>, /* FMC_D0 */ <STM32_PINMUX('D', 15, AF12)>, /* FMC_D1 */ <STM32_PINMUX('E', 7, AF12)>, /* FMC_D4 */ <STM32_PINMUX('E', 8, AF12)>, /* FMC_D5 */ <STM32_PINMUX('E', 9, AF12)>, /* FMC_D6 */ <STM32_PINMUX('E', 10, AF12)>, /* FMC_D7 */ <STM32_PINMUX('F', 0, AF12)>, /* FMC_A0 */ <STM32_PINMUX('G', 9, AF12)>; /*
Hi ST Community,I am trying to flash a eMMC with STM32CubeProgrammer, in a STM32MP157F custom board. I am using a GPT partition file and a img.I can see the system is creating partitions and flashing, but the structure is wrong for eMMC, so it does not boot-up. Sometimes, trying different structures, I get an error "wrong memory layout" in the console when I am trying to flash.The tsv file I am using at the moment is:And the gpt table is as follows:I believe the solution is in the right configuration of the table, can somebody detail on how to do it?Thanks.
I have a board where a secondary CPU can select the STM32MP1's boot mode. On initial boot, the MP1 boots from NOR flash. I can then send a command to the secondary CPU which switches the MP1's BOOTx pins to enable engineering boot and resets the MP1. When I am done, I send a command to the secondary CPU to boot the MP1 from NOR flash. However, after I switch out of engineering mode, the MP1 only runs the serial loader. I have to power cycle the board to make the MP1 boot from NOR flash. Also, I have to let the board sit for a few seconds before powering it up or the MP1 goes to serial loader again instead of NOR boot.Is this a limitation of the MP1 boot process, or is there a way I can reset the MP1 to boot from NOR flash without cycling power?
Recently for a design I had used STM32 MPU (part# "STM32MP157FAA1") with DDR3L (part# "NT5CC256M16ER-EK"). For simulating data & address lines from the IBIS model "ibis5_4gbddr3_e_1p35_0c~95c.ibs" in ANSYS for 500MHz frequency the source transmitter eye waveform itself doesn't look proper. Attached the parameter setup and also the eye diagram waveform image for one of the data lines for reference.What would be the cause of this distorted signal from the source itself? Suggest for any changes if required from the parameter setup point of view.
I am bitbaking the core-image-minimal image, for a plain yocto poky distribution (Kirkstone), using stm32mp1 as my machine, and I am trying to figure out how the various st partition images are included in the build process. That is, how and where are the st-image-bootfs.bb, st-image-userfs.bb and st-image-vendorfs.bb included in the core-image-minimal build? Everything is build as intended, but I cannot figure out how.I cannot find anywhere, where the recipes are added to any of the environment variables I usually use to include recipes, (IMAGE_INSTALL, PACKAGE_INSTALL, etc.).The only place I can find a reference to, for instance the bootfs recipe, is in meta-st-stm32mp/conf/machine/include/st-machine-common-stm32mp.incSTM32MP_BOOTFS_IMAGE ?= "st-image-bootfs" But I cannot trace that to how the recipe is included in the build.Please help.
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.