Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
When building a custom machine for the STM32MP153AAC (using yocto), the device tree generated by CubeMX for the TF-A creates the following output:NOTICE: CPU: STM32MP153AAB Rev.B NOTICE: Model: STMicroelectronics custom STM32CubeMX board INFO: Reset reason (0x14): INFO: Pad Reset from NRST INFO: Using USB INFO: Instance 2 INFO: Boot used partition fsbl1 NOTICE: BL2: v2.2-r1.0(release):devtool-patched-dirty NOTICE: BL2: Built : 13:15:56, Sep 25 2020 INFO: Using crypto library 'stm32_crypto_lib' INFO: BL2: Doing platform setup INFO: RAM: DDR3-DDR3L 16bits 533000Khz INFO: Memory size = 0x10000000 (256 MB) INFO: BL2 runs SP_MIN setup INFO: BL2: Loading image id 4 INFO: Loading image id=4 at address 0x2ffed000 INFO: Image id=4 loaded: 0x2ffed000 - 0x2ffff000 INFO: BL2: Loading image id 5 INFO: GETSTATUS : INFO: DFU_STATE_IDLE INFO: UPLOAD : INFO: Phase ID : 0 INFO: address 0x2ffe5928 INFO: GETSTATUS : INFO: DFU_STATE_IDLE INFO: GETSTATUS : INFO: DFU_STATE_IDLE INFO: UPLOAD : INFO: Phase ID
Hi,all!In the wiki about secure boot, only FSBL and SSBL files are signed and authenticated.It would be very interesting and useful if you could also sign and authenticate the kernel and increase security.Is this possible?
Hi STµ Teams!Another questions!I'd like to have some precisions about yocto building :I 'm able to build st-image-core, SDK1.2.--Does the u-boot (and tfa) is built each time (ie: fetching sources, applying patch, compiling) when I'm bitbaking or does yocto takes a particular already built u-boot/tf-a from meta-st directory? --If it compiles each time, and I want to add modification, Does I need to use the ".patch" method (and modify receipt in meta-st-stm32mp/recipes-bsp) or can I directly give u-boot&tf-a compiled files from developper package ?--I need to modify the extlinux.conf, and add a directory in bootfs, is there a receipt to do this?Have a nice day!
I am getting the following error when trying to build tf-a, u-boot, or the linux kernel (the following is when trying to bitbake tf-a-stm32mp):make: *** No rule to make target 'fdts/stm32mp153a-raichu-cubemx-mx.dts', needed by 'build-openstlinuxtkrt-stm32mp1-raichu-cubemx/tmp-glibc/work/stm32mp1_raichu_cubemx-ostl-linux-gnueabi/tf-a-stm32mp/2.2.r1-r0/build/trusted/fdts/stm32mp153a-raichu-cubemx-mx.dtb'. Stop.It seems that the variable CUBEMX_PROJECT is being ignored in my machine conf file, because it is searching in the tf-a source folder for my DTS files. How do I tell yocto to use the DTS files in my layer's "mx" folder?Here's the directory listing of my layer:meta-raichu ├── conf │ ├── layer.conf │ └── machine │ └── stm32mp1-raichu-cubemx.conf ├── mx │ └── raichu-cubemx │ ├── CA7 │ │ └── DeviceTree │ │ └── raichu-cubemx │ │ ├── kernel │ │&n
Hi ST Teams,I'm building successfuly an image "st-image-core", for stm32mp1 machine.I'm able to add python package and remove some package too.But unfortunately, My team who works on M4 copro can't connect anymore on it.If i made a sd card with starter kit on it, M4 can connect (ie debug run & so on)If i made my st-image-core, it can't.Is there any special "append" to add to my distro in order to get things works?I'm using SDK 1.2Thanks in advance.
After opening the https://github.com/STMicroelectronics/meta-st-stm32mp/tags page, there are no links that download a meta-st-stm32mp tar.gz file. Instead, the links point to openstlinux-***.tar.gz, which does not contain any meta-st-stm32mp content. The openstlinux-***.tar.gz links are the same links found on the https://github.com/STMicroelectronics/meta-st-openstlinux/tags page.
Hi, I try upload Openstlinux-5.4-dunfell-mp1-20-06-24 in a stm32mp157c-ev1(Nand).I used STM32_Programmer_CLI version 2.3.0 and I get the next error:------------------------STM32_Programmer_CLI ---------------------------------reconnecting the device ...USB speed : High Speed (480MBit/s)Manuf. ID : STMicroelectronicsProduct ID : USB download gadget@Device ID /0x500, @Revision ID /0x2000, @Name /STM32MP157CAA Rev.B,SN : 0026003D3338510439303435FW version : 0x0110Device ID : unknownStart operation done successfully at partition 0x03Memory Programming ...Opening and parsing file: tf-a-stm32mp157c-ev1-trusted.stm32 File : tf-a-stm32mp157c-ev1-trusted.stm32 Size : 241984 Bytes Partition ID : 0x04 Download in Progress:Error: failed to download Segment[0]Error: failed to download the FileTime elapsed during download operation: 00:00:30.005Er
Linux kernel version is "stm32mp1 5.4.31 "
Hi The terminal printing information is as follows. This TF-A will start properly in EMMC. In the docs/plat/stm32mp1.rst file, I saw that USB is not supported. May I ask how to modify it so that it can be burned via USB Regards User.44
Hi All.I am currently using STM32MP15-Ecosystem-v1.2.0. for DK2. At the moment I don't plan to completely upgrade to v2.0.0 but I would like to test the new kernel version (5.4.31). I have compiled the new kernel version and a new device tree but once the kernel is loaded into memory, no trace of the kernel log is shown and the system doesn't start.Is there any dependency between kernel and u-boot (and maybe TF-a) that makes it necessary to upgrade both?
Hi: I'm testing the host mode.I follow the wiki steps to configure hostspot:https://wiki.st.com/stm32mpu/wiki/How_to_configure_a_wlan_interface_on_hotspot_mode.This was giving me the following out-put . I couldn't find what makesthis problem. I am thankful if you can help me to sort out this.# hostapd /etc/hostapd.conf -BConfiguration file: /etc/hostapd.confwlan0: Could not connect to kernel driverUsing interface wlan0 with hwaddr c0:84:7d:b6:6b:3e and ssid "test"[ 9014.137503] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes readywlan0: interface state UNINITIALIZED->ENABLEDwlan0: AP-ENABLED
hi i am using stm32mp157caa3, there is a i2c slave operating at 3v3, while design, we have not connected( "forget")pull up line on i2c clk and data line, so i tried enabling open-drain internal pull up in dtsi , but i2cdetect is not able to find the slave devicedtsi : pins { pinmux = <STM32_PINMUX('H', 11, AF5)>, /* I2C1_SCL */ <STM32_PINMUX('B', 9, AF4)>; /* I2C1_SDA */ bias-pull-up; drive-open-drain; slew-rate = <1>; &n
I have a problem with running the software on the Cortex-M4. Probably the default device tree configuration does not start the m4 core. Has anyone used a SoMlabs board and tried to run software on the Cortex-M4 core?
Hi, i moved to new ecosystem v2.0 "dunfell" and added my layers of wifi,camera, openCV and python packages from old Yocto ecosystem. when i trying to burn my custom board eMMC with my dcmi camera plugged it stuck on U-boot waiting for the USB connection to stm32Programmer to burn the eMMC . when i stopping the burn process and i trying to turn on USB mass storage i cannot see the eMMC on my computer and when i unplugged the dcmi camera everything working perfectly.and more wired stuff that it working fine with OLDER Yocto ECOSYSTEM. what changed in U-boot with USB/DCMI peripherals ?
Hi,I am using MB1166 Rev.A display with STM32MP1 board. In the default mode it shows the logs in portrait mode, how can I rotate it to landscape mode?Regards,Shrikant
Hi,I'm lead embedded engineer at some company. Our current tech stack is android board for GUI and networking connected to stm32f2 over uart, which controls our hardware.We're trying to give a shot to stm32mp1, which could be great way to reduce hardware cost and give us better tools to offload some not-real-time, but cpu intensive, tasks to application processor.We've bought STM32MP157C-DK2 with intention of porting our software on it. First step would, obviously, be running Android on it. Since we've got android image from vendor of our current android boards and modified it only slightly, we have no experience with android development. Where should we start? I assume that it should be rather simple task, since ST provides bsp for stm32mp157c-ev1; which shares same MPU. I basically need, right now, usb storage, MIPI DSI display (DK2's built in one will be fine for now) with touch screen and uart peripheral. I'll leave running wifi dongle, usb camera and ethernet for later.
Hi,Please tell me whether the virtual Uart take any hardware resoure (eg: actual UART port, PIN).Does the virtual Uart support the baudrate change? If it support, what maximum speed it can support?The virtual UART demo example in "STM32Cube_FW_MP1_V1.2.0/Projects/STM32MP157C-DK2/Applications/OpenAMP/OpenAMP_TTY_echo"Rgds,QiZhang
Hi all, I am trying to upgrade the kernel on a board running STM32MP15 BSP v1.2.0. From what I have seen, the kernel from BSP 2.0.0 is not compatible with the tf-a and u-boot used in previous BSP versions; I assume that this is due to a change in the way clocks/resets are managed (commit), which introduces a dependency on SCMI services provided by tf-a.On the other hand I see that a stm32mp15-no-scmi.dtsi file was introduced (commit) to "revert" this SCMI dependency.If I am correct, using this dtsi file in my device tree should make it possible to upgrade the kernel only, and still use the "old" tf-a and uboot from BSP 1.2.0. However I tried this and it does not seem to work (kernel hangs immediately after the "Starting kernel ..." message).Do I need something else? What am I missing?Thank you,Guillermo
Error: failed to download Segment[0]Error: failed to download the FileError: Download partition 0x21 failedError: TSV flashing service failedI am getting this error while flashing the image. I took the st-image-weston and deleted the ui and audio packages.After doing this i m now experiencing these errors. But on repeatedly flashing again finally after 3,4 tries it get flashed.I have seen other posts related to this that this error is somehow related to rootfs.But i am not able to understand why removing graphics and audio packages affected the rootfs? and what is the solution for thsi?
Hello ST Team!I'm trying to setup a simple headless distribution (with last available kit from ST), using st-image-core as a basis:"DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh"followed by:"bitbake st-image-core"It compiles fine, and i can test on my DK2.So I modified <builddir>/local.conf to include: IMAGE_INSTALL_append = " python3-requests"IMAGE_INSTALL_append = " python3-spidev"and to remove some package:DISTRO_FEATURES_remove = " alsa gstreamer splashscreen kde pulseaudio" in order to get a thinner distro.All is fine at this step.Unfornately i'm trying to remove 'packagegroup-st-demo" or "m4projects-stm32mp1-userfs" "linux-examples-stm32mp1-userfs"using the same methods, with no success! By the way it would be cool to remove unused partition too (/usr/local/)1) May someone could tell me what is the correct way to do this?2) When it successfuly compiles, i see an "uInitrd" thing in the /boot partition and i'm not sure what to do with it
I am building graphical app using GTK. I have code that make modal dialog and it works well on ubuntu, but on stm32mp1 it doesn't. Dialog appear ,but it is not modal (i can click outsite and it disapear, or move it around). I am doing something wrong or it is impossible to make this on stm32mp1?Here is image from Ubuntu:And here is the code:#include <gtk/gtk.h> static GtkWidget *window = NULL; void openDialog() { GtkWidget* dialog = gtk_dialog_new_with_buttons ( "Do you want to continue?", GTK_WINDOW(window), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, "Yes", GTK_RESPONSE_ACCEPT, "Cancel", GTK_RESPONSE_REJECT, NULL); gtk_window_set_position(GTK_WINDOW(dialog),GTK_WIN_POS_CENTER); int result = gtk_dialog_run (dialog); gtk_widget_destroy (dialog); if(result==GTK_RESPONSE_ACCEPT) { //continuing } else { //canceling } } int main( int argc, char *argv[]) { gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPL
I would like to use node-red on STM32MP157C-DK2 to handle datas computed and shared with IPCC by Cortex-M4.Any advice ?Thank you
Hi,I was looking at the ST Yocto dunfell update and wanted to update tf-a firmware and u-boot:https://github.com/STMicroelectronics/meta-st-stm32mp/tree/dunfell/recipes-bsp/trusted-firmware-aUnfortunately I did not realize which of the tf-a versions I should use and ended up flashing the SSP version (using STM32_Programmer_CLI programmer via USB OTG connection)I had a serial terminal connected open on the other port and saw an error about SSP not being supported on this board when it tried to boot, so I wanted to flash back my old version. Unfortunately, I had to realize that its no longer possible...The USB OTG connection which is being used for DFU is dead, I do not see anything in dmesg on my notebook when plugging or unplugging the the ST board or when powering cycling the board. The other USB port which I use for a serial connection is still being detected, but I see no output in the terminal when powering the board on.Basically I lost the ability to reprogram the board via DFU...
I cannot find compatible displays for this processor.
I'm trying to build linux-5.4.31 for stm32mp1c-ev1 (tag: v5.4-stm32mp-r1). u-boot loads the kernel successfully, but then nothing happens. I've gone in with GDB, and noticed that the kernel is stuck in start_kernel(), and never leaves it.What is the fix for this?#0 cpu_v7_do_idle () at arch/arm/mm/proc-v7.S:78#1 0xc010a1a4 in arch_cpu_idle () at arch/arm/kernel/process.c:71#2 0xc0158064 in cpuidle_idle_call () at kernel/sched/idle.c:154#3 do_idle () at kernel/sched/idle.c:263#4 0xc01583d8 in cpu_startup_entry (state=CPUHP_ONLINE) at kernel/sched/idle.c:355#5 0xc0acb5b8 in rest_init () at init/main.c:451#6 0xc0f00a40 in arch_call_rest_init () at init/main.c:573#7 0xc0f00f10 in start_kernel () at init/main.c:785#8 0x00000000 in ?? ()
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.