Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
What is FOO driver in https://wiki.st.com/stm32mpu/wiki/Interrupt_overview Interrupts overview should we have mention in our device tree files please explain me for better understanding I am a beginner. My goal is to fix few GPIOs as interrupts. How can write a program generating interrupts ?
Hello everyone,We are currently working on a project based on the STM32MP2 platform and are evaluating solutions for reliable OTA updates. We're particularly interested in using Mender for this purpose.However, so far I haven’t found any official documentation or community references about Mender support on STM32MP2. I’m aware that Mender has been successfully integrated on STM32MP1 in the past (e.g. Yocto-based builds), but it’s unclear whether the same applies to the newer MP2 platform.Questions:Has anyone successfully integrated Mender on STM32MP2?Are there any known limitations or blockers specific to this platform?Any recommendations on bootloader setup, partitioning, or Yocto layers that are MP2-compatible with Mender?Thanks in advance
Hi, During the Creation of the new STM32 project in STM32IDE for STM32MP157F Evaluation board.I'm encountering issue as "Failed to configure local OpenSTLinux version openstlinux-6.1-yocto-mickledore -mpu-v24.06.26".I have attached error image for your reference. Thanks M Gokulraj
I used the same code. Previously, I was using STM32Cube_FW_MP1_V1.2.0, but after forcibly upgrading to STM32Cube_FW_MP1_V1.7.0 using CubeIDE, the compiled firmware can no longer generate a virtual serial port( /dev/ttyRPMSG0). This is the log I used with version 1.7.[ 3276.128100] remoteproc remoteproc0: powering up m4 [ 3276.141973] remoteproc remoteproc0: Booting fw image RPMsg_UART_CM4_te.elf, size 2549508 [ 3276.149267] mlahb:m4@10000000#vdev0buffer: assigned reserved memory node vdev0buffer@10042000 [ 3276.164561] virtio_rpmsg_bus virtio0: rpmsg host is online [ 3276.168677] virtio_rpmsg_bus virtio0: creating channel rpmsg-tty addr 0x400 [ 3276.188640] mlahb:m4@10000000#vdev0buffer: registered virtio0 (type 7) [ 3276.203388] remoteproc remoteproc0: remote processor m4 is now up This is the log I used with version 1.2[ 3395.909607] remoteproc remoteproc0: powering up m4 [ 3395.954530] remoteproc remoteproc0: Booting fw image RPMsg_UART_CM4.elf, size 2042304 [ 3395.961362]
Hello,I have a problem with the U-Boot stuck and loading the KernelHere is my logSpoiler (Highlight to read)NOTICE: CPU: STM32MP151CAA Rev.ZNOTICE: Model: STMicroelectronics custom STM32CubeMX board - openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11INFO: PMIC version = 0x21NOTICE: Reset reason (0x114):INFO: IWDG1 Reset (rst_iwdg1)INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000INFO: FCONF: Reading firmware configuration information for: stm32mp_fuseINFO: FCONF: Reading firmware configuration information for: stm32mp_ioINFO: Using SDMMCINFO: Instance 1INFO: Boot used partition fsbl1NOTICE: BL2: v2.10-stm32mp1-r1.0(debug):lts-v2.10.5-dirty(7c229848)NOTICE: BL2: Built : 16:19:31, Jun 28 2024INFO: BL2: Doing platform setupINFO: RAM: DDR3-DDR3L 16bits 466000kHzINFO: Memory size = 0x20000000 (512 MB)INFO: BL2: Loading image id 1INFO: Loading image id=1 at address 0x2ffff000INFO: Image id=1 loaded: 0x2ffff000 - 0x2ffff1eaINFO: FCONF: Reading FW_CONFIG firmware configuratio
Hi,is there any way to share an external interrupt, coming from two separate GPIOs, between M4 and A7 cores in stm32mp15x family? thanks
Dear sir/mamWe are currently working with a custom board based on the STM32MP257D processor and are attempting to boot Trusted Firmware-A (TFA) and U-Boot. For this purpose, we have used the defconfig of the STM32MP257F-EV1 development kit as a reference.Our hardware configuration differs from the EV1 kit in the following key aspects:The PMIC on our custom board is connected to I2C4, whereas the EV1 kit uses I2C7.Our board utilises LPDDR4 memory, while the EV1 kit is equipped with DDR4.We have made the necessary adjustments in the device tree and platform files to reflect these changes. Despite this, we are encountering a panic during the boot process from the SD card.To isolate the issue, we attempted to comment out the PMIC initialisation code located in the bl2_platSetup.c file. With this change, the boot process fails with the message ddr_power_init failedFurthermore, when we bypass the stm32mp_board_ddr_power_init function, the boot log shows the following errors:ERROR: ddrph
Dear sir/Mam While analyzing the reset handler code within the bl2.elf binary from Arm Trusted Firmware, we observed that the label S3_15_C2_C1_1 is being referenced in the cortex_a35_reset_func. We would like to request your clarification on the following points:Could you please confirm whether S3_15_C2_C1_1 refers to a system register?If so, is S3_15_C2_C1_1 the official name of the register?Additionally, we would appreciate your guidance on where this register is documented and how it can be accessed (e.g., using MSR/MRS instructions or through a specific architectural feature of the Cortex-A35). Thanks & RegardsAkshitha Pattem
Hi All, can any one tell me what is the Maximum Speed of toggling GPIO on userspace and the kernel space.I was trying with kernel module programming with IOREMAP API i got 35 Nano seconds. but my requirement is maximum 8 Nano second, can any one please let me know is there any possibility. toggling GPIO at 8 nano second.
HI With some help from @Gregory PLANCHON and @Olivier GALLIEN I can now boot the processor in M33-TD flavour. Our application wants to also use the Cortex M0+ for a very low power mode. How to use the Cortex-M0+ - stm32mpu tells how to do this from A35/Linux environment. Is there a similar document on how to do this from M33/FreeRTOS environment?
Hi I am using a STM32MP257F-EV1 board, and I am trying to build the demonstration exampleSTM32CubeMP2/Projects/STM32MP257F-EV1/Demonstrations/StarterApp_M33TDI am using command line (not IDE)I have cloned and built TF-M for SDCARD_SDCARD and EMMC_EMMC modes and can see the resultant binariesI have built the Application and can see the binaries (including the tfm and bl2 binaries copied from the tfm area).I now want to flash onto my board. I am following the instructions in the README.html file in the top level of the project structure. It mentions some flash layout files. For the MP25-EV1 board, five TSV flavors are provided to flash under the M33TDCID profile: - `FlashLayout_emmc_stm32mp257f-ev1-cm33tdcid-ostl-optee.tsv`- `FlashLayout_nor-emmc_stm32mp257f-ev1-cm33tdcid-ostl-optee.tsv`- `FlashLayout_nor-nor-sdcard_stm32mp257f-ev1-cm33tdcid-ostl-optee.tsv`- `FlashLayout_sdcard_stm32mp257f-ev1-cm33tdcid-ostl-optee.tsv`- `FlashLayout_nor-sdcard_stm32mp257f-ev1-cm33tdci
Hello all,Sorry if I'm not doing everything perfect about this post but this is my very first :).So i'm currently working on the STM32MP13 DK - Starter package (on STM32MP135F-DK)And when executing the command : STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp135f-dk-optee.tsv which job is to flash the image into the sd card i'm getting the following log. I'm working on oracle VM, Ubuntu 24.04.If you have any question about my setup I'll be happy to answer you.Théo Log :Start Embedded Flashing service Opening and parsing file: tf-a-stm32mp135f-dk-optee-programmer-usb.stm32Memory Programming ...File : tf-a-stm32mp135f-dk-optee-programmer-usb.stm32Size : 86.52 KBPartition ID : 0x01Download in Progress:[==================================================] 100%File download completeTime elapsed during download operation: 00:00:02.171RUNNING Program ...PartID: :0x01Reconnecting the device ...Error: Unable to reconnect the target
On the M4 core of a stm32mp157 I am using FIFO based FDCan communication.Messages are sent and received just fine but I think when I send too many messages in a short time some messages are getting lost.So I added a call to HAL_FDCAN_GetTxFifoFreeLevel before calling HAL_FDCAN_AddMessageToTxFifoQ to make sure there is space in the FIFO, but HAL_FDCAN_GetTxFifoFreeLevel always returns 0.Here some parts of my fdcan configuration:RxFifo0ElmtsNbr = 8;RxFifo0ElmtSize = FDCAN_DATA_BYTES_8;RxFifo1ElmtsNbr = 0;RxFifo1ElmtSize = FDCAN_DATA_BYTES_8;RxBuffersNbr = 0;RxBufferSize = FDCAN_DATA_BYTES_8;TxEventsNbr = 0;TxBuffersNbr = 0;TxFifoQueueElmtsNbr = 35;TxFifoQueueMode = FDCAN_TX_FIFO_OPERATION;TxElmtSize = FDCAN_DATA_BYTES_8; What am I missing?
Has anyone here tried to stream Youtube or old playing games on STM32MP257?144p, 240p, 360, 780p, 1080p etc. Quake, Doom, Half-Life, perhaps Half-Life 2 as well. What was your experience and limitations? Very curious to know.
Hello all,I would like to use industrial cameras (for example GigE cameras, by using ethernet port) by connecting to STM32MP135F-DK and grab images. Is it possible and is there any instruction to do this?Thank you.
Hi Team, I am able to test "can0" module, from OpenSTLinux running on STM32MP257F-EV1 board, using the attached code "STM32MP2_Can0Test.c" compiled to binary (using AARM64 cross compiler from OpenSTLinux SDK) and PEAK PCAN Usb connected to FDCAN1 DB9 port of EV1 board, and results are as expected (found can0 to be working fine for Tx and Rx), see attached screenshot STM32MP2_Can0Test_Result.png. I changed can0 to can1 in STM32MP2_Can0Test.c and saved it as STM32MP2_Can1Test.c and tested for can1. However, I wasn't able to Tx/Rx using EV1 on can1 channel (FDCAN2). steps followed are exactly same as that of can0 test. Please let me know if I am missing anything. Below is the ssh terminal steps followed and the result for can0 test.C:\Users\venka>ssh root@192.168.7.1The authenticity of host '192.168.7.1 (192.168.7.1)' can't be established.RSA key fingerprint is SHA256:q3nsWskxawn3YSFrCOGu5GHq28FltL353TXSnbgDP0s.This key is not known by any other names.Are
How to disable ROTPK_NOT_DEPLOYED in production build?Porting guideline https://github.com/STMicroelectronics/arm-trusted-firmware/blob/v2.6-stm32mp-r2.1/docs/getting_started/porting-guide.rst says that ROTPK_NOT_DEPLOYED This flag must not be used in a deployed production environment.If secure boot enabled and if ROTPK_NOT_DEPLOYED flag not disabled then it gives message while boot.NOTICE: ROTPK is not deployed on platform. Skipping ROTPK verification.NOTICE: ROTPK is not deployed on platform. Skipping ROTPK verification.NOTICE: ROTPK is not deployed on platform. Skipping ROTPK verification. How to disable ROTPK_NOT_DEPLOYED in production build? I am using STM32MP157F-DK2 board and using TFA 2.6 https://github.com/STMicroelectronics/arm-trusted-firmware/blob/v2.6-stm32mp-r2.1/plat/st/common/stm32mp_trusted_boot.c#L168. Thank you
Hi, I am working on STM32MP257f-EV1 evaluation board. i want boot my board from emmc i have tried through stmcube programmer from this link as provided by stwiki https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP2_boards/STM32MP257x-EV1/Let%27s_start/Populate_the_target_and_boot_the_image Even after many times i am unable to boot from emmc i have tried by giving the supply through stlink abd also through jack but i am unable to identify the usb_drd port irrespective of supply Can you please give me a solution for this and guide me. Warm regards,Sirisha.
I am following the "How to deploy SSP using a step-by-step approach". I am working on "3.1.2.2. Secret file content for STM32MP2 series". The target MPU is STM32MP257F. I have some questions as below:1. How do I know whether to choose "Format 1" or "Format 2"?2. I selected the binary file as FIP-EDMK, which is 256-bit but the KeySize shows 128-bit and it won't let me select 256-bit again. Is this acceptable?
HiWe have a project that will use STM32MP257F on a custom hardware design.I have a STM32MP257F-EV1 board which I intend to use for early development.Our customer has a very strict boot time requirement so we want to use the Cortex M33 as the first boot processor and TF-M masterWe want to boot the Cortex A35 processors and leave them in a standby or low power state as the first application does not need them.In the STM32ubeMP2 package I found STM32CubeMP2/Projects/STM32MP257F-EV1/Demonstrations/StarterApp_M33TDwhich according to its README file, does almost exactly what I want. However I am having difficulty building it according to the instructions in the README file.Here's what I didI created a new workspace at the top level of my Linux shellmkdir workspace2cd workspace2I downloaded the STM32CubeMP2 package from GitHub and checked its tags. Output is belowgit clone https://github.com/STMicroelectronics/STM32CubeMP2Cloning into 'STM32CubeMP2'...remote: Enumerating objects: 14087, done.
As defined in the title, I want to make a clean image for my stm32mp257F-DK without any graphic package. But I also want to use the Real Time layer with it (that is not supported at the moment, but I work in advance). However the RT layer depends on the meta-st-openstlinux one. But when I want to build my st-image-core, I see that there is some graphic packages that are installed. I think about libglu that make the build crash with the following error :fatal error: KHR/khrplatform.h: No such file or directory| 37 | #include <KHR/khrplatform.h> Is there a way to avoid this behaviour ? Or do I something wrong ? Here is my bblayers.conf :# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf# changes incompatiblyPOKY_BBLAYERS_CONF_VERSION = "2"BBPATH = "${TOPDIR}"BBFILES ?= ""LAYERS_REPO = "${TOPDIR}/../layers"BBLAYERS ?= " \ ${LAYERS_REPO}/poky/meta \ ${LAYERS_REPO}/poky/meta-poky \ ${LAYERS_REPO}/poky/meta-yocto-bsp \&nbs
Hi Team,I am able to test FDCAN1 on M33 core of STM32MP257F EV1 board, using STM32Cube\Repository\STM32Cube_FW_MP2_V1.1.0\Projects\STM32MP257F-EV1\Examples\FDCAN\FDCAN_Com_IT and PEAK PCAN Usb. However, when I try to change the same code to work for FDCAN2, I couldn't achieve it. as A35 core is going to reset, probably due to wrong call to Resource Manager. Below is the snippet of code used. /* Acquire FDCAN using Resource manager */if (RESMGR_STATUS_ACCESS_OK == ResMgr_Request(RESMGR_RESOURCE_RIFSC, STM32MP25_RIFSC_FDCAN_ID)){/* Enable FDCANx clock */FDCANx_CLK_ENABLE();} /* Acquire GPIOJ14 using Resource manager */if (RESMGR_STATUS_ACCESS_OK != ResMgr_Request(RESMGR_RESOURCE_RIF_GPIOJ, RESMGR_GPIO_PIN(14))){Error_Handler();} /* Acquire GPIOI12 using Resource manager */if (RESMGR_STATUS_ACCESS_OK != ResMgr_Request(RESMGR_RESOURCE_RIF_GPIOI, RESMGR_GPIO_PIN(12))){Error_Handler();} /* Enable GPIOs power supplies */if (RESMGR_STATUS_ACCESS_OK == ResMgr_Request(RE
Hi everyone, I have the stm32mp257f-ev1 st-image-weston build./sources/tmp-glibc/deploy/images/stm32mp25-eval/flashlayout_st-image-weston/optee ├── FlashLayout_emmc_stm32mp257f-ev1-ca35tdcid-ostl-m33-examples-optee.tsv ├── FlashLayout_emmc_stm32mp257f-ev1-ca35tdcid-ostl-optee.tsv ├── FlashLayout_emmc_stm32mp257f-ev1-optee.tsv ├── FlashLayout_nor-sdcard_stm32mp257f-ev1-optee.tsv ├── FlashLayout_sdcard_stm32mp257f-ev1-ca35tdcid-ostl-m33-examples-optee.tsv ├── FlashLayout_sdcard_stm32mp257f-ev1-ca35tdcid-ostl-optee.tsv └── FlashLayout_sdcard_stm32mp257f-ev1-optee.tsvI have NOR woth SDCard boot, but how can i boot from NOR and EMMC, i dont see any .tsv file here.And i don't know the boot switch for this. please help me in creating a tsv file and understanding the boot switch configuration.
I recently purchased the STM32MP157F-EV1 board and would like to run a Qt application on it. However, I am unfamiliar with the setup process and would appreciate your guidance on how to get started from scratch.Could you please provide me with the necessary steps, documentation, or any resources that would help me successfully deploy a Qt application on this board?I appreciate your time and support, and I look forward to your response.
Dear Team,Is there any example code for Ethernet that works on M33 core of STM32MP257F EV1 board? Best Regards,Venkata
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.