Get ready for the STM32 Summit 2026 | Online, November 3
Join conversations with your peers and ST experts. Explore the full potential of STM32 microprocessors for your embedded design.
Most recent activity
Hi , iam trying to use spi1 pheripheral for the cortex M4 and iam using Pz0 as CLK, pz1as MISO, pz2 as MOSI, pz3 as NSS , but i tried several ways to do it by changing the kernel DTS and TF-A as well but no result , could anyone please help me how can i configure a spi pheripheral to cortex M4 with above given pins Thanks & regardsAkshay.
Hi everyone, I am using stm32mp157f-dk2 with ecosystem 3.1.I am interested to store the board information of my future product using the OTP featureAfter reading the reference manual, ch3 and 4, I have the following doubtDo I need any extra hardware to program the OTP bit/word? If not, how can I actually program those bit/word?Is it possible to read the OTP information in linux file system? Mapping them as some virtual files for example.What extra information do I need to include in the device tree to enable OTP? I assume the default project didn't include that.Any suggestions are welcomeRegards, Leung@Kevin HUBER
stm32mp157daa boot linux is slow. it will take 15S in yotco rootfs. stm32mp could not fast boot ? it too slow.
Hello. I am currently working on a custom stm32mp157a Linux based board with a KSZ9896 as network switch. At this point everything works on the board expect the RGMII connection to the switch. The RGMII is currently running in 100MBit mode for easier debugging, all signals seem to be received correctly. The stm32mp1 s not receiving any data over RGMII. Even when enabling the loopback on the interface in RGMII no data is seen using tcpdump (-Qin -i eth0). This is interesting since running ethtool -S eth0 shows the rx and tx counters going up together as packages are sent and looped back. Both connections are 100Mbit with a 125 MHz clock coming from the switch and flow control has been disabled.Could anyone point me in the right direction where to start looking?
hi I wanted info if there is a seminar or a course, or an expert person who can direct me to use the stm32 mp1 board really to take the first steps, in the area where I live near Parma Italy, thanks
Since STM32MP157D requires positive analog input, I have added a fully differential amplifier to capture the negative inputs. STM32MP157D devices embed two analog-to-digital converters.I have attached a diagram that explains my problem. I need to capture the 8 bipolar analog inputs simultaneously to get accurate phase information.What is the best and optimal way of achieving this?
Hi, I have compiled the kernel source files and prepared the install artifacts as described in README.HOW_TO.txt, but when I am copying the modules into my STM32MP157C-DK2 board, it gets out of space. Moreover in the board I only have the modules related with this kernel version (5.10.61)The initial configuration was multi_v7_defconfig and I applied all fragments specified (fragment-03-systemd.config, fragment-04-modules.config and fragment-05-signature.config). I do not know if any of these fragments is building a huge amount of modules (that I think I do not really need), or if there is any kind of problem with the partitions (see attached picture), or any other thing.I have seen that there is an step before copying the modules in the board that is used to strip the kernel modules in order to reduce its size, this is:find . -name "*.ko" | xargs $STRIP --strip-debug --remove-section=.comment --remove-section=.note --preserve-dates Nevertheless, when executing the above command, it fai
When booting off SPI NOR I would expect the device (an ST32MP151D) to possibly check the device ID then read a block starting from 0. Where is this fully documented ? What I actually see is two pairs of negative pulses on nCS then it floats open circuit. It's all within some tens of microseconds. The device is loaded with two copies of my TF-A and one U-Boot at the addresses in the TSV which are 0, 256k and 512k. Where is the documentation or application note on what exactly it does ? There is nothing in UART4 (PC10 and PC11).
I have custom board based on STM32MP157AAC3T CPU. I'm building image using yocto and board boots fine. Compared to devkit I'm using other panel .I've added driver + dts changes but I figured out that DSI drm driver is not probed. I checked dts on running system (status = "okay") also driver is compiled to kernel: zcat /proc/config.gz | grep DRM_STMCONFIG_DRM_STM=yCONFIG_DRM_STM_DSI=yI've enabled drm debug and see only other driver loaded:[ 2.010826] [drm:drm_core_init] Initialized[ 3.337453] [drm:stm_drm_platform_probe] stm_drm_platform_probe[ 3.337794] [drm:stm_drm_platform_probe] drv_load[ 3.337931] [drm:ltdc_load] [ 3.773021] [drm:stm_drm_platform_probe] stm_drm_platform_probe[ 3.773259] [drm:stm_drm_platform_probe] drv_load[ 3.773415] [drm:ltdc_load] [ 4.038804] [drm:stm_drm_platform_probe] stm_drm_platform_probe[ 4.039058] [drm:stm_drm_platform_probe] drv_load[ &n
Hi everyone, @Kevin HUBER I am using stm32mp157f-dk2 with ecosystem 3.1, with weston support.I connected the HDMI display to the development kit, reset the device, but nothing displayed.After checking, modetest show that the HDMI are properly connected, and the test commandmodetest -M stm -s 33:320x1480-60.08 -vrun successfully. But still, nothing displayed.Anyone knows how to fix this?Actually, I have report this issue before, inhttps://community.st.com/s/question/0D53W00001L0jviSAB/failed-to-start-loadsave-screen-backlightBut I didn't solve that last time.In addition, does anyone know to how remove the GTK demo from yocto/disable it from application?I tried to remove packagegroup-st-demo from CORE_IMAGE_EXTRA_INSTALL variable in image.bb, but it doesn't work.For now I can only disable it by stopping the entire weston service, which is definitely not what I want.Regards, Leung
Our board is similar to STM32MP157C-DK2 Disco board - All the Developer packages has been installed, the board is not booting whereas required power supply is provided, All the Test Points and passive components on the Board shows their desired Voltages.
Not sure if this is the best forum for this question but I am using the USB OTG port in device mode as ethernet gadget. It works fine if plugged in from boot, or first plug in anytime after. But if unplugged and plugged in again it will not come back without a board reboot:[ 46.766872] dwc2 49000000.usb-otg: new device is high-speed [ 46.771014] dwc2 49000000.usb-otg: dwc2_hsotg_enqueue_setup: failed queue (-11)Error -11 is something like "resource temporarily unavailable". Ever seen this before?
Hi,In this page, 3.5 (at the end) it is recommended that only a couple of layers are needed to get a non-distro version running.PC $> source layers/openembedded-core/oe-init-build-env PC $> bitbake-layers add-layer ../layers/meta-openembedded/meta-oePC $> bitbake-layers add-layer ../layers/meta-openembedded/meta-pythonPC $> bitbake-layers add-layer ../layers/meta-st/meta-st-stm32mpPC $> bitbake core-image-base or bitbake core-image-minimalI would have to clone only the layers mentioned above, create bblayers and make a local.conf based on opnstlinux, although leaving distro to none.I am not able to understand what would I be missing if I do not add the openstlinux layer.What can I achieve with this? Will the resulting image be applicable to the stm32MP157 -DK2?Would I be able to have this as starting point and then build up features for the same board?Thanks
STM32CubeProgrammer v2.10, running on Ubuntu to flash a 64GB MicroSD card on OSD32MP1-RED board is successfull, but failed to flash 128GB MicroSD card on the same board. Same tsv file and image binaries are used. MicroSD Card is 128GB SanDisk Ultra MicroSD XC1. STM32CubeProgrammer logs end as follows: RUNNING Program ... PartID: :0x03 Reconnecting the device ... USB speed : High Speed (480MBit/s) Manuf. ID : STMicroelectronics Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x2001, @Name /STM32MP157C?? Rev.Z, SN : 001800273239511637383434 DFU protocol: 1.1 Board : -- Device ID : 0x0500 Device name : STM32MP157C?? Rev.Z Device type : MPU Device CPU : Cortex-A7 Start operation done successfully at partition 0x03 Error: an error occured while uploading data from the virtual partition 0xF1 Received PhaseID == 0xFF, system is
I'm trying to program/debug a CM4 co processor on a STM32MP151 3rd party board.I setup the Debug as "thru Linux core" Serial port and Inet address looks ok, I got a green connection light, "status connected", and after trying to debug, I got this message:Error in final launch sequence: Failed pre launch Failed pre launch Transfer has failed, please: 1. check your physical connection 2. make sure that your target is still running Linux 3. make sure that your target has enough storage space 4. make sure that remote directory has valid access rights > you can open a Console View for this... Original message: Unable to create /usr/local/projects/STM32MP151_Test_CM4/lib/firmware because of "java.io.IOException: inputstream is closed"Any suggestions how to setup the debug?
I'm working on a project using the Seeed Studio STM32MP157C-Odyssey-SoM (it is a module with the STM32MP1, DDR, eMMC and STPMIC). I am making a new PCB into which the module is plugged. When using the module on the original host board from Seeed, both the eMMC (SDMMC2 controller) and the SD-Card (SDMMC1 controller) boot work. On my board only the eMMC boot works. When using the SWD debugger, I found that the CPU does not even enter the FSBL, but remains stuck in the boot ROM. By checking the SD-Card connection, I found that the CPU does not even attempt a write (and the SDMMC1 controller has only the reset values in its registers). I also determined that the boot mode is properly detected in the SYSCFG_BOOTR register. Is there a way to debug the boot ROM? I understand the code is not available, but I hope to be able to determine what is happening by reading peripheral registers, which ones should I check? Thanks for your help
I'm trying to set up communication between the codec and the cm4 using the stm32mp157f-dk2 dev board. Debugging in engineering mode.I've set up the gpio, i2c1 and sai2 ports for the CM4 using cubemx, but the code fails when trying to send the required startup bytes to the codec via i2c.As per the codec's data sheet I pull the Reset pin high, this seems to be working and confirmed by scoping the board. Then I call the hal i2c transmit functionHAL_I2C_Master_Transmit(hi2c1, 0x94, data, 2, 500)using a logic analyser on the i2c pins I can see the address and write flag are succesfully sent, but no data.Stepping through the code it gets to the functionI2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK)and returns an error as the TXIS flag never gets set. I'm not sure if this is a problem in how i've configured the I2c ... hi2c1.Instance = I2C1; hi2c1.Init.Timing = 0x10707DBC; hi2c1.Init.OwnAddress1 = 0; hi2c1.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; hi2c1.Init.Dual
Hi supporter, I have two boards, one is my custom board and another is dk2. Those boards are not support high speed of mmc1. The mmc2 is into high speed and has 50Mhz clock.Below is some info about mmc1 and mmc2 on dk2 board.root@stm32mp1:~# cat /sys/kernel/debug/mmc0/ios clock: 25000000 Hz actual clock: 24750000 Hz vdd: 21 (3.3 ~ 3.4 V) bus mode: 2 (push-pull) chip select: 0 (don't care) power mode: 2 (on) bus width: 2 (4 bits) timing spec: 0 (legacy) signal voltage: 0 (3.30 V) driver type: 0 (driver type B) root@stm32mp1:~# cat /sys/kernel/debug/mmc1/ios clock: 50000000 Hz actual clock: 49500000 Hz vdd: 21 (3.3 ~ 3.4 V) bus mode: 2 (push-pull) chip select: 0 (don't care) power mode: 2 (on) bus width: 2 (4 bits) timing spec: 2 (sd high-speed) signal voltage: 0 (3.30 V) driver type: 0 (driver type B) root@stm32mp1:~# mount -t debugfs debugfs /mnt/ root@stm32mp1:~# cat /mnt/^C root@stm32mp1:~# dmesg| grep mmc [ 0.000000] Kernel command line: root=/dev/mmcblk0p6 rootwait rw console=t
Hi all,I have been working with STM32MP157 chipset.I am currently trying to flash the OpenSTLinux to the SDCard using STM32CubeProgrammer inside VMWare.However, it failed in the middle of flashing.Can anyone tell me what I should do?Thank you
I am describing my approach as below:What we did:1) We are using the STM32MP157F-EV1 board (No other board is connected for this exercise, lines are open!)2) We are using OpenSTLinux(kernel:5.4) and we are using the firmware which was suggested under the "getting started" guide.What we would like to achieve:1) Want to use SPI1 interface on M4 (alongside RTOS support) and want to use PZ0, PZ1, PZ2, PZ3 Pins only (due to design limitations!)Could you please guide me from here to enable the SPI1 on the M4 side?We have already tried with the default SPI example but It seems the clock is not getting generated. We want to use only a production mode not an engineering one.Let me know if you need any other information/clarification.Thank you in advance and hoping a useful response!!BR,Ashvin
Hello,I am working with an STM32MP157 -DK2The Distribution Package currently offers a Yocto version that is aligned with Dunfell (in particular meta-st-linux)Is this repository maintained somewhere in a way that it is aligned with current Yocto releases such as hardknott?Regards
Hi,I've encountered some issues in trying to debug OpenAMP_TTY_echo project from STM32MP1 Starter Package.Here is the output log :Working on STM32CubeIDE v1.4.0 on Linux Ubuntu 20.0.4.1 (64 bit) via a virtual machine. Also tried on a Windows 10 session with same version of STM32CubeIDE, and the same error log was output.Dropbear version is 2019.78-r2.Target board is STM32MP157C-DK2. Configuration :BB_VERSION = 1.46.0BUILD_SYS = x86_64-linuxNATIVELSBSTRING = universalTARGET_SYS = arm-ostl-linux-gnueabiMACHINE = stm32mp1DISTRO = openstlinux-westonDISTRO_VERSION = 3.1-openstlinux-5.4-dunfell-mp1-20-06-24TUNE_FEATURES = arm vfp cortexa7 neon vfpv4 thumb callconvention-hardTARGET_FPU = hardMANIFESTVERSION = ostl-20-06-24-rc7-1-gcb1de90DISTRO_CODENAME = dunfellACCEPT_EULA_stm32mp1 = 1GCCVERSION = 9.%PREFERRED_PROVIDER_virtual/kernel = linux-stm32mpPREFERRED_VERSION_linux-stm32mp =Starter package version is 1.2.0 downloaded from Github : https://github.com/STMicroelectronics/STM32CubeMP1/tree
Hello, I've got a board with an STM32 MP CPU and I have to reduce the size of the final image to leave enough space on the NAND memory for a dual rootfs setup. The idea is to remove the alsa layer because I don't need the audio part. I tried to add the following lines inside the local.conf on the build folder of the Yocto project:DISTRO_FEATURES_remove += "alsa"DISTRO_FEATURES_remove += "pulseaudio"PACKAGECONFIG_remove += "alsa-lib \alsa-state \alsa-topology-conf \alsa-ucm-conf \alsa-utils \"but It doesn't work as expected and most of the alsa packages are still there.How can I completely remove the alsa layer from the Yocto project?
Hello,I have 7 ADC channel , and its configue as interrupt. But the interrupt each is get generated for different condition how I can check the which ADC channel interrupt is get generated which I have to use the function for distinguish the ADC channel. can you help me ?
I've followed all the steps from:https://wiki.st.com/stm32mpu/wiki/STM32MP15_Discovery_kits_-_Starter_Packagehttps://wiki.st.com/stm32mpu/wiki/PC_prerequisiteshttps://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_PackageCreating openstlinux-5.10-dunfell-mp1-21-03-31 distribution installation,with bitbake st-image-weston, error rises:(..layers/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs_60.9.0.bb:do_compile) failed with exit code '1'Tried:bitbake -b mozjs -D -f bitbake mozjs -c cleanall bitbake mozjs -c compilebut the same error occurs.Also tried these solutions from the forum, without any success (the error is the same):mozjs60.9.0.bb returens error while compile (st.com)mozjs_60.9.0.bb:do_compile failed with exit code '1 (st.com) This is my 3rd attempt with a fresh Virtual Machine (Ubuntu 20.04.2.0 LTS), i'm pretty sure I've followed all the steps.For the Virtual Machine I have the following specs:Cores: 6Ram: 4.5GBDisk Space: 300
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.