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
Dear experts. we plan to use a STM32MP157, where the A7 core should have 512MB DDR RAM, and theM4 core 16 MB. What options exists, to give the M4 core that 16 MB of RAM?From the DS, i understand that the DDR RAM of the A7 is not accessible for the M4. Is that right?external QSPI PSRAM, would be low cost and low pin count. From the DS, the QSPI interface is only for Flash, not for PSRAM?external SRAM/SDRAM via the FMC? Could the M4 core occupy the FMC, while the A7 core using DDR?external SPI RAM, would be the slowest variant, but should be always possible.Is there an application note, showing how more then a MB RAM is added to the M4 core in an STM32MP15x?Best regards,Michael
Hi,We are using the meta-st-stm32mp layer in out Yocto build system. We have had the system run on the Dunfell distribution up until now with OPTEE as the secure OS.For Dunfell the version of OPTEE is 3.12 along with patches from ST, a we tried to upgrade to Kirkstone which uses OPTEE version 3.16. From what we see the secure storage is no longer compatible with the new version:We get errors like this when using the 3.16 version and the secure storage has been created with 3.12# optee_example_hello_world optee_example_hello_world: TEEC_Opensession failed with code 0xf0100001 origin 0x3We did another test with the official OpenST distribution on a DK2 board fist running Dunfell then upgrading to Kirkstone and we get the same results.We have asked upstream OP-TEE is there is an issue between the versions for backwards compatibility related to secure storage:https://github.com/OP-TEE/optee_os/issues/6296After this we went further and did a test with the upstream version of OP-TEE 3.12 and
Can not Flash STM32MP157FAD. with CubeProgrammer, and StarterPackage Image. First 2 files download ok, then get "Reconnecting the device...", and it never reconnects. And the MPU reset, with CubeProgrammer can download first 1 file. Windows11 drops the USB-DFU device. How to fix?
Good. I am trying to load the system to my stm32mp157c-dk2 using STM32CubeProgrammer software, but I get the same error when loading partition 13 every time. The error is as follows: Error: failed to download Segment[0] Error: failed to download the File Error: Download partition 0x13 failed Error: TSV flashing service failed Here's the whole process: magno@magno-Latitude-3380:~/Descargas/en.FLASH-stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/images/stm32mp1$ STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv ------------------------------------------------------------------- STM32CubeProgrammer v2.14.0 ------------------------------------------------------------------- USB speed : High Speed (480MBit/s) Manuf. ID : STMicroelectronics Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000 SN : 002B001F343851053833
U-Boot 2020.01-stm32mp-r1 (Oct 07 2023 - 14:05:57 +0800)CPU: STM32MP157FAD Rev.ZModel: STMicroelectronics STM32MP157F eval daughterBoard: stm32mp1 in trusted mode (st,stm32mp157f-ed1)DRAM: 512 MiBClocks:- MPU : 800 MHz- MCU : 208.878 MHz- AXI : 266.500 MHz- PER : 24 MHz- DDR : 533 MHzWDT: Started with servicing (32s timeout)NAND: 0 MiBMMC: STM32 SD/MMC: 1In: serialOut: serialErr: serialinvalid MAC address in OTP 00:00:00:00:00:00Net:Error: ethernet@5800a000 address not set.No ethernet found.Hit any key to stop autoboot: 0Boot over usb0! ==================When the program runs here, the MPU restarts, and this happens again and again
Hello,We are designing a custom board with the "STM32MP157FAC1" MPU.Would it be possible to get the die to BGA package pin delays for the DDR3 and the EMMC interfaces ?The AN5122 seems to only have track lengths. Our PCB track layout has some constraints that prevent us from completely copying the reference design layout for DDR. Another post mentioned an Excel table but can't find it in the documentation page for the IC.Thank You.Aron.
Hello everyone,I would like to implement a basic spi communication with an sx1276 transceiver using CM4 as master in standalone mode in order to get the chip id. The spi5 configuration has been done using stm32cubeide which is the way i did it with another couple of mcus (stm32l476rg, stm32l432kc), and it has worked fine. Could anyone help me providing any advice with the following code or an example of a basic spi communication in that context (CM4 in standalone mode on STM32MP157A-DK1). What is wrong ? /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2023 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file
I have a system (built using yocto kirkstone) working with the bootchain TF-a -> sp_min -> uboot when loaded from the sdcard and from the emmcI have tried to boot into uboot by loading it directly into memory (as a precondition to the use it to flash the emmc) by following this guide: https://wiki.st.com/stm32mpu/wiki/How_to_load_U-Boot_with_STM32CubeProgrammerI have used the correct tf-a binary and it does manage to load SP_MIN (I get all the SP_MIN traces), but the boot just hangs afterwards.Does u-boot require some special compilation flag in order to be used in this manner?
Hello @everyoneI have a OSD32MP1-BRK mpu board. I want to test maximum gpio toggle speed. Currently i used libgpio and using this code i achieved 4.1 us (microsecond) between rising and falling edge of pulses.This is too slow as per our requirement. I need in nano second.I have attached waveform. In rpi getting approx 15ns.Thanks and regardsKundan Jha
Hi all,Our product uses an STM32MP153 processor, booting its first and second stage bootloaders (TF-A and uboot respectively) from QUADSPI NOR FLASH. It boots Linux from eMMC. The NOR FLASH we have been using are either IS25LP016D-JNLE or AT25SF161B-SSHB-B which are both 16Mbit.We are experimenting with using a larger 32Mb NOR FLASH due to customer request. We have built a batch of PCBAs with IS25LP032D-JNLE instead of the IS25LP016D.However on 4 out of 12 boards, we see the below:- Programming works ok, all stages are flashed onto the respective parts. stm32 cube programmer reports success- When rebooted after programming, the MP1 still boots in DFU mode.- Checked BOOT mode pins and they are set to 001, not 000, so its not the boot mode.- NORFLASH chip has been written to and read back correctly and program has been verified, so there is no data corruption- Re-ran stm32 cube programmer several times, and MP1 always reboots in DFU mode- We suspect that there is a timing
Hello, I've just migrated from V4.1.0 dev package to V5.0.0 and the LCD SPI ilitek 9486 does not work anymore.Configuration: STM32MP157A-DK1 with 3.5 LCD SPI touchscreen. Starter Package loaded with stm32mp157c-dk2 config. Linux kernel recompiled with ili9486 module and uploaded. Device tree file "stm32mp157c-dk2.dts" modified with spi5 added and display and uploaded.Please, how can I do to recover the LCD SPI that worked on previsous dev package?
Following this:https://wiki.st.com/stm32mpu/wiki/How_to_configure_U-Boot_for_your_board As the default config used stm32_defconfig.At the step make menuconfig disabled PMIC in device driver -> power and enabled regulator power .Though, this causes compile errors when building u-boot.Created a defconfig file for the board but not a new vendor-board folder assuming just to base the board as a variant of existing ST board. In other words using make stm32mp157a-board-mx_defconfig.In the config file :CONFIG_TARGET_ST_STM32MP15X=y Does this need to be set to "n" in case of using a board based on the STM32MP1 ?Is disabling PMIC in u-boot actually required to boot a discrete powered board ?
Hello We are using timer peripheral in STM32MP157 Cortex -A7 core 0 processor. In this, we enabled TIM2, TIM3, TIM4 in RCC APB1 peripheral enable for MPU set register, now we unable to use these timers (not getting interrupts) in Cortex -A7 core 0 processor. But we enabled these same timers in RCC APB1 peripheral enable for MCU set register, at this time getting interrupts in Cortex -A7 core 0 processor. So, any reason these timers (TIM2, TIM3, TIM4) enables in MCU set register to use in Cortex -A7 core 0 processor. remaining all peripherals are works with enables same MPU set register. regards srikanth
Hello, I currently working with a STM32MP157D-DK1 Development Board. I populated the board with a prebuild openstlinux 6.1 build. A SSH connection via console is successful.To get the M4 microcontroller running I was able to build a .elf file from the GPIO_EXTI example given by the STM32Cube_FW_MP1_V1.6.0. The .elf can be uploaded into the /boot/ directory via the scp command. By configuring Boot From an SD Card the M4 starts running an executes the just uploaded .elf file.In order to debug the software I want to use the STM32CubeIDE Debug Configuration 'thru Linux core (Production mode)'. Unfortunatly I'm not able to connect my board with the given Target status widget, which is necessary for a successful connection build up. When i try to connect my board via the "Connections" Window -> right click SSH setup -> "Open Connection", I get the following generic error: "Error opening connectionsSession.connect: java.net.ConnectException: Connection timed out: connect"
Same or related postshttps://community.st.com/t5/stm32-mpus-products/op-tee-error-on-new-v5-0-0-sdk/td-p/578239/page/2https://community.st.com/t5/stm32-mpus-products/op-tee-error-tzc-permission-failure-on-new-v5-0-0-sdk/m-p/584339Custom STM32MP157AAA3 board, 512MB. TF-A OP-TEE in SYSRAMTwo outcomes.[a] building u-boot with stm32mp1_trusted_defconfig : boot loops around (restart), does not even reach u-boot[b] building u-boot with stm32mp1_defconfig: dump_fail_filter:425 Violation @0xdfb19000, non-secure privileged write, AXI ID 480This area was firewalled in fw-config.dts based on the Wiki how to configure FW-CONF and also added as a reserved area in TF-A, OPTEE and u-boot DT, Though u-boot (or something else for that matter) tries to access this area ?Does this violation have anything to do witha. conf.mk in OP-TEE or the OP-TEE DT ? (memory reservation was added)b. FW-CONFIG DT? (Firewall for this region was added)c. U-BOOT DT?&nb
Hello everyone,I am trying to apply the hello world example from stm32MP1 workshop. everything works fine for me. However, when I try to run the application inside stm32mp1 it shows me this message. version `GLIBC_2.34' not found.I tried to install newer version of GLIBC but without any suncess.could you please tell what to do here.
Our board is using STM32MP15 and doesn't use PMIC, when we try poweroff command, it seems to work but after around 30 seconds, the board reset automatically.During this time, I see power consumption just goes down a little bit.Does anyone have same issue or something like this?
Hello,I was wondering how hard is to convert the simple OpenAMP_TTY_echo (I have it installing the STM32Cube_FW_MP1_V1.6.0 package from STMicroelectronics' web site) to a Makefile driven project.I need it so, because the firmware auto building of my BSP (partially based on buildroot, makerootfs and others shell based scritps).I have a custom board based on the STM32MP151AAA3 and STM32MP151CAA3.At the moment I am running a vanilla 6.1.55 Linux Kernel on top of Debian 11 Bullseye (11.7) with all needed stuff compiled in as static modules:CONFIG_REMOTEPROC=y CONFIG_REMOTEPROC_CDEV=y CONFIG_STM32_RPROC=y CONFIG_RPMSG_TTY=y CONFIG_RPMSG_CHAR=y CONFIG_RPMSG_CTRL=y CONFIG_ROMSG_VIRTIO=y CONFIG_RPMSG_NS=y CONFIG_STM32_IPCC=y In that case Linux, will show any remoteproc stuff under /sys (sysfs).In my device-tree there is everything (I think) set for CM4 execution code: reserved-memory { #address-cells = <1>; #size-cells = <1>; ranges; mcuram2: mcuram2@10000000 { com
I'm working on an audio-processing application with the STM32MP157F-DK2 discovery board. While evaluating the hardware, I built and installed the system using the distribution package. I used the following command to record sound via the 3.5mm audio jack:arecord -D record_codec -f S16_LE -d 10 /tmp/rec.wavAfter examining the resulting file, it seems like the board was unable to capture any sound from the 3.5mm audio jack input (which I connected to an AKG headphone that has a microphone). The only thing I can hear is some background noise (and it is still the case even if I use SSH to transfer the recorded file to my computer and play it back there, so it can't be the output issue).Any insight for recording audio on this board? Thanks a lot.
I am testing the openstlinux distribution and I am creating an image from the st-image-weston image. The thing is that when I want to use the package installer I can't use the apt-get update command or any other. In this case the problem seems to be that the repository doesn't support the architecture, but I don't really know why since the distribution was created with the intention of working with this MPU. Any suggestion of what could be the fault?This is what I see on console:root@stm32mp1:~# apt-get update The software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA). The detailed content licenses can be found at https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses. Hit:1 http://packages.openstlinux.st.com/3.1 dunfell InRelease Reading package lists... Done N: Skipping acquire of configured file 'main/binary-${DPKG_ARCH}/Packages' as repository 'http://packages.openstlinux.st.com/3.1 dunfell InRelease' do
HelloI read the article related to HUK. However it seems it does not explain how to use the HUK for STM32MP135F-DK.On STM32MP13xC/F lines,STMicroelectronics provisions an HUK in the OTPs. These OTPs cannot be read with the BSEC IP. The OTPs storing the HUK are directly wired to SAES.SAES computes internally a derived HUK (DHUK). The value of the DHUK depends on the privilege level, key selection, key selected mode, the chaining mode, and on whether the SAES peripheral is secure or non-secure.From that I do not understand how can we use HUK with dm-crypt for example for LUKS encryption.Also I saw there is this article not working anymore: https://wiki.st.com/stm32mpu/wiki/How_to_encrypt_a_disk_with_dm-cryptCould you point me to some documentation?Thanks
Hello,I'm working on a STM32MP157D-DK1 demoboard and I want to manually start the coprocessor from u-boot.I'm tried to follow this tutorial: MANUAL START The steps that I maked are:1) I generated the code with STM32CubeMx (I selected the board STM32MP157D-DK1 with default initialization of all peripherals) 2) I imported the code into STM32cubeIDE and I added the following changes:In main.c: while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ HAL_GPIO_TogglePin(GPIOH, GPIO_PIN_7); HAL_Delay(500); } in gpio.c: void MX_GPIO_Init(void) { GPIO_InitTypeDef GPIO_InitStruct = { 0 }; /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOH_CLK_ENABLE(); /*Configure GPIO pin*/ GPIO_InitStruct.Pin = GPIO_PIN_7; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(GPIOH, &GPIO_InitStruct); }3) I loaded the code (a simple toggle of the orang
Hi, I was following the STM32MP157F-DK2 tutorial for developing on ARM Cortex A7. I have two problems:1) Starter package - i have using STM32CubeProgrammer to download the image to a new SD Card, but the board failed to load Linux2) i have tried the example given for hello_world.c . host cross-compilation is successful, but the program cannot run on the board with the following error messages:root@stm32mp1:/usr/local# su -l weston -c "/usr/local/gtk_hello_world"chown: cannot read directory '/home/root': Permission denied/usr/local/gtk_hello_world: /lib/libc.so.6: version `GLIBC_2.34' not found (required by /usr/local/gtk_hello_world)appreciate any help.
STM32MP135 is connect on i2c bus to 3 devices:LM75PCF8563INA233I am using linux kernel 5.15.24 synched with your github repo. LM75 and PCF8563 are working fine. INA233 has problems to manage the PEC (Packet Error Correction)I am seeing lot of this errors:stm32f7-i2c 40012000.i2c: Bad PEC 0x89 vs. 0x79stm32f7-i2c 40012000.i2c: Bad PEC 0x89 vs. 0xc7stm32f7-i2c 40012000.i2c: Bad PEC 0x89 vs. 0xedI checked on the st driver that the PECEN is flagged since the i2c slave device has the PEC capability, and I am receving the PEC fo=rom the device in the log: 0x79, 0xcf, 0xed.The strange think is that the register value read from stm device is always 0x89.This value is read using the internal_pec = readl_relaxed(i2c_dev->base + STM32F7_I2C_PECR)It seems the register is not properly updated.Any idea or suggestion?
Hi,Appreciate any help on how to enable u-boot splash screen during boot. I am using STM32MP157F-DK2.Thank you.
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.