Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
hi i need to change the frequency and timing of DDR as well as where i need to modify that one and also after modification how to compile the code.
Hello, we are trying to start our custom STM32MP157 board. We encountered some problems that I want to ask about. First is with TF-A, it gets to the SD card init (boot source) and it fails. We have eMMC on MMC2 and it also gives error message. NOTICE: CPU: STM32MP157DAC Rev.Z NOTICE: Model: Zegarson board TF-A testing 0.0.10 ERROR: stm32_sdmmc2_mmc_init: DT error ERROR: SDMMC1 init failed PANIC at PC : 0x2ffeb8cf What is really weird about that, after some time playing with MMC configs (pull-ups, 1-bit 4-bit wide bus, speed, etc.) it randomly started working and got to DDR init and only then failed. NOTICE: CPU: STM32MP157DAC Rev.Z NOTICE: Model: Zegarson board TF-A testing 0.0.8 NOTICE: BL2: v2.8-stm32mp1-r2.0(release):v2.8-stm32mp-r2-1-g648de4789-dirty(648de478) NOTICE: BL2: Built : 03:58:54, Jul 13 2024 ERROR: DDR addr bus test: can't access memory @ 0xc0000004 PANIC at PC : 0x2ffeac63 But a few days after we made clean build and it again has SD init problem.What
I am working with the STM32MP157F-DK2 Discovery kit, and I would like to know if it's possible to:Run Yocto Linux (OpenSTLinux) on the Cortex-A7 cores for high-level application development.Simultaneously run a real-time Embedded C project (using STM32CubeMX or STM32CubeIDE) on the Cortex-M4 core for handling real-time tasks.If this is feasible, what would be the best approach to achieve this configuration? Also, what are the considerations or steps involved in managing inter-core communication between the two environments?
I am facing the Issue on Qt , i Downloaded the OpenSTlinux Distribution package , and i wanted to find the qt layer but i can't please help me out.
Hi! What interruppt code line should I use when connecting to the PMIC?The choices are:gpioa 0exti 55Which one should it be? Here is a snippet from my Linux DT. pmic:stpmic@33{ compatible = "st,stpmic1"; reg = <0x33>; interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>; /*interrupts-extended = <&exti 55 IRQ_TYPE_EDGE_FALLING>;*/ interrupt-controller; #interrupt-cells = <2>; status = "okay";
Hi erveryone,I want to implement A/B partitioning functionality, not for updates, but to enable switching to an alternative ROOTFS partition if U-Boot fails to start the kernel. For example, if partition A fails to boot three times, switch to partition B and attempt to boot three times as well. Additionally, incorporate a watchdog to check for timeouts, and if all attempts fail, report an error.Currently, I have modified the contents of meta-st/meta-st-stm32mp/conf/machine/include, specifically st-machine-image-partition-stm32mp.inc and st-machine-extlinux-config-stm32mp.inc, and in the .tsv file, I can generate two partitions, rootfs_A and rootfs_B, and boot the kernel using rootfs_A. I have found some relevant information that mentions enabling CONFIG_BOOTCOUNT_ENV and CONFIG_BOOTCOUNT_LIMIT in U-Boot's configuration. I have set these in my menuconfig, but I am unsure how to use them or where to modify. I have only found that /drivers/bootcount/bootcount_env.c seems to hav
how to add meta qt layers into our OpenSTlinux distribution package. please do step by step
My MP157DAC board encountered some problems using SDKv5.0, u-boot could not be started correctly when using usb burning, it seems to be related to DDR, but I can not find the reason, the community does not have similar problems, hope to get some help: DRAM: 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 @0xfdb16fb0, non-secure privileged read, AXI ID 4a0
Hi everyone,I'm working on a custom board based on STM32MP157F-DK2. I am running Yocto 5.0.3 (scarthgap) with trusted boot (not signed).I could build the Zephyr (3.7.0) rpmsg sample that worked out of the box:https://docs.zephyrproject.org/latest/samples/subsys/ipc/openamp_rsc_table/README.htmlNow the issue is when I tried to debug the m4 core with a JTAG, the board crashes, here is what I see on the Linux console: E/TC:0 tzc_it_handler:79 TZC permission failure E/TC:0 dump_fail_filter:420 Permission violation on filter 0 E/TC:0 dump_fail_filter:425 Violation @0xdeadbef0, non-secure privileged read, AXI ID 1 E/TC:0 Panic at core/arch/arm/plat-stm32mp1/plat_tzc400.c:84 <tzc_it_handler> E/TC:0 TEE load address @ 0xde000000 E/TC:0 Call stack: E/TC:0 0xde002961 E/TC:0 0xde017cd1 E/TC:0 0xde0046d7 E/TC:0 0xde0179f7 E/TC:0 0xde023679 E/TC:0 0xde000348 I started JLinkGDBServer with those parameters: JLinkGDBServer -port 2331 -s -device STM32MP15XX_M4 -endian little -speed
Hello We are Working on a custom board with STM32MP157AAA3 processor.We are using Buildroot(V2023.08.2) for checking USB 2nd Port in which the PHY port 2 is configured as host controller using UTMI . we referred the below link to configure the dts :https://wiki.st.com/stm32mpu/wiki/USBPHYC_device_tree_configuration We are configuring the USB in dts file exactly the same in Uboot (V2023.10) and Linux(V5.13), It works in Linux but not in Uboot We are attaching the configuration of our dts file below.Hope you could Verify it and suggest us where we are going wrong. Thanks & RegardsAkshitha Pattem
Hi I am using the discovery kit (STM32MP157F-dk2), i check the manual and i did not get the Actual pin of the CANFD , so please let me know the pin of the CANFD or other-wise could you please provide me the example how to read the CANFD value from the pin.
Hi everyone i download the Distribution package for ##STM32MP1F-DK2 and i made some changes on kernel like in device tree, my colleague is doing work-from-home job, So my colleague wanted to see the changes own there laptop and something want to change according to there requirement on same source code( Distribution package). how we can do that .please help me out this
Hi Every One i am facing the issue to find the pins of PWM in the (STM32mp157f-dk2 ), i configured the PWM channel in device tree and pwm channel is visible in /sys/class/pemchip0/pwm , so i need to collect the input from the pins but which pin is connected to PWM i do not know , could you please help me out this.(this is my my output form the board terminal )root@stm32mp1:/sys/class/pwm/pwmchip0/pwm0# lscapture duty_cycle enable period polarity power ueventroot@stm32mp1:/sys/class/pwm/pwmchip0/pwm0#I Need 1. how to use pin and which pin i need to connect 2. i want to collect the input prom the PWM.3. and the should be show on the terminal. if i am wrong and any thing missing , please correct me
Hello,I am wondering what could be the best way to write a device tree that sets the STM32MP1 as SAI SLAVE with a CODEC also running as SAI slave. The HW design I am studying has the following specs:1) STM32MP1 with ALSA and one SAI interface.2) A codec chipset running as SAI slave.3) The Si5351B part running as a MASTER clock providing the SAI bit and frame (L/R) clocks to both the SoC and CODEC.I understand such a setup is a little out of the norm. How can the device tree be modified on the SAI side to avoid the STM32MP1 to become a MASTER. The snippet of a possible device tree is below.How can I force the STM32MP1 to be a SLAVE on SAI?I would imagine writing the device tree as follows: &sai1{ pinctrl-names = "default", "sleep"; pinctrl-0 = <&sai1b_pins_mx>; pinctrl-1 = <&sai1b_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN sai1 */ /* Specify external clock sources for SAI1 We MUST add the clock-names according to the doc. */ clocks = <&
I tried to replace the uImage and .dtb file inside the starter package.First I copied over the kernel and .dtb file.sudo mount -o loop st-image-bootfs-openstlinux-weston-stm32mp1.ext4 /mnt/bootfs sudo cp ../linux-6.1.82/build/arch/arm/boot/uImage /mnt/bootfs/ sudo cp ../linux-6.1.82/build/arch/arm/boot/dts/stm32mp151a-stm32-computer-firmware-mx.dtb /mnt/bootfs sudo umount /mnt/bootfs Then I booted the Linux kernel. See the log file log.txt. It stopped at the USB Hub decleration. So I guess that linux kernel was booted, but not initrd.I tried to boot the system manually via U-boot and this happen.STM32MP> part list mmc 0 Partition Map for MMC device 0 -- Partition Type: EFI Part Start LBA End LBA Name Attributes Type GUID Partition GUID 1 0x00000400 0x000007ff "metadata1" attrs: 0x0000000000000000 type: 8a7a84a0-8387-40f6-ab41-a8b9a5a60d23 (8a7a84a0-8387-40f6-ab41-a8b9a5a60d23) guid: 92f0b426-e174-4bac-9287-019e4f858971 2 0x00000800 0x00000bff "metadata2" attrs: 0x
Spoiler (Highlight to read) Hello,I am trying to configure an ADC channel using IIO library to work in triggered buffer with high frequency (preferably more than 100kHz). I configured ADC and timers as described here (including trigger configuration in kernel device tree) and tested the its performance:https://wiki.st.com/stm32mpu/wiki/How_to_use_the_IIO_user_space_interface Testing MethodI tested the configuration by measuring 100Hz sinusoidal signal made with a function generator at different sampling frequencies. The sampling frequency value was set to 10000Hz in iio user space as displayed in iio_info (important later):attr 0: sampling_frequency value: 10000The signal was measured with the iio_readdev | hexdump command and ploted on a graph Blue is 100Hz, 1Vpp amplitude, 1V DC offset sine (ignore orange).The sine looks good and it takes 10kHz/100Hz=100 samples to display a full sine period, so everything works correctly. The ProblemThe sampling rate was then se
STM32MP157D-DK1https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mp1-v23.11.15DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.shbitbake st-image-westoni2c and USB touchHow do I find a compatible LCD touch screen for STM32MP157D-DK1?Also, I need a guide to set up the driver.I am not sure which of the USB type and I2C type is better in terms of price, reliability, and driver settings.Please, help me.
Hi, I’m new to the stm32mp15 series and I’ve been trying to convert code over from a previous microcontroller (stm32f429i-disc1) onto my new MPU. I try to read an input voltage value by running the HAL_ADC_GetValue driver but when I run live expressions to read the variable for my adc value, it is just maxed out at whatever I set the resolution to be (i.e., ADC1 resolution is 12 bits so the value is stuck at 4095). I use STM32CubeMX right now, I enabled continuous conversions but I get stuck at this 4095 value every time I debug and run. Any help or suggestions?
I compiled the linux kernel uImage and corresponding .dtb file with CubeIDE.Then I mounted the st-image-bootfs-openstlinux-weston-stm32mp1.ext4 and changed the extlinux.conf inside the folder /bootfs/mmc0_extlinux to # Generic Distro Configuration file generated by OpenEmbedded MENU BACKGROUND /splash_landscape.bmp TIMEOUT 20 LABEL OpenSTLinux KERNEL /uImage FDTDIR /stm32mp151a-stm32-computer-firmware-mx.dtb INITRD /st-image-resize-initrd APPEND root=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rootwait rw console=${console},${baudrate} Then I successfully flashed my emmc0 and U-boot started the linux kernel. I have some thoughts about the UART output log.Does my processor communicate with my PMIC?Why could it not find the /stm32mp151a-stm32-computer-firmware-mx.dtb file at the beginning of the log?Is my Ethernet working? I cannot se any LED-lamp blinking when I plug in the cable, only the orange LED is active, but not blinking.Why doe
Hi Team, We are currently working on a UAV detection project and are in the process of implementing Fast Fourier Transform (FFT) for signal processing. Our setup includes an ADC with a data rate of 1 MSPS (Mega Samples Per Second). We are looking for a suitable Digital Signal Processor (DSP) that can efficiently handle this data rate and perform real-time FFT processing.Could you please recommend a DSP that would be best suited for our application? Additionally, if there are any available FFT driver files or libraries compatible with the suggested DSP, I would greatly appreciate it if you could provide those references or links.Thank you in advance for your assistance.Best regards,Aravind
I don't have the knowledge to look at the LCD touch screen specifications to determine if it can be used on my board.I am looking for a 7-inch LCD touch screen that can be used with openstlinux on STM32MP157D-DK1.openstlinux was set up like this:repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-micckledore-mp1-v23.11.15repo syncDISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.shbitbake -k st-image-westonLinux stm32mp1 6.1.28 #1 SMP PREEMPT Thu May 11 14:04:52 UTC 2023 armv7l GNU/LinuxPlease help me.
I compiled the linux kernel with STM32CubeIDE and notice that the linux kernel vmlinux is about 242 Mb.Why so large?Or do I looking at the wrong folder? I'm standing inside the build folder.
Hello I have built the st-example-image-qt using openstlinux(Openstlinux-5.15-yocto-kirkstone-mp1-v23.07.26) to run a qt application for stm32mp157f-dk2 board.I could run the application the application successfully.It would be very helpful to move forward with my further development, if i could get the clarifications regarding the below mentioned points :1.How to enable window manager support in the example image that i am working with.2.How to implement debugging of QT Application using remote gdb server.3.How to display on application on DSI and HDMI simultaneously. Thanks in AdvanceSrikanth
Hi,I want to create a custom machine for my board. I've found the wiki page "how to create your own machine" but this assumes you create your own layer/machine inside meta-st, but I want my machine to be inside /layers/.I want this outside meta-st because I want to add the machine inside a git repo, meta-st-stm32mp-addons is already a git repo on its own.I want to setup my distribution package the following way, is this possible, and how?repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mp1-v23.06.21repo syncgit clone <git server/repo that contains custom layer + machine> ./layers/meta-mylayer/DISTRO=openstlinux-weston MACHINE=my-custom-machine(inside meta-mylayer) source layers/meta-st/scripts/envsetup.shbitbake st-image-core
I have compiled.OpteeTF-AU-bootLinuxAnd it seems to work well. I have also tried to implement a pre-made OpenSTLinux from the Source files. And it seems to work well too. I haven't got any terminal up and running. I can only see the display output of messages when I start it up.Notice that the kernel comes from STM32MP157 and before the kernel startup, it's from STM32MP151. That's why you see that the MAC address is not set, but once linux kernel is started, you can see inside the log that the MAC address is set to "56:bf:8f:58:f8:31".https://pastebin.com/QTV4qbHrI need to create bootfs, vendorfs, userfs and rootfs.ext4, so what should I do next? Should I create empty .ext4 files and then mount the .ext4 files and later fill them with...?
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.