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
I want to use i2c-2 and i2c-6 from the user space to access different external devices. With 'i2cdetect -l' I can see the interfaces, But executing 'i2cdetect 3' sais 'Bus busy'.Used HW: Phytec Sabre Board (phyBOARD-Sargas)Linux: Yocto-OpenSTLinux PD20.2.0Executed command that results in error:root@phycore-stm32mp1-3:~# i2cdetect -l i2c-3 i2c STM32F7 I2C(0x5c009000) I2C adapter i2c-1 i2c STM32F7 I2C(0x40013000) I2C adapter i2c-2 i2c STM32F7 I2C(0x5c002000) I2C adapter i2c-0 i2c STM32F7 I2C(0x40012000) I2C adapter root@phycore-stm32mp1-3:~# i2cdetect 3 WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-3. I will probe address range 0x03-0x77. Continue? [Y/n] 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- [ 217.031102] stm32f7-i2c 5c009000.i2c: bus busy [ 217.034098] stm32f7-i2c 5c009000.i2c: Trying to recover busFor /dev/i2c-0 and /dev/i2c-2 the command i2cdetect works as expected. But not for the newly added /dev/i2c-1 and /dev/i2c-3.R
I'm using a custom board(with STM32MP151C) with custom device tree, the distribution is built with ST's Distribution Package (st-image-core). Now the bootloader (u-boot v2020.01) freezes while "starting kernel" with some strange errors before. After waiting for a while, linux will reboot.I had no problem with thud, but I had this problem with dunfell.Should I search for errors in the DT or is there another reason for not starting the kernel?NOTICE: CPU: STM32MP151CAA Rev.Z NOTICE: Model: STMicroelectronics custom STM32CubeMX board WARNING: VDD unknownINFO: Reset reason (0x214): INFO: IWDG2 Reset (rst_iwdg2) INFO: Using SDMMC INFO: Instance 1 INFO: Boot used partition fsbl1 NOTICE: BL2: v2.2-r2.0(debug):v2.2-dirty NOTICE: BL2: Built : 13:36:23, Oct 22 2019 INFO: Using crypto library 'stm32_crypto_lib' INFO: BL2: Doing platform setup INFO: RAM: DDR3-DDR3L 16bits 400000Khz INFO: Memory size = 0x20000000 (512 MB) INFO: BL2 runs SP_MIN setup INFO: BL2: Loading image id 4 INFO: Loading image
I have stm32mpdk2 board and trying to interface a uart based peripheral ( nfc) .I have connected Tx , RX , Vdd, GND > pin (12,8,1,6) .tty driver is already enabled in the kernel. and the peripheral on powering up shows the init sequence correctly(led pattern is correct)below are the logs for dmesg | grep tty*[ 0.000000] Kernel command line: root=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rootwait rw console=ttySTM0,115200[ 1.702933] 4000e000.serial: ttySTM3 at MMIO 0x4000e000 (irq = 53, base_baud = 4000000) is a stm32-usart[ 1.703246] serial serial0: tty port ttySTM3 registered[ 1.704628] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 54, base_baud = 4000000) is a stm32-usart[ 2.915213] printk: console [ttySTM0] enabled[ 7.768477] systemd[1]: Unnecessary job for /dev/ttySTM0 was removed.[ 7.781958] systemd[1]: Created slice system-getty.slice.[ 7.817838] systemd[1]: Created slice system-se
LMint 20 (based on Ubuntu 20) no ttyACM connection show up after the DK2 board is loaded with the Flash firmware using STM32 Programmer. The board boots as the wiki shows but no ttyACM devices show up to use with minicom.I am stuck.
With STM32MP157C-DK2, I like to exercise SPI5 hardware, to use this interface to do talk to FPGA and DSP chips. And I need to use SPI5 in both U-boot and Linux runtime, here I got some issues to enable the SPI5 device.1, Within U-boot.How to enable SPI5 device and config pin mux.I already recompiled u-boot source code and add in command of sspi, but when issue sspi under uboot terminal, it return failure, apparently the default SPI bus not even configured and enabled at all.ubi - ubi commandsubifsload- load file from an UBIFS filesystemubifsls - list files in a directoryubifsmount- mount UBIFS volumeubifsumount- unmount UBIFS volumeums - Use the UMS [USB Mass Storage]usb - USB sub-systemusbboot - boot from USB deviceversion - print monitor, compiler and linker versionTRIFECTA> sspiInvalid bus 0 (err=-19)TRIFECTA> help sspisspi - SPI utility commandUsage:sspi [<bus>:]<cs>[.<mode>] <bit_len> <dout> - S
When trying to migrate a project (STM32MP153A) from basic uboot (Ecosystem 1.3) config to trusted (Ecosystem 2.1) system panics when booting TF-A because of SPI6 being enabled and assigned to the nonsecure core.Is this expected behaviour or just a regression?NOTICE: CPU: STM32MP153AAC Rev.B NOTICE: Model: STMicroelectronics custom STM32CubeMX board INFO: Reset reason (0x15): INFO: Power-on Reset (rst_por) INFO: PMIC version = 0x21 INFO: Using SDMMC INFO: Instance 1 INFO: Boot used partition fsbl1 NOTICE: BL2: v2.2-r2.0(debug):2020.08-rc1-3282-g35ea9648ac-dirty NOTICE: BL2: Built : 09:37:37, Mar 3 2021 INFO: Using crypto library 'stm32_crypto_lib' INFO: BL2: Doing platform setup INFO: RAM: DDR3-DDR3L 16bits 533000Khz INFO: Memory size = 0x20000000 (512 MB) INFO: BL2 runs SP_MIN setup INFO: BL2: Loading image id 4 INFO: Loading image id=4 at address 0x2ffeb000 INFO: Image id=4 loaded: 0x2ffeb000 - 0x2ffff000 INFO: BL2: Loading image id 5 INFO: Loading image id=5 at address 0xc0100000 INF
Hi CommunityIn the DT the TIM1, TIM4 and SPI4 are assigned to the M4 and in the pinmux the RSVD is set (DT attached). Booting A7 generates no ERROR during Kernel boot. If the M4 is started from the A7 context the following ERROR Messages occurs for all assigned peripherals:[ 1648.984460] remoteproc remoteproc0: powering up m4[ 1648.990531] remoteproc remoteproc0: Booting fw image core4-m4-app.elf, size 1164296[ 1648.998032] stm32mp157-pinctrl soc:pin-controller@50002000: invalid function.[ 1649.003955] rproc-srm-dev: probe of m4@0:m4_system_resources:timer@40002000 failed with error -22[ 1649.013430] stm32mp157-pinctrl soc:pin-controller@50002000: invalid function.[ 1649.019935] rproc-srm-dev: probe of m4@0:m4_system_resources:timer@44000000 failed with error -22[ 1649.029232] stm32mp157-pinctrl soc:pin-controller@50002000: invalid function.[ 1649.035907] rproc-srm-dev: probe of m4@0:m4_system_resources:spi@44005000 failed with error -22[ 1659.359767] rproc-srm-core m4@0:m4_system_reso
Cannot set a time greater than 2038, whether in the console or the c program
I don't want to use a usb to serial adapter because I need the 9th bit available in the UART and this converters are not generally compatible with that
Previous kernel versions had support for the STM32MP1 internal temp sensor. See:stm32mp1-adc-temp definition in stm32mp157c device treeDT bindings documentationApparently this has been removed in later kernels. Isn't this supported anymore ?Thanks,Guillermo
Hi, i wondering if there a way to add some GPIO pin to the DTS config so this pin will act like PONKEY of the STPMIC1 ?actually i need to implement power off button if there a problem with linux app...
I use CubeMx creating stm32mp157 device tree. After the 2nd create , the path "CA7->DeviceTree->[My board]->u-boot" always has a file named "<My board>.dts.bak" . modified the Device Tree code in kernel (USER CODE), then push create. The u-boot dts will be replaced by kernel dts.
I am running the st-example-image-qt distribution package and am trying to use the M4 processor to feed sensor data to my UI. I can import the OpenAMP_TTY_echo example into stm32cubeide and debug it with my board fine. But now I am trying to make my own project since the OpenAMP example does not have a .ioc configuration file and I would like to set up some timer interrupts and things. Looking in the OpenAMP example, the timer HAL files are not even in there. So I created a new project and selected the STM32MP157c-DK2. It loaded a .ioc configuration file but the project will not build. I don't think there is a build file but I thought that was generated automatically? I can add a debug configuration but there is no .elf to link to. What would be the easiest way to move forward?
Earyl booted M4 firmware via u-boot remoteproc.Synchronizing Blocking method: At the moment we use the blocking method (OpenAMP_Init function through to synchronizing the early booted M4 firmware with Linux A7. Synchronizing Non-blocking method:We would like to change this behevior to an non-blocking method.
Hi,I use stm32mp157a-dk1 board and sdcard boot.Host PC is win10, virtualbox and ubuntu 20.04.1I try this example but have some problem.https://github.com/STMicroelectronics/meta-st-stm32mp/blob/dunfell/recipes-kernel/linux/linux-stm32mp/README.HOW_TO.txtI don`t have folder "/media/$USER/bootfs/" and media/$USER/rootfs/lib/modules/My board complete this step.But error occurs this command . /media/sh/bootfs/ is not directory. (*'sh' is my user name) What is problem? ^^;;
Hello STM Community,I am following the workshop STM32Cube.AI workshop with my STM32MP157C-EV1 https://www.youtube.com/watch?v=k8AAr84z27s&list=PLnMKNibPkDnEOUdTXlDH7yWN6qyxXPsEb&index=9&t=8m15s When I analyze the model I get the error "Required Ram or Flash size for asc is bigger than available Ram or Flash�? (where >asc< is the name of my model), with resources required for the model: “Flash occupation: 15.90 KiB�? and “RAM: 20.64 KiB (128.00 KiB present)�?. So the RAM is not the problem. I get the feeling, that it has no allocated Flash. How do I declare which Flash storage to use? In the advanced settings, I can set “use external Flash�?, but I do not get how to use it and if I have to use it. Is there any good tutorial?I tried different Networks, like the HAR-CNN-Keras from the 'getting started', but that is an even bigger Network.Tried the STM32MP157C-EV1 in engineering boot mode (B 0 0 1) and boot from microsd (B 1 0 1)Used Software: 1.Windows 10 using STM32Cube
Hello all, I managed to enter the DFU mode by rebooting the SoC from the command line after setting the proper tamper register to get the Uboot to select my desired USB boot mode. After flashing the new image with the STM32CubeProgrammer I would like to be able to reboot the SoC again without having to do press physically the reset button or have to type the reset command inthe Uboot with a STLink console. I see in the wiki that the proper configuration of the tsv file should be able to trigger a RESET PhaseID (0xFF) but I have no clue on how to do it. I entered the line "- 0xFF reset Binary none 0x0 arm-trusted-firmware/tf-a-stm32mp157c-demo-logic-analyser-mx-serialboot.stm32" at the end of my tsv file but it does not do the trick. By checking the stm32prog.c source code it seems that that PhaseID is unusable and will only be triggered in case of an error ocurring
We are using STM32MP157c-DK2 board. Using STM32MP_KeyGen_CLI tool generated public key, private key and publicKeyhash.bin. As mentioned in STM32 webpage, https://wiki.st.com/stm32mpu/wiki/KeyGen_tool Hash public key contains the SHA-256 hash of the public key in binary format which generated by Gen tool.Is there a way or steps to generate same publicKeyhash.bin (without using STM32 key_Gen tool) via openssl or any other crypto utility
Follow the steps below:https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Modify,_rebuild_and_reload_the_Linux%C2%AE_kernelMy system : Windows 10 + VMware +Ubuntu 18.04*******************************************************************~/STM32MPU_workspace/STM32MP15-Ecosystem-v2.0.0/Developer-Package/stm32mp1-openstlinux-5.4-dunfell-mp1-20-06-24/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.4.31-r0/linux-5.4.31$ make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040scripts/kconfig/conf --syncconfig Kconfig SYSHDR arch/arm/include/generated/uapi/asm/unistd-common.h SYSHDR arch/arm/include/generated/uapi/asm/unistd-oabi.h SYSHDR arch/arm/include/generated/uapi/asm/unistd-eabi.h HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o HOSTCC scri
Also is there any working tutorial regarding this discovery kit
Hi everyone,I have a problem using STM32CubeProgrammer (and CLI). They are both showing that my userfs partition have a size of -1162381824 bytes. That partition have size of 2.9GB. After programming with CubeProgrammer I have kernel panic, and I don't know if this is related to CubeProgrammer. I'm trying to program SD card partition by partition using STM32CubeProgrammer but I don't have luck. When I get whole RAW image of SD card and then flash another SD card everything is working. When I get bootfs, userfs, vendorfs and rootfs using dd comand from SD card and then try to program using CubeProgrammer, kernel panic happens. Where I am wrong?Best regards,Nenad
Hello,I use STM32MP157C-DK2 with the last open st linux distribution (20-11-12). I try to enbale CAN network on microcontroller but I can't send message.I m sure of my code on microcontroller side because it's work fine with an other distribution.I change dts and dtsi file to enable can pin mapping but without success .What can I try ?
Reference: https://wiki.st.com/stm32mpu/wiki/X-LINUX-AI_OpenSTLinux_Expansion_Package#Configure_the_AI_OpenSTLinux_package_repositoryNote that I am still using v2.0.0.I used to be able to do the following execution on my board, but it is not working anymore. Something has changed.Board $> wget http://extra.packages.openstlinux.st.com/AI/2.0/pool/config/a/apt-openstlinux-ai/apt-openstlinux-ai_1.0_armhf.deb Board $> dpkg -i apt-openstlinux-ai_1.0_armhf.debThe error message is as follows:root@stm32mp1:~/Downloads# dpkg --install apt-openstlinux-ai_1.0_armhf.deb Selecting previously unselected package apt-openstlinux-ai. (Reading database ... 14442 files and directories currently installed.) Preparing to unpack apt-openstlinux-ai_1.0_armhf.deb ... Unpacking apt-openstlinux-ai (1.0) ... dpkg: dependency problems prevent configuration of apt-openstlinux-ai: apt-openstlinux-ai depends on apt-openstlinux (>= 2.1-r0); however: Version of apt-openstlinux on system is 1.0-r0. d
Hi,Is there a way to set the QSPI clock on the MP157 to be free running while also using the QSPI? The programming manual mentions that free running mode will prevent the QSPI from being usable.I am working on a project to interface the MP157 to an FPGA via QSPI, however, having the clock start up only when the transaction is active prevents the QSPI clock from being able to drive an IO PLL. If it were free running when no transaction was active, then the FPGA could maintain a synchronous PLL lock on the MP157.
I got my STM32MP157A-DK1 load STM32MP15-Ecosystem-v2.1.0/Starter-PackageUsing iPerf3 for UDP speed test, but only achieved around 345Mbps.Made sure the cable, labtop NIC, switch are compatible with Gigabit. Attching board eth0 configSettings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: Symmetric Receive-only Supports auto-negotiation: Yes&nbs
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.