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
Hallo in our company we use for a large Project a STM32 MP153a microprocessor. Currently I'm trying to write a Device Driver for the TDK ICM42688P Mems Gyro. We have connected the Gyro trough I2C with the Cortex M4 core within the MPU. Both devices are located on a custom PCB and the Gyro is routed to the I2C2 Interface of the MPU (I2C2_SCL = PZ6, I2C2_SDA = PZ7). The Gyro is the only Device on this Interface (I2C2). We use a I2C Voltage of 1.8V and both devices support these voltage. The I2C2 Interface is in the Polling Mode.For my driver I have to read multiple registers of the Gyro therefore I use the HAL_I2C_MEM_READ function of the STM32 HAL which is in the HAL generated from CubeMX. I noticed that I get random Communication Errors so I have written a simple testcase in which I only read the Device ID of the Gyro in a while loop. Here is the pseudo code of this testcase so you have an idea how it works:while(1){ retVal_e = icm42688pReadRegister(ICM42688P_BANK_0_WHO_AM_I, &regV
Hi there, I'm starting developing on an STM32MP157F-DK2 kit, and I wanted to build my own distribution, starting from the distribution package (STM32MP1 Distribution Package - stm32mpu). At the first compilation, the bitbake st-image-weston takes reaaaally long time. I already used Yocto with older projects, using competitors' boards, and I never faced such a slow compilation time, which seems weird to me. Do you have any suggestions to speed up the process for your distribution? I tried already to modify BB_NUMBER_THREADS and PARALLEL_MAKE parameters in local.conf file but I didn't notice any real difference. Other ideas? PS: I'm running my compilation on a virtual machine (running Ubuntu 20.04 lts OS), which has the minimum raccomandations that I found in some other thread here (sorry I don't remember where exactly): 6Gb of ram (ddr4 3200mhz) and 2 cores of physical CPU (intel i7-1165G7), totally not a bad machine in my opinion. Thank youSimone
Hi, I have upgraded to Ecosystem 3.1.1 and have started to get warnings in TF-A when booting up my stm32mp151c. These are the warnings: NOTICE: CPU: STM32MP151CAA Rev.B NOTICE: Model: STMicroelectronics custom STM32CubeMX board NOTICE: Bootrom authentication failed WARNING: regulator_get_by_phandle: phandle 14 not found WARNING: VDD unknown INFO: Reset reason (0x15): INFO: Power-on Reset (rst_por) INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffdd000 INFO: FCONF: Reading firmware configuration information for: stm32mp_io INFO: FCONF: Reading firmware configuration information for: tbbr INFO: Using EMMC INFO: Instance 2 INFO: Boot used partition fsbl1 WARNING: regulator_get_by_phandle: phandle 19 not foundEverything works as expected and the board boots as normal. But I don't understand why these warnings appear. I have localized in the source code that there are some patches added to the TF-A in ecosystem 3.1.1. In tf-a-stm32mp/plat/st/stm32mp1/stm32mp1_syscfg.c /* Ge
We are migrating from ecosystem version 2.1.0 to 4.0.0. We have a custom board with STM32MP157C.After resuming from STANDBY the ADCs and DAC, used by M4, no longer work. They are initialized and started without error, but all ADC channel data reads 2048. For the DAC, the DOR1 register reflects the data written to it, but there is no output on the DAC_OUT1 pin.Additional information:The ADCs and DAC are used with DMA.The ADCs and DAC work fine after cold boot.On ecosystem version 2 the ADCs and DAC work both after cold boot and after resume from standby.We use trusted boot.
Imagine you are a newbie trying to understand the device tree and clock configuration.Which of these pages is more useful?https://wiki.st.com/stm32mpu/wiki/Clock_device_tree_configurationorhttps://wiki.stmicroelectronics.cn/stm32mpu/index.php?title=Clock_device_tree_configuration&direction=next&oldid=72819#cite_note-1Why is the .cn version so much better? What ***** edited out all the useful information from wiki.st.com/stm32mpu/wiki/Clock_device_tree_configuration?
Hi, I cannot debug stm32mp157-dk2 on macOS (stm32cubeide). I have those logs in the console:Does anyone know how to resolve it? :)
HiCurrently, I'm designing a PCB with "STM32MP151AAD3T".I'm developing our own PCB with reference to "STM32MP157x-EV1".DDR trace wiring is described in Section 3.2 of "AN5122" as follows:********************************************************************************Point-to-point connection of the data bus (2 swappable bytes, and swappable bits in the same byte):– 16 data signal bits (DQ)– 2 data mask signals (DQMx)– 2 differential clocks (DQSx_N/DQSx_P)********************************************************************************What kind of criteria should I apply to swap bits(DQ) in the same byte?Can I prioritize pattern routing?Best regards,
Hi @Community member , Is there any common Linux image available for accelerating STM32MP1 based SoM, irrespective of eMMC (JEDEC Version 5.0/5.1 Complying) & DDR3 manufacturer.
..
Hi,I am using stm32mp157a processor in my custom board. Fsbl and ssbl is booting from Sd card.When i try boot through Emmc it is not working,even files are not loading. I have followed below link for emmc booting https://community.st.com/s/question/0D53W00000HypghSAB/emmc-questionsWhen i enter ext4load mmc 0:4 0xC0000000 tf-a-stm32mp157a-dk1.stm32 command in u boot prompt it is showing below Error.Failed to load tf-a-stm32mp157a-dk1.stm32. What is the issue.How can i resolve this error.
We're using Ecosystem 2.1.0 still (I know!).I'm using the CubeMX autogen code i.e.rcc_pins_mx: rcc_mx-0 { u-boot,dm-pre-reloc; pins1 { u-boot,dm-pre-reloc; pinmux = <STM32_PINMUX('G', 2, AF1)>; /* RCC_MCO_2 */ bias-disable; drive-push-pull; slew-rate = <1>; }; pins2 { u-boot,dm-pre-reloc; pinmux = <STM32_PINMUX('I', 11, AF0)>; /* RCC_MCO_1 */ bias-disable; drive-push-pull; slew-rate = <0>; }; }; rcc_sleep_pins_mx: rcc_sleep_mx-0 { u-boot,dm-pre-reloc; pins { u-boot,dm-pre-reloc; pinmux = <STM32_PINMUX('G', 2, ANALOG)>, /* RCC_MCO_2 */ <STM32_PINMUX('I', 11, ANALOG)>; /* RCC_MCO_1 */ }; }; If this is in U-Boot's devicetree, U-Boot locks up with no message on start-up.If I take it out of U-Boot's devicetree but leave it in the kernel's, U-Boot starts up fine but the kernel locks up, again with no panic or other output.
Hello We are unable to write into USBH registers in stm32mp157. Actually, we enabled USBHEN and USBHLPEN bits in AHB6ENSETR and AHB6LPENSETR registers. Then we are unable to access USB memory. We tried other peripherals same way means enabling clock in rcc registers and accessing respected peripherals memories. Now what is the issue to USB and How can I access USBH memory. we followed RM0436 manual.Thanks & regardssrikanth
Hi, I tried burning my STM32MP1 board with existing "FlashLayout_emmc_stm32mp157a-ev1-trusted.tsv" file but it throws following error - Error: TSV files are only supported for STM32MPI'm using onboard eMMC (From Kioxia) and STM32MP157AAD3 chip from ST. I have attached snapshot of log. and I'm extremely in need of supportuser@user:~/STM32MPU-Ecosystem-v4.0.0/Starter-Package/stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/images/stm32mp1$ STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/trusted/FlashLayout_emmc_stm32mp157a-ev1-trusted.tsv ------------------------------------------------------------------- STM32CubeProgrammer v2.11.0 ------------------------------------------------------------------- USB speed : High Speed (480MBit/s) Manuf. ID : STMicroelectronics Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000 SN : 0019002C3431511733353431 DFU protocol: 1.1 Board : -- Device ID : 0x0500 Device name : STM32MP1 Device t
Hi,teamCurrently, I'm designing a PCB with "STM32MP151AAD3T".I'm designing our own PCB with reference to "STM32MP157x-EV1".When developing software using this EVM, the connection to PC shown in the attached figure is recommended as following URL.(https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-EV1/Let%27s_start/Unpack_the_STM32MP157x-EV1_board)I have questions about the connection with two connectors as follows.Q1. About "ST-LINK/V2-1 Connector"Is it correct to consider that connecting this USB connector to a PC is equivalent to connecting via ST-LINK?For the PCB I'm designing, I want to use a JTAG connector to connect ST-LINK instead of the USB connector.Q2. About "USB OTG Connector"What can I do by connecting the USB OTG connector to a PC?Best regards,
root@stm32mp1:~# uname -a Linux stm32mp1 5.15.24 #1 SMP PREEMPT Wed Feb 16 11:56:41 UTC 2022 armv7l armv7l armv7l GNU/Linux root@stm32mp1:~# pacmd list-sinks-inputs No PulseAudio daemon running, or not running as session daemon. root@stm32mp1:~# alsamixer ALSA lib ../../alsa-plugins-1.2.6/pulse/pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Access denied cannot open mixer: Connection refused root@stm32mp1:~# root@stm32mp1:~# aplay /usr/local/demo/media/ST12266_269_full_technology-freaks_0160.ogg ALSA lib ../../alsa-plugins-1.2.6/pulse/pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Access denied aplay: main:831: audio open error: Connection refusedMy board is STM32MP157F-DK2. As expected I can't hear anything, but in SDK V3.X.X everything works fine.Please fix the bug as soon as possible.
hi, i'm stuck starting usbh_hs2 from u-booti can already start usbh_hs1 at boot, in order to load kernel and fs from an usb mass storage. i wish to do the same with usb_hs2, is that possible? is one configuration from DTS or from U-boot source code? ps. i'm starting u-boot from mmc, then detect usb mass storage and start alla the system from there thank you !!!
Hi,teamI'm developing a PCB using the following parts now.*********************STM32MP151AAD3T(MCU)STPMIC1APQR(PMIC)MT41K256M16TW-107:P(DDR3L)*********************The VDD and VDDQ voltages of the "MT41K256M16TW-107:P(DDR3L)" are 1.35V, but the default voltage of BUCK2 is 1.1V.(It is recommended to supply power from BUCK2 to DDR)Therefore, the voltage setting of BUCK2 must be changed from 1.1V to 1.35V.Does the bootloader do this? (it cannot be set by the user program, because DDR is not launched)Best regards,
Hello All,forgive me if this as an obvious mistake but I'm completely new to TouchGFX. I'm using STM32 MPU, with Cube, FreeRTOS and TouchGFXI have created a page in TouchGFX using the digital clock object, I have created a TickEvent to update the clock.The Tick even is being called and if I put literal numbers into setTime24Hour, they are displayed correctly and can even be updated. The RTC is used throughout the rest of the code and is working fine, the code complies without any warnings.When I use the code (below) I only get 00:00:00 on the displayAny ideas?All the bestDren*****************************extern RTC_HandleTypeDef hrtc;void PageView::handleTickEvent(){ RTC_TimeTypeDef sTime; if ( HAL_RTC_GetTime(&hrtc, &sTime, RTC_FORMAT_BCD) != HAL_OK ) Fatal_Error(); digitalClock1.setTime24Hour(sTime.Hours, sTime.Minutes, sTime.Seconds);}
Hi,I am following the steps in STM32MP15 Evaluation boards - Starter Package - stm32mpu. I am using Ubuntu 20.04 on Oracle virtualbox 6.1.40STM32CubeProgrammer is v2.11.0, and STM32MP1-Ecosystem-v4.0.0 release stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15.I am trying to execute STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157f-ev1-trusted.tsv but then it throws me the error message:Memory Programming ...Opening and parsing file: st-image-bootfs-openstlinux-weston-stm32mp1.ext4 File : st-image-bootfs-openstlinux-weston-stm32mp1.ext4 Size : 64.00 MB Partition ID : 0x10 Download in Progress:[======================================== ] 80% Error: failed to download Segment[0]Error: failed to download the FileError: Download partition 0x10 failedError: TSV flashing service failedAny suggestion for this?
After following the wiki page "how to create your board device", I am exactly in the situation indicated at the end of this page : "The execution should fail just after the "Booting BL32" notice, because state definitions are missing in the device tree (in the pwr node overlay)".For information, I don't use the Yocto (layers etc) env and the full OpenSTLinux distrib, but rather a custom buildchain and the ***-stm32mp-r2 sources (TF-A 2.4, U-boot 2020.10 & linux 5.10 with lightened conf). All of this works well on the EV-1 board using the associated ST conf (dts etc.) and I am now trying to port all that on a custom board.In my porting task, I am then guessing the next step is to add custom-made conf in device trees, especially the pwr node. I would get inspiration from the EV-1 dts but my custom board does not have a PMIC as our stm32mp151 doesn't need to manage low power modes (which should make it more simple?), among other little differences.Where could I find ressources / doc /
We have a custom design on STM32MP157 doesn't use PMIC.We have custom uboot that run STM32MP157F-DK2 which has PMIC enabled.We tried to set [=n] on some CONFIG_*** related to PMIC but when build it cause errorsDoes anyone have hints how to bypass PMIC?
Hi there, I'm following all the steps described in Distribution-package to compile the yocto build for STM32MP157F-DK2 (stm32mp1). And at the beginning of the compilation (bitbake st-image-weston) I am getting the message : .....openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-resize-initrd.bb: ENABLE_PARTITIONS_IMAGE not enabled is it a problem? Did I miss something? Thanks Simone
Hi experts and community!(Still on DISTRO_VERSION = "3.1.11-snapshot-20221108")Following the instructions https://wiki.stmicroelectronics.cn/stm32mpu/wiki/How_to_create_your_own_machineI tried to create a custom machine.mx└── stm32mp1-custom ├── kernel │ └── stm32mp1-custom.dts ├── optee-os ├── tf-a │ ├── stm32mp15-ddr-512m-fw-config.dts │ ├── stm32mp1-custom.dts │ └── stm32mp1-custom-fw-config.dts └── u-boot ├── stm32mp1-custom.dts └── stm32mp1-custom-u-boot.dtsFor the first "simple" test, I took the dts files for the stm32mp157f-dk2 board (and not from CubeMX).The MACHINE configuration looks like this:#@TYPE: Machine #@NAME: stm32mp15-custom #@DESCRIPTION: Configuration for STM32CubeMX generated project #@NEEDED_BSPLAYERS: layers/meta-openembedded/meta-oe layers/meta-openembedded/meta-python ########################################################################### # # Default machine configuration sections # ################################
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.