Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
Good morning,I am trying to send a buffer consisting of 896 elements to a Wi-Fi Chip from STM32MP131. I am trying to use the HAL Driver DMA (which uses interrupt to transfer blocks using IDMA).Although the code has several checks and balances. I am not encountering any failure when that function is processed. I monitored with the logic analyzer, and I am seeing transmission. But I suspect that the transmission did not go through well. I tried to read the set of values with and without writing and the values are same Indicating that the receiver has not responded.If I use polling instead of IDMA. the receive FIFO is empty when trying to receive. I cannot send through polling and receive through interrupt as that would be an interrupt issue.I tried to send the set of elements byte by byte using CMD52. In that case the tests are failing.Kindly suggest and help me here. If possible, point me to a location where I have access to some HAL_SDIO drivers that can be used for STM32MP131.Thanks a
Hi ,I am trying flash the Starter Package of Krikstone and Dunfell branch, but unsuccessful, but the starter package of Mickledore branch successfully flash on sd-card.Note: Mainly Error on Bootfs partition , and got the segmentation fault. SD Card -- 16 GB
Hello everyone,I'm developing embedded firmware for stm32mp135f-dk board using Yocto/Bitbake (Kirkstone) with meta-st-stm32mp layer. My question is related to SD card partitions, so please find my flash layout .tsv file below:#OptIdNameTypeIPOffsetBinary-0x01fsbl-bootBinarynone0x0arm-trusted-firmware/tf-a-stm32mp135f-dk-usb.stm32-0x03fip-bootFIPnone0x0fip/fip-stm32mp135f-dk-optee.binP0x04fsbl1Binarymmc00x00004400arm-trusted-firmware/tf-a-stm32mp135f-dk-sdcard.stm32P0x05fsbl2Binarymmc00x00044400arm-trusted-firmware/tf-a-stm32mp135f-dk-sdcard.stm32P0x06metadata1Binarymmc00x00084400arm-trusted-firmware/metadata.binP0x07metadata2Binarymmc00x000C4400arm-trusted-firmware/metadata.binP0x08fip-aFIPmmc00x00104400fip/fip-stm32mp135f-dk-optee.binPED0x09fip-bFIPmmc00x00504400nonePED0x0Au-boot-envBinarymmc00x00904400noneP0x10bootfs-aSystemmmc00x00984400st-image-bootfs-poky-stm32mp1.ext4PED0x11bootfs-bSystemmmc00x08984400noneP0x12rootfs-aFileSystemmmc00x10984400custom-image-stm32mp1.ext4PED0x13rootf
Hello,I developed a custom board very close to the STM32MP157D-DK1.I use the STM32mp157 and the power manager the STPMIC1AI use "openstlinux-6.1-yocto-mickledore-mpu-v24.06.26"I can't get my card to go into deep low power, I directly get a problem related to vref_ddrhttps://wiki.st.com/stm32mpu/wiki/Power_overviewhere is the error i get on the console :root@stm32mp1-display:~# systemctl suspendroot@stm32mp1-display:~#root@stm32mp1-display:~# [ 149.909535] PM: suspend entry (deep)[ 149.918601] Filesystems sync: 0.006 seconds[ 149.922403] Freezing user space processes[ 149.927460] Freezing user space processes completed (elapsed 0.001 seconds)[ 149.933074] OOM killer disabled.[ 149.936396] Freezing remaining freezable tasks[ 149.942086] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)[ 150.116577] dwc2 49000000.usb-otg: suspending usb gadget configfs-gadget.g1[ 150.141203] Disabling non-boot CPUs ...[ 150.144797] CPU1 killed.E/TC:0 do_pm_callback:75 Suspend vref_
Being relatively new to Yocto, I struggle a bit with some issues.I intend to use ADC channels in my (user space) applications, but the channel names seem confusing.Listing /sys/bus/iio on a live system, I can see two ADC devices, device_0 and device_1 - which I presume to correspond to ADC1 and ADC2.The device 0 contains channels voltage_18_raw and voltage_19_raw, and device 1 contains channels voltage_13_input, voltage_14_raw, voltage_18_raw and voltage_19_raw.In general, do those numbers <nn> refer to ADC1_INP<nn> / ADC2_INP<nn> in the datasheet ?The problem here is, ADC1_INP18 and ADC2_INP18 refer to pin PA4, and ADC1_INP19 and ADC2_INP19 refer to PA5. Which would not be a problem as such , but according to the board schematics, both pins are connected to USB_PWR_CC1 and USB_PWR_CC2, respectively.OTOH, there are 6 pins of the Arduino connector CN17 marked as analog inputs in the schematics of the DK, but the channel numbers liste
Hi,I am unable to see the can0/can1 interface on my brand new STM32MP2 Eval board after re-flashing the Starter-Package(FlashLayout_sdcard_stm32mp257f-ev1-ca35tdcid-ostl-m33-examples-optee.tsv).Previously I was able to see both the interfaces(with ls /sys/class/net) with the preloaded micro-sdcard OS that came with the board and was able to send/receive CAN data to external devices.But after flashing the firmware that came with starter-package: stm32mp2-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26, CAN interface stopped working. I tried modprobe the can driver and also rebuilding/flashing the kernel/DTS using the Developer package but nothing helps.Unfortunately I didn't backup the micro-sd contents before reflashing. I assumed the sdcard was loaded with starter-package contents when the board arrived.Any help would be highly appreciated.Thanks,Satish
Hi i tried to compile python3-pyqt5 , in my stm32mp157f-dk2 board but failed to compile. in my local.conf file i added this line but again fail.IMAGE_INSTALL:append = " python3-pyqt5"Note: i want any browser just i want to check that URL is working or not with GUI .please check the logs and please let me know where i am missing. bitbake st-image-qtNOTE: Started PRServer with DBfile: /home/md/Workspace/Demo_file_fr/MPU_EDS_V1.0/build-openstlinuxweston-stm32mp1/cache/prserv.sqlite3, Address: 127.0.0.1:41977, PID: 4196Loading cache: 100% |###########################################################################################################| Time: 0:00:00Loaded 4738 entries from dependency cache.Parsing recipes: 100% |#########################################################################################################| Time: 0:00:02Parsing of 2990 .bb files complete (2987 cached, 3 parsed). 4741 targets, 536 skipped, 0 masked, 0 errors.NOTE: Resolving any miss
I having some difficulties figuring out details about the ADC usage under Linux, in particular on the MP135F-DK.I located the io driver sources, and the drive itself seems to work:Checking the board user manual, the GPIO pins PC2 and PC3 are routed onto CN8, and seem available for application usage as ADC inputs.Can I access this two channels via the existing /sys/bus/iio/devices interface ?Or would I have to modify the sources ?Here a code excerpt from the driver (stm32-adc.c):static const struct stm32_adc_regspec stm32mp13_adc_regspec = {.dr = STM32H7_ADC_DR,....or_vddcore = { STM32MP13_ADC2_OR, STM32MP13_OP0 },.or_vddcpu = { STM32MP13_ADC2_OR, STM32MP13_OP1 },.or_vddq_ddr = { STM32MP13_ADC2_OR, STM32MP13_OP2 },.ccr_vbat = { STM32H7_ADC_CCR, STM32H7_VBATEN },.ccr_vref = { STM32H7_ADC_CCR, STM32H7_VREFEN },};Do the definitions marked in red mean only this specific channels are available ?
Hi everyone,I'm currently working on a project to set up the X-STM32MP-GNSS1 GNSS module with my Raspberry Pi 5. The goal is to retrieve GNSS data and potentially other sensor data provided by the module.Specifically, I’m looking for help with Setting Up Serial Communication, like How to configure the Raspberry Pi 5 to communicate with the X-STM32MP-GNSS1 via serial /dev/ttyAMA0 (I believe this the the port on which it communicates.) also, Any documentation or a list of serial commands I can use with the X-STM32MP-GNSS1 to enable GPS, get position data, etc. a sample code would be really helpful. Thanks in advance for any advice or resources. I’d really appreciate any pointers to get this working smoothly!
Hello everyone!I'm getting started with STM32mp157f-DK2. I was able to successfully build images using Yocto as well as buildroot (using stm32mp157c config) and port various command line applications to stm32mp157f-dk2 I'm a trying to develop/port Qt, Gtk applications for the stm32mp157f-dk2 board. Also Can someone help me with how to compile Qt / Gtk applications for stm32mp157f-dk2? Is there a good documentation/guide available for that? Thanks in advance!
Hello everyone,I am using the STM32MP135 SoM from PHYTEC, and I’m creating a custom device tree source (DTS) file tailored to our carrier board. I’m having trouble controlling the backlight PWM signal. I’m unable to enable the PWM and enable signal as expected, although I can change the enable pin status if I remove the enable pin definition from the backlight node. Additionally, there is no [used] indication next to GPIOI pin 0, which I’ve configured as the panel enable GPIO. I suspect this issue may be related to the LCD node configuration.I’ve attached my GPIO states and the DTS file for reference.
Development environment: buildroot st/2024.02.3Hardware: STM32MP157DAB1 (The schematic diagram is in "SCH-887T227012(A0)-20240815.pdf" in the attachment). The LCD backlight pin of my board is connected to PF7, and I use the STM32CubeMX configuration as follows:Then modify the generated device tree file to add backlight_pwm node as follows:Then add pwm_backlight and panel_rgb, as shown below:LTDC has also been modified as follows:Screen parameters are written in buildroot/output/build/linux-custom/drivers/gpu/drm/panel/panel-simple.c After compiling and burning, print the following information:[ 12.640841] platform pwm-backlight: deferred probe pending[ 12.645020] platform 5a001000.display-controller: deferred probe pending[ 12.651762] platform panel-rgb: deferred probe pending Please help to see, where is the problem with the configuration, which makes it impossible to load the above drivers?
While I got some experience with Cortex M devices - including several STM32 families - and Linux as host OS, I'm pretty new to asymmetrical dual-core systems like the STM32MP1 devices.What sets them apart is the tight integration of both cores, and the ability to run realtime bare-metal applications in close cooperation with Linux as a host OS. Or so I think.What I got already are the MP135-DK on the way, the OpenLinux Dev package installed and running, and a small user space application built. The CubeMP1 and CubeMP13 packages with the CM4 BSP, HAL, and very few examples.And of course the MP1 datasheets/reference manuals, which I browsed.I think I have identified some of the important chapter, but I'm not yet through.So, here my questions.Since I haven't found any such thing yet, is there a single proper documentation of the API for synchronisation and communication between the CA7 and CM4 core ?In particular, configuration of CM4 setting, code deployment (as the CM4 seems to execute
Hi Everyone,I have problem with custom carrier and dts. I am using MP135 SoM from PHYTEC and when I add panel backlight property to the panel node, there is no pwm output, but when I comment out this feature from the panel node, the panel backlight works as expected. Can you check my dts? I am using a generic RGB display. This is my working dts: #include "stm32mp1-phycore-custom-carrier.dtsi" / { model = "CUSTOM CARRIER"; compatible = "phytec,stm32mp135f-pbacd10", "phytec,stm32mp135f-pcl076-emmc", "phytec,stm32mp135f-pcl076", "st,stm32mp135"; memory@c0000000 { reg = <0xc0000000 0x20000000>; }; reserved-memory { #address-cells = <1>; #size-cells = <1>; ranges; optee_framebuffer@dd000000 { reg = <0xdd000000 0x1000000>; no-map; }; optee@de000000 { reg = <0xde000000 0x2000000>; no-map; }; }; panel_rgb: rgb-panel { compatible = "panel-dpi"; label = "dt304b-lcd"; reset-gpios = <&gpioi 0 GPIO_ACTIVE_HIGH>; //backli
Can you please check my device tree configuration?Backlight as a GPIO is working correctly, but when i try to use it as pwm, the pin line is always fixed to low.Inside my .dts:This is my panel definition:panel { compatible = "newkoro,display","simple-panel"; //enable-gpios = <&gpioe 12 GPIO_ACTIVE_HIGH>; //reset-gpios = <&gpioe 11 GPIO_ACTIVE_HIGH>; backlight = <&backlight>; power-supply = <&vdd>; status = "okay"; port@0{ //reg = <0>; panel_in: endpoint { remote-endpoint = <&ltdc_ep0_out>; }; }; }; This is backlight as simple gpio (working)//backlight: panel-backlight { // compatible = "gpio-backlight"; // gpios = <&gpioe 4 GPIO_ACTIVE_HIGH>; //default-off; //}; This is backlight as pwm (not working) backlight: panel-backlight { compatible = "pwm-backlight"; pwms = <&backlight_pwm 0 100000 0>; brig
Hi ST Team,i am facing the issues for installing the browser form the last 15 days, i did not get any browser on my stm32mp157f-dk2. board ,Can you please suggest me to install any browser, just i want to check this board or processor will work for our project or not. qt-wpewebit ---> fails wpe-webkit --> faildpyqt5 --> faild.chromium --> compilation error on mesa libraries.what should i do, which browser can work for stm32mp1.and please let me know i want to use x11 instead of wayland. is it possible ?. if possible then how can i do ?.
Hello everyone,I am trying to migrate a project for the STM32MP151C from dunfell to kirkstone.The versions of the main components I am using are the following:ComponentVersiontf-a-stm32mpv2.6-stm32mp-r2.2optee-os-stm32mpv3.16.0-stm32mp-r2.2u-boot-stm32mpv2021.10-stm32mp-r2.2linux-stm32mpv5.15.145-stm32mp-r2.2 I used a given .ioc file with a newer version of STM32CubeMX (v6.8.0 - openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23) to re-generate the devicetrees and added the custom changes from the old devicetrees (see devicetrees attached).Eventually during boot following error occurs: I/TC: Primary CPU switching to normal world boot D/TC:0 tee_entry_exchange_capabilities:100 Asynchronous notifications are disabled D/TC:0 tee_entry_exchange_capabilities:112 Dynamic shared memory is enabled D/TC:0 0 core_mmu_xlat_table_alloc:513 xlat tables used 4 / 4 D/TC:? 0 tee_ta_init_pseudo_ta_session:296 Lookup pseudo TA a8cfe406-d4f5-4a2e-9f8d-a25dc754c099 D/TC:? 0 tee_ta_init_pseudo_t
Hey there,I have a custom stm32mp153c based board. I adapted bootloaders/optee/kernel from scarthgap branch of meta-st-stm32mp and have everything booting (tf-a 2.8, u-boot 2022.10, optee 3.19, kernel 6.1.28). The only remaining warnings I have are these:root@stm32mp1:~# dmesg | grep pmic[ 0.459590] stpmic1 2-0033: PMIC Chip Version: 0x21[ 0.497690] stpmic1-regulator 5c009000.i2c:stpmic@33:regulators: Failed to create device link (0x180) with 2-0033[ 0.506580] stpmic1-regulator 5c009000.i2c:stpmic@33:regulators: Failed to create device link (0x180) with 2-0033[ 0.516882] stpmic1-regulator 5c009000.i2c:stpmic@33:regulators: Failed to create device link (0x180) with 2-0033 I found only two threads mentioning the issue, but couldn't figure out how to fix it and even got an impression that these are somehow expected?https://community.st.com/t5/stm32-mpus-embedded-software-and/platform-5a001000-display-controller-deferred-probe-pending-why/m-p/710943https://community.st.com/t5/stm32-mp
linux内核源码当中的SAI,两个子模块如何同时进行接收,一般正点的sda用于发送,SDB用于接收Translated to Englishlinux kernel source code among the SAI, how the two submodules at the same time to receive, the general positive point of the sda is used to send, SDB is used to receive
Hi, there I have a stm32mp157f-dk2 board and I am following the instructions on: https://wiki.st.com/stm32mpu/index.php?title=STM32MPU_Developer_Package&sfr=stm32mpu to install the developer package. I've compiled all the components one by one as indicated and I am now trying to use openocd and GDB to cross-debug the board. As I executed "$GDB -x Setup.gdb", with the correct symbol paths modified in Setup.gdb, an error message, as in the Subject line, showed before GDB aborted. Has anybody seen this error message before ? Thanks. Eric
Hi,I am a new starter using STM32MPU257F. I plug a headset into a USB port and use the below command to play an audio-only wav file.gst-play-1.0 audiofile.wavthe output log as below=======================[ 240.645711] usb 1-1.2: new full-speed USB device number 3 using ehci-platform[ 240.864117] input: Synaptics Hi-Res Audio-BY as /devices/platform/soc@0/42080000.rifsc/42080000.rifsc:usb@482e0000/482f0000.usb/us1[ 240.933975] hid-generic 0003:0572:1B08.0001: input: USB HID v1.11 Device [Synaptics Hi-Res Audio-BY] on usb-482f0000.usb-1.2/input3root@stm32mp2:~# gst-play-1.0 file_example_WAV_2MG.wavPress 'k' to see a list of keyboard shortcuts.Now playing /home/root/file_example_WAV_2MG.wavWARNING Failed to connect: Connection refusedWARNING debug information: /usr/src/debug/gstreamer1.0-plugins-good/1.22.6-r0/ext/pulse/pulsesink.c(616): gst_pulseringbuffer_open_deeRedistribute latency...0:00:11.9 / 0:00:11.9Reached end of play list.=======================but I cannot hear any sound
Hi,I'm getting an exception stack on bootup:[ 3.882380] ------------[ cut here ]------------[ 3.886351] WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:969 clk_core_disable+0xf0/0x2c4[ 3.894281] pll4_p already disabled[ 3.897839] Modules linked in:[ 3.900798] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 5.15.145 #1[ 3.908314] Hardware name: STM32 (Device Tree Support)[ 3.913395] [<c0110c4c>] (unwind_backtrace) from [<c010c668>] (show_stack+0x10/0x14)[ 3.921128] [<c010c668>] (show_stack) from [<c0c697e8>] (dump_stack_lvl+0x40/0x4c)[ 3.928753] [<c0c697e8>] (dump_stack_lvl) from [<c0125888>] (__warn+0x88/0x128)[ 3.935978] [<c0125888>] (__warn) from [<c0c63c94>] (warn_slowpath_fmt+0x78/0xa8)[ 3.943510] [<c0c63c94>] (warn_slowpath_fmt) from [<c0696480>] (clk_core_disable+0xf0/0x2c4)[ 3.951849] [<c0696480>] (clk_core_disable) from [<c0c6a298>] (clk_core_disable_lock+0x18/0x24)[ 3.960589] [<c0c6a298>] (clk_core_disable_lo
Dear ST community, i don't know if any one encountered this issue before, however when i try to import the matplotlib module on the mickledore version of the openstlinux the system crushes like shown in here Python 3.11.5 (main, 24 2024, 12:23:19) [GCC 12.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.pyplot as plt Matplotlib is building the font cache; this may take a moment. Segmentation fault (core dumped) root@stm32mp157c:~# Broadcast message from systemd-journald@stm32mp157c (Sat 2024-10-04 01:56:00 UTC): systemd[1]: Caught <SEGV> from unknown sender process. Broadcast message from systemd-journald@stm32mp157c (Sat 2024-10-04 01:56:00 UTC): systemd[1]: Caught <SEGV>, dumped core as pid 1621. Broadcast message from systemd-journald@stm32mp157c (Sat 2024-10-04 01:56:00 UTC): systemd[1]: Freezing execution. im including the image to my image config like so IMA
Hi!I'm using the provided Kernel software from ST. The Kernel from STM32CubeIDE.I have compiled the kernel and made it start. But once In load a module by using "insmod" or placing the modules inside the /liv/modules folder, then the kernel hangs.I get no error messages so If can't point at anything that may causing the problem.It can be that my kernel is located at another partition (bootfs) /dev/mmc0p6 and not in rootfs /dev/mmc0p7 where insmod is. Perhaps insmod expecting another kernel locationI have a small thought that it might be so that the kernel from ST is modified to fit STM32MP processors and cannot be allowed to be changed. Please let me know.Kernel version: 6.1.82
I have configure so my login session is done automatically. So once my STM32-OS starting at my STM32MP151 processor, then weston is up after few seconds.OK! Good, but I want a login as well. Have anyone any recommendation of a software for a login session that works on STM32MP1 dev boards?I have been trying with SDDM, without any success. It seems that it won't work.kmscon will work...but...it's terminal based login only. Also kmscon using standard HDMI resolution, which is not good because if your text is to small, then you cannot change the resolution inside DRM.
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.