Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
I have deleted fip image for my board and have no idea how to rebuild them bitbake -c clean <image>does not help
Dear board,I intend to let the Cortex M4 and Cortex A7 cores of the stm32mp151A via Openamp.On the Cortex M4 the firmware runs on FreeRTOS, and I am studying the example provided.I see the implementation suggests that the library provided is not RTOS compatible and not thread safe and one should not use RTOS functions such as queues or semaphores within the callbacks. The example provided in facts uses a polling strategy to check for new messages.Source (readme 'note' section of the freertos echo example):https://github.com/STMicroelectronics/STM32CubeMP1/blob/master/Projects/STM32MP157C-DK2/Applications/OpenAMP/OpenAMP_FreeRTOS_echo/readme.txtThere are also other threads over the internet where the rtos (un)safety of openamp is discussed.https://community.st.com/t5/stm32-mpus-embedded-software/openamp-and-freertos-on-stm32mp1/td-p/209830https://github.com/OpenAMP/open-amp/issues/217Is there somewhere a Freertos friendly release of the openamp library for this microprocessor/microcontr
Hello STM community,I've been encountering some difficulties with ADC acquisition on my STM32MP157D-DK1 board. I've attempted to perform an acquisition of a potentiometer value using the ADC, but unfortunately, I haven't been successful.I've tried two approaches:Starting with an STM32 project with pre-set pins (Discovery kit with STM32MP157D MPU).Starting with an STM32 project without pre-configured pins (STM32MP157DAC1).In both scenarios, I've failed to obtain a correct analog readings. Despite trying various configurations, I haven't had any luck. Here's what's happening:Upon connecting the signal connector to the correct pin on the board, I consistently observe the same value (the maximum) for any voltage value, except when the potentiometer reaches the end of travel (0 voltage), at which point the value begins to fluctuate. It seems like the digital value is being saturated during the conversion process.The potentiometer was connected to the GND and 3V3 pins of the Arduino connecto
Hi , I am new to this boardI got this dialog box while starting the debug session as per start up guide.Board:STM32MP157D-DK1https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-M4/Modify,_rebuild_and_reload_a_firmware#what should I do here?while giving switch button, the below message came.After this, what should I do?
i am using ubuntu 22.04 ltsThe above mentioned photo is what was the output when i follow Readfile. How to do.txt;i cannot able to figure out what was the issue.And because of this issue i am getting this issue isn't it? (below attached)Now this error evolved like this.
Hello, I was wondering by using X-AI package. Will I be able to use the XGboost model converted to ONXX format in STM32 MP157 A7 core. Or it only supports Neural Network models? I was browsing through the forum and found that ONXX runtime recipe is required in order to achieve this. Here is the link for that https://community.st.com/t5/stm32-mpus-products/hello-can-i-implement-random-forest-classifier-on-stm32-mpu-if/td-p/160467 However, I see ST wiki has a page showing how to measure performance of models using ONXX runtime. website is here. Are both the ONXX runtime links same? I prefer using st link since it has detailed description on how to use it. Thanks
Hi,we are currently porting a custom dunfell distro from STM32MP151A to STM32MP151C.We followed the guides related to creating our own machine by generating the device tree in CubeMX and succeeded in building it correctly.https://wiki.st.com/stm32mpu/index.php/How_to_create_your_own_machineAttempting to flash the board crashes in writing the first partition related to the file "arm-trusted-firmware/tf-a-stm32mp151c-my-project-mx-usb.stm32". What could be the cause?Attached my conf/machine/<machine>.conf file (extended extension to .txt for uploading)I would like to thank you for any help.
Greetings!I'm new to the stm32 community.I am trying to build distribution package with qt following this guide https://wiki.st.com/stm32mpu/index.php/STM32MP1_Distribution_Package.During the build with the command “bitbake -k st-example-image-qt” I encounter the following errorFull error logs attached ERROR: All buildable tasks have been run but the build is incomplete (--continue mode). Errors for the tasks that failed will have been printed above.ERROR: Command execution failed: 1 Summary: There were 2 WARNING messages shown.Summary: There were 9 ERROR messages shown, returning a non-zero exit code. When I try to build qtwebkit separately using the “bitbake qtwebkit” command I encounter the following errorFull error logs attached| WARNING: exit code 1 from a shell command.| ERROR: Function failed: do_compile (log file is located at /home/werent4/linux_source/Distribution-package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/x86_64-l
How can I create a writable readonly rootfs using meta-readonly-rootfs-overlay layer? I am able to add this layer in yocto build for stm32mp135f-dk but its not working like overlay readonly. Is this possible to create a writable readonly rootfs? I know one method by that my rootfs is becoming total readonly but this is not what I want. Kindly help.
Im attempting to set up A/B partitioning on an STM32MP157d-dk1 board so that it can switch between partitions when updating. The board image is built using yocto, and I have used the meta-st-stm32mp layer, and am building a modified version of core-image-full-cmdline for the image.I have set up fw_setenv and fw_printenv using the following fw_env.config file:# Configuration file for fw_(printenv/setenv) utility.# Up to two entries are valid, in this case the redundant# environment sector is assumed present.# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.# Futhermore, if the Flash sector size is omitted, this value is assumed to# be the same as the Environment size, which is valid for NOR and SPI-dataflash# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.# On a block device a negative offset is treated as a backwards offset from the# end of the device/partition, rather than a forwards offset from the start.# Block device example
I am trying to create a GUI on the LCD of the STM32MP157C-DK2 but I get errors.For example, when I try the code from Shail in this thread, I get:root@stm32mp1:/tmp# su -l weston -c "env QT_QPA_PLATFORM=wayland-egl python3 /home/weston/filename.py"[ 1] Failed to open device: No such file or directory, Try again...[ 2] Failed to open device: No such file or directory, Try again...[ 3] Failed to open device: No such file or directory, Try again...[ 4] Failed to open device: No such file or directory, Try again...[ 5] _OpenDevice(1111): FATAL: Failed to open device, errno=No such file or directory.[ 6] Failed to open device: No such file or directory, Try again...[ 7] Failed to open device: No such file or directory, Try again...[ 8] Failed to open device: No such file or directory, Try again...[ 9] Failed to open device: No such file or directory, Try again...[ 10] _OpenDevice(1111): FATAL: Failed to open device, errno=No such file or directory.-------------------------------The disp
Hello, I'm trying to develop a SOM device with a STM32MP153AAB3 processor, I would like to use the 2BC CYW4373 chipset, since it's dual band wifi module. The reason why I want to use this chip is because I want to be able to use it as an Access point and STA at the same time (I want to connect to internet and deploy a webserver in a desire IP at the same time, for example 2.4GHz for AP and 5G for STA). The reason why would like a support in this topic is because I don't know if the brcmfmac driver is enough to perform in both modes at the same time. I also searched in the community to see if that is possible, I found this post in another forum: https://community.infineon.com/t5/Wi-Fi-Bluetooth-for-Linux/Issue-on-Wireless-AP-STA-mode-on-BCM43455/m-p/32968#M52 .The problem with the last post is that I'm not sure if I can apply that to the CYW4373, because the post is about another chipset.On the other hand, MuRata has a
0Hi I am trying to write a c/c++ application which will excercise the Tx and Rx pins of the can interfaces (can0 and can1) available in the STM32MP157CAA.Approach One I wrote an application which opens a socket on can0 and then writes into the Tx of can0 receive the same bytes on the Rx of can0. And same for the can1. I followed the loopback mechanism described in the below ST wiki: https://wiki.st.com/stm32mpu/wiki/How_to_send_or_receive_CAN_data#Hardware_self-testThis works. But it turns out that the above loopback happens internally and doesn't actually send the packet through the Tx pin.Approach Two Now, I am thinking if I can physically connect the Tx of can0 with the Rx of can1 using a female to female connector, and then open two separate sockets for can0 and can1, write on the Tx of can0 and then try receiving on the Rx of can1 - should that work? I have given it a quick try but doesn't seem to be working.I am not sure technically if this approach is even valid.
Hi there, During OP-TEE integration of our custom platform based on STM32MP151C MPU I'm facing an issue with DFU. It looks like the dfu command stucks in `run_usb_dnl_gadget` inside the loop and waits forever for the flush flag: NOTICE: CPU: STM32MP151CAC Rev.ZNOTICE: Model: STMicroelectronics custom STM32CubeMX board (TF-A)INFO: Reset reason (0x15):INFO: Power-on Reset (rst_por)INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000INFO: FCONF: Reading firmware configuration information for: stm32mp_ioINFO: Using USBINFO: Instance 2INFO: Boot used partition fsbl1NOTICE: BL2: v2.6-stm32mp1-r1.0(debug):v2.6-dirtyNOTICE: BL2: Built : 13:14:26, Nov 23 2021INFO: BL2: Doing platform setupINFO: RAM: DDR3-DDR3L 16bits 533000KhzINFO: Memory size = 0x8000000 (128 MB)INFO: DFU USB START...INFO: phase ID :3, Manifestation 3 at c7159862INFO: Send detach requestINFO: Receive DFU DetachINFO: DFU USB STOP...INFO: BL2: Loading image id 31INFO: Loading image id=31 at address 0
Hi there, I have started looking into writing a test program/script to test the functionality of the one of the SPI bus interface (which in the current board called SPI6). Now when I looked into the kernel (the below is the STM kernel we are using at the moment):# uname -a Linux buildroot 5.15.67 #1 SMP PREEMPT Tue Feb 6 16:12:01 GMT 2024 armv7l GNU/LinuxI can see the following: # ls -la /sys/bus/spi/devices/spi0.spi0.0/ spi0.1/ spi0.2/ spi0.3/ spi0.4/# ls -la /sys/class/spi_master/spispi0/ spi1/# ls -la /sys/class/spi_spi_master/ spi_slave/# ls -la /sys/class/spi_master/total 0drwxr-xr-x 2 root root 0 Feb 7 08:18 .drwxr-xr-x 58 root root 0 Feb 7 08:18 ..lrwxrwxrwx 1 root root 0 Feb 7 10:01 spi0 -> ../../devices/platform/soc/44004000.spi/spi_master/spi0lrwxrwxrwx 1 root root 0 Feb 7 10:01 spi1 -> ../../devices/platform/soc/5c001000.spi/spi_master/spi1# ls -la /sys/class/spi_slave/total 0drwxr-xr-x 2 root root 0 Feb 7 08:18 .drwxr-xr-x 58 root root 0 Feb 7 08:18 ..I chec
Which OS can be best compatible for STM32MP135F-DK processor? Is it feasible to use ubuntu or debian where I can use yocto build?
Hi,I have a problem in running graphics/image in STM32MP1 custom board.I'm working with STM32MP1 custom board & trying to bring up ST7701 display.I couldnt see kmscube running instead of a white screen.modetest command shows proper colour bar as attached.But running flutter shows elongated picture rather than expected one. both are attached.attached are my dtb snippet & driver file for reference. BR,Anantha R
Hello. I am a newbie when it comes to using this device. I already know how to compile a custom image in yocto framework and I am able to rewrite the device tree to configure some of the input devices. However, I am experiencing problems in porting MPI3501 to the stm32mp1 board. I tried to port the ili9486 to the device tree and gives me an error indicating an SPI problem as shown below[ 165.936890] spi_master spi0: failed to transfer one message from queue[ 225.933506] ili9486 spi0.0: SPI transfer timed outI also have difficulties on how to integrate an xpt2046 driver to the stm32mp1 board. I am trying to port tsc2046 as alternative driver for xpt2046. Is there any way for me to port MPI3501 display module to stm32mp1 board?
I used this post https://community.st.com/t5/stm32-mpus-products/stm32mp151aac-custom-board-kernel-not-starting/td-p/587192 to figure out how to add interrupts to pmic and got my board to finally boot into Linux. I then added my ethernet to the dts and now there is a conflict on PA0. The ethernet uses that pin but the interrupt is set as <&exti 55 IRQ_TYPE_EDGE_FALLING> just like most of the eval boards. I saw some use A0 gpio for the interrupt. How do I fix this?
When I start uboot it says MMC: STM32 MMC: SD/MMC:0 and STM32 SD MMC: 1 but then it won't boot linux saying "No block device". I have looked at the eval board DTS and tried to include as much relevant items as I could but am not getting any signs of life. The mmcinfo and mmc commands show nothing except the list command which just shows the same STM32 MMC: SD/MMC:0 and STM32 SD MMC: 1. I have added cd-gpios to the sdmmc1 with the gpio active low and confirmed with the gpio command that the cd pin is low when a card is present. Hoping someone can point me in the right direction.
Hello,I am trying to develop solution with STM32MP157D-DK1 board.I am using developer package.I am referring to information provided on this page, https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package Section 5.2 is as given below,5.2Installing the OpenSTLinux BSP packages5.2.1Building and deploying the Linux kernel for the first time5.2.2Building and deploying the gcnano-driver for the first time (only on STM32MP15x lines )5.2.3Building and deploying the U-Boot for the first time5.2.4Building and deploying the TF-A for the first time5.2.5Building and deploying the OP-TEE for the first time I completed 5.2.1 and 5.2.2 sections successfully.5.2.1Building and deploying the Linux kernel for the first time5.2.2Building and deploying the gcnano-driver for the first time (only on STM32MP15x lines ) I wanted know that at this stage without completing steps mentioned belowBuilding and deploying the U-Boot for the first time ,Building and deploying the
I need to use the tc358867 bridge in my project. However, the hardware uses the clock that comes from the DSI. The chip's operating cycle requires the clock that comes from the dsi to start working and be found on the i2c bus. I am unable to activate the DSI clock during driver initialization so that I can activate my bridge. Is it possible to use a DSI dummy to inject the clock signal?
Hey, I am using STM32F407 and I am trying to configure the ethernet peripheral (and LWIP) with the cubemx with no success. I cant ping my board.Please anyone can help me with this?
Hi there,I currently work on the integration of OPTEE to our custom STM32MP151C-based platform. The problem that I've faced is that U-boot hangs just after the board_init_f() function and relocation procedure: NOTICE: CPU: STM32MP151CAC Rev.ZNOTICE: Model: STMicroelectronics custom STM32CubeMX board (TF-A)INFO: Reset reason (0x15):INFO: Power-on Reset (rst_por)INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000INFO: FCONF: Reading firmware configuration information for: stm32mp_ioINFO: Using USBINFO: Instance 2INFO: Boot used partition fsbl1NOTICE: BL2: v2.6-stm32mp1-r1.0(debug):v2.6-dirtyNOTICE: BL2: Built : 13:14:26, Nov 23 2021INFO: BL2: Doing platform setupINFO: RAM: DDR3-DDR3L 16bits 533000KhzINFO: Memory size = 0x8000000 (128 MB)INFO: DFU USB START...INFO: phase ID :3, Manifestation 3 at c7146592INFO: Send detach requestINFO: Receive DFU DetachINFO: DFU USB STOP...INFO: BL2: Loading image id 31INFO: Loading image id=31 at address 0x2ffff000INFO: Ima
Hi,I was using an STM32MP157F-EV1 evaluation kit and followed the instructions mentioned in https://wiki.st.com/stm32mpu/wiki/X-LINUX-AI_Starter_package#Configure_the_AI_OpenSTLinux_package_repository and installed the AI OpenSTLinux package. I then proceeded to X-Linux-AI sample AI applications. The demos appeared on the onboard display on the evaluation kit.I tried opening the applications using the touch interface as well as the command line. Example https://wiki.stmicroelectronics.cn/stm32mpu/wiki/TFLite_Cpp_object_detectionIn both cases the application loads but there is not input from the onboard camera.I tried copying some test images onto the testdata folder and running the application to detect the static images. This works fine.The demo camera app on the demo launcher works fine as well. But none of the AI demo applications are able to use the stream from the camera.Below are a few things I tried.root@stm32mp1:~# /usr/local/demo-ai/computer-vision/tflite-object-detection/bin/
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.