Developer support experience survey - We value your feedback
Join conversations with your peers and ST experts. Explore the full potential of STM32 microprocessors for your embedded design.
Most recent activity
I have a STM32MP157D-DK1 board. I downloaded design files and surprisingly found there were 56ohm series resistors on ddr address lines. Though series resistors are normally found on data and address lines for ddr1 or ddr2, I have never seen them used for ddr3 mem chips. Are those resistors necessary for STM32MP1, or they are just optional, for the best possible signal integrity?Those resistors occupies a large board area, which is a pain for compact design.
Hi,I wanted to ask if there is a possibility to have the same time domain on the M4 and A7 cores?To be a bit more specific: my STM32MP1 board synchronises time over Ethernet using PTP (and that works great!) but now i want to timestamp a digital input pin.The options i have seen so far are:using EXTINT to assign a system timestamp when the interrupt occurs (on the A7) -- this is not accurate because of kernel interrupt handling and software timestampingusing TIMx and input capture mechanisms (on the M4) -- this would be my preferred way but there i have no information at which time TIMx value is and how to synchronise them with the A7one idea i had was using the PTP_Synchro PPS_OUT [which i still couldn't activate in Cube although i enabled TIM2 as slave with ETR] and correlate input capture values from CC2 with the PPS. but there only the duration from the last PPS to the current input capture is known -- then my idea was to use the RTC values to associate whole seconds but the RTC is
1. When I create an openamp-based virtual_huart0 on the M4 side for exchanging information,some code is as follows:if (VIRT_UART_Init(&huart1) != VIRT_UART_OK) { printf("VIRT_UART_Init UART1 failed.\r\n"); Error_Handler(); } VIRT_UART_StatusTypeDef VIRT_UART_Init(VIRT_UART_HandleTypeDef *huart) { int status; /* Create a endpoint for rmpsg communication */ status = OPENAMP_create_endpoint(&huart->ept, RPMSG_SERVICE_NAME, RPMSG_ADDR_ANY, VIRT_UART_read_cb, NULL); if(status < 0) { return VIRT_UART_ERROR; } return VIRT_UART_OK; }and this will create the /dev/ttyrpmsg0 device on the Linux side.To exchange data, I directly use OpenAMP library functions to create nodes,and In Linux, the driver rpmsg client sample will be loaded.some code as follow:#define RPMSG_SERVICE_NAME "rpmsg-client-sample" OPENAMP_create_endpoint(&remsgr_ept,RPMSG_SERVICE_NAME,RPMSG_ADDR_ANY,rx_callback,NULL);Now the pro
Hello, We are upgrading from BSP 2.1.0 to 3.0.0. With BSP 2.1.0 we had implemented a Secure Boot mechanism as described here, i.e. both TF-A and u-boot were signed with the STM32 Signing Tool and had a stm32 header added. Now with BSP 3.0.0 we see that u-boot is instead encapsulated in a FIP binary which is loaded by TF-A. The problem with this is that this seems to increase boot time by about 1 second (measured with grabserial). The difference seem to be related to TF-A; see the following traces measuring time from boot until the first u-boot trace is printed: For 2.1.0: [0.000001 0.000001] INFO: Software access to all debug components is disabled [0.479875 0.479874] INFO: Cannot get CPU version, debug disabled [0.483940 0.004065] NOTICE: CPU: STM32MP157CAC Rev.? [0.003018 0.003018] NOTICE: Model: STMicroelectronics STM32MP157C-DK2 Discovery Board [0.010905 0.007887] NOTICE: Board: MB1272 Var2.0 Rev.C-01 [0.014942 0.004037] NOTICE: Bootrom authentication su
I want to populate the distribution to an SD-card and mount it in STM32MP157A-DK1 according to this link: https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer#How_to_populate_a_microSD_card_inserted_in_a_Linux_host_PCMy host PC is a virtual machine and it seems like there is a problem with STM32CubeProgrammer reconnecting to the device (see uploaded image). I have changed the USB settings on my virtual machine to automatically attach the device to it. This works fine when I press the reset button on STM32MP157A-DK1, it unmounts and mounts directly to the virtual machine again.How can I solve the reconnecting problem with STM32CubeProgrammer? Is there another way to populate an SD card by copying files from the deploy folder in the built distribution folder?
Hi,I've noticed when booting one of our board designs with a STM32MP157C in openstlinux-5.4-dunfell-mp1-20-11-12 with Weston Wayland under the STM32MP157-Ecosystem-v2.1.0 that multiple times when the kernel is loading I'll see the message "stm32-dmamux 48002000.dma-router: Run out of free DMA requests" reported to std-out. Does anyone know if when this occurs, what kind of behavior STM32 modules that attempted to issue a DMA request will have? Do they fall back to using a non-DMA access mode, wait until a free request becomes available, or just fail outright?I've attempted to find an answer to this in the dmamux documentation but did not see anything addressing this and looking at the code for the implementation itself, it didn't seem immediately obvious either. Any assistance would be appreciated, thank you.
I created a project using CUBEIDE for STM32MP157C-DK2 and set all peripherals to initialize. I enabled FreeRTOS and then started porting over the example code in in the Projects folder for the OpenAMP_FreeRTOS_echo application. It is all compiling OK but the code is not executing correctly. Comparing the application example code to the CUBEIDE project I find that the code to init the IPCC and OpenAMP in the example is : /* Configure the system clock */ if (IS_ENGINEERING_BOOT_MODE()) { /* Configure the system clock */ SystemClock_Config(); } /* IPCC initialisation */ MX_IPCC_Init(); /* OpenAmp initialisation ---------------------------------*/ MX_OPENAMP_Init(RPMSG_REMOTE, NULL);But the CUBEIDE generated code looks like this: if(IS_ENGINEERING_BOOT_MODE()) { /* Configure the peripherals common clocks */ PeriphCommonClock_Config(); } else { &nbs
Hello,I can't use the "ums" command via terminalprog (minicom)Message is always"STM32MP> ums 0 mmc 0UMS: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x1dacc00Please connect USB cable. "After 60 seconds: "USB cable not detected. Command exit."Communication via minicom/ST-Link and ETH works.STM32MP> usb startstarting USB...USB0: USB EHCI 1.00scanning bus 0 for devices... 2 USB Device(s) foundscanning usb for storage devices... 0 Storage Device(s) foundSystem is buildroot, an older one and a version with kernel 5.8. No difference.I can't find the mistake.Marc
Similar question was asked here:https://community.st.com/s/question/0D50X0000AvgWuG/how-to-use-timers2-as-pwmbacklightBut this does not work on v5.4 kernel anymore. So a working example would be nice as pwm-backlight device tree handling is not documented in the wiki. SoC is STM32MP157. Current code is:panel_backlight: panel-backlight { compatible = "pwm-backlight"; pwms = <&pwm12_pins_a 0 5000000>; pwm-names = "backlight"; brightness-levels = <0 4 8 16 32 64 128 255>; default-brightness-level = <6>; status = "okay"; }; &timers12 { /delete-property/dmas; /delete-property/dma-names; status = "okay"; pwm12: pwm { pinctrl-0 = <&pwm12_pins_a>; pinctrl-1 = <&pwm12_sleep_pins_a>; pinctrl-names = "default", "sleep"; #pwm-cells = <2>; status = "okay"; }; timer@11 { status = "okay"; }; }; 
Hi,My test kit is STM32MP157C-DK2 and kenerl version is 5.10.10.I tried to monitor falling edge event on PD.1, with command "gpiomon --falling-edge gpiochip3 1". It is faile and and the log in the attachment.Then I disable "hdmi-transmitter@39" in "stm32mp15xx-dkx.dtsi" and comiple it again and replace file in the OS, Then executing command "gpiomon --falling-edge gpiochip3 1" will work correctly.Please advise why PIN PG.1 interrupt configuration will affect PIN PD.1 interrupt configuration. Thanks,QiZhang
I work on Windows and use the STM32CubeIDE 1.6.1. I want to program and debug the M4 part, On the A7 part Linux is working.My current state is, that The A7 is in Bootloader mode and the DFU per USB is connected and shown in Windows (Gerätemanager) as USB device. There is no serial port.In the debug settings STM32CubeIDE require a serial port.With STM32CubeProgrammer USB1 connects and seems to workAt the end of the day I want to create and debug a M4 program.ThxSteffen.
Hello, is there a way to use a debian linux on STM32MP1 instead of openliunxst? How to deploy xlinux ai as well on debian instead of openstlinux?
HiIn my project the root filesystem is read-only, so I need to have a writeable partition mounted on /home. I first tried doing this in my machine conf (conf/machine/stm32mp1-raichu.conf) with the following lines:ST_VENDORFS = "0" ST_USERFS = "1" STM32MP_USERFS_MOUNTPOINT = "/home"But it doesn't mount on /home, it still mounts on /usr/localAny help?
Hello, I have a question.What are some ways to control GPIO from python?I want to do that with a starter package.Best Regards!
a tsv file with #Opt id Name Type IP Offset Binary - 0x01 fsbl Binary none 0x00000000 u-boot-spl.stm32 I got different error messages:stm32CubeProgrammer on windows:sending a dfu end of download request DFU status = 0 DFU State = 7 DFU status = 14 DFU State = 10 an error occured after sending a dfu end of download request Status: errUNKNOWN, State: dfuERROR Error: Start operation failed at partition 0x01 Error: TSV flashing service failed Warning: Connection to device 0x500 is loststm32CubeProgrammer on Linux:File download complete Time elapsed during download operation: 00:00:02.924 RUNNING Program ... PartID: :0x01 Error: Start operation failed at partition 0x01 Error: TSV flashing service failed Warning: Connection to device 0x500 is loststm32CubeProgrammer_CLI on LinuxFile download complete Time elapsed during download operation: 00:00:02.863 RUNNING Program ... Address: : 0x1 Error: an error occured while uploading data from the virtual partition 0xF1 Start operat
Hi,I test commands"echo 97 > /sys/class/gpio/exportecho out > /sys/class/gpio/gpio97/directionecho 1 > /sys/class/gpio/gpio97/valueecho 0 > /sys/class/gpio/gpio97/value", the value on the pin PD.1 can't change.Test command:" gpioset gpiochip3 1=1 gpioset gpiochip3 1=0" the value on the pin PD.1 can change.Please advise how to solve the issue on "/sys/class/gpio".Thanks,QiZhang
I've tried using WSLg into windows 10 to start a project using the STM32cubeide but it fails. The ide is launched but those not automaticaly download stuff, but manualy do. If click new project, target selector animation goes and then I have this message "STM32 target or STM32Cube example selection is required". So can't select mpu. etc...What is the simplest way to start dev :full linux machinevirtual machineWSLg /w10 should workThx for any help.
We use the STM32MP157CA and the STM32CubeIDE and let the code generator generate a confiuration with the required modules. In our case the SPI1 on the pins (PZ0,PZ1,PZ2). The generated functions provide the initializations for the SPI1. Unfortunately the SPI1 does not work for us in normal operation mode. If we call the HAL_SPI_Transmit(...) function after the initialization we get a SPI timeout. On the oscilloscope we see no clock on the spi clock line. We also noticed that when we use the engineering mode for the M4 the SPI1 works. If we change the SPI to the SPI5 (also generated with the code generator) everything works in normal operation mode and in engineering mode. How can we use the SPI1 in normal operation mode on the M4?
I'm trying to test the low power modes (I don't care about the current at this point). I start the Next I run this:cd /usr/local/Cube-M4-examples/STM32MP157C-DK2/Applications/OpenAMP/OpenAMP_TTY_echo_wakeup fw_cortex_m4.sh start echo enabled > /sys/devices/platform/soc/4c001000.mailbox/power/wakeup echo "*delay" >/dev/ttyRPMSG0 systemctl suspendThe CPU never goes into CStop mode. DMESG reports the following:[ 4665.621976] unbind driver hci_uart [ 4665.884144] PM: suspend entry (deep) [ 4665.900196] Filesystems sync: 0.013 seconds [ 4665.905556] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 4665.913002] OOM killer disabled. [ 4665.915975] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 4665.923519] printk: Suspending console(s) (use no_console_suspend to debug) [ 4665.933455] dwc2 49000000.usb-otg: suspending usb gadget configfs-gadget [ 4666.063929] stm32-dwmac 5800a000.ethernet eth0: Link is Down [ 4666.065574] stm32-dwmac 5800a000.ethe
..
Hi everyone,I'm interested how can someone backup rootfs, vendorfs etc and later use that to flash via the STM32CubeProgrammer? Is using the dd good way to do it?Best regards,Nenad
We are using the STM32MP15 ecosystem 2.1.0 and buildroot build flow for a custom board. The custom board uses the FMC peripheral to connect to three FPGAs using an SRAM/PSRAM interface. We have successfully implemented this interface on the CA7 side by writing a custom kernel driver, but would now like to move this function to the CM4. After using CubeMX to move the peripheral to the CM4, there is an error in the generated device tree for the kernel, specifically there is a missing symbol “m4_fmc�? in the generated device tree.I looked at the STMicro kernel repos on GitHub at the in-tree stm32mp157-m4-srm.dtsi file for both ecosystem 2.1.0(v5.4-stm32mp1-r2.1) and 3.0.0 (v5.10-stm32mp1-r1) and there is no definition for “m4_fmc�? in either version.Does this mean that the FMC for the STM32MP15x is not yet supported by HAL? Or just an oversight?Thanks,Mark Carlin
When exiting out of standby mode through RTC,Wakeup pins or PON Key in all the cases System stops at : INFO: SP_MIN: Preparing exit to normal world.Here is the complete log :[ 32.488278] usb33: supplied by vdd_usb#echo mem > /sys/power/state [ 37.576569] PM: suspend entry (deep)[ 37.587289] Filesystems sync: 0.008 seconds[ 37.591188] Freezing user space processes ... (elapsed 0.001 seconds) done.[ 37.597870] OOM killer disabled.[ 37.601128] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.[ 37.608535] printk: Suspending console(s) (use no_console_suspend to debug)NOTICE: CPU: STM32MP157C?? Rev.ZNOTICE: Model: SBS MOBIOINFO: Reset reason (0x810):INFO: System exits from STANDBYNOTICE: BL2: v2.2-r2.0(release):NOTICE: BL2: Built : 10:03:06, Apr 15 2021INFO: Using crypto library 'stm32_crypto_lib'INFO: BL2: Doing platfo
Could you please explain me why ST support is so slowly... I'm starting with STM32MP1xx MPUs hoping, that ST support will be fast and specific. But currently answer for even simple (and stupid) questions need to be wait for unpredictable time...We need to read hundred pages with inconsistent information even for simplest steps like compiling TF-A or U-BOOT.We spent a lot of time designing custom MP157 module, It's forking fine except qspi-nand and nobody could help me... There is simple question - why qspi nand flash connected according to Getting started guide is not working. Hardware seems no problem - at least FlashID read ok. There are two sample board with exactly same symptoms... Why you can't provide simple step-by step manuals:compiling TF-Acompiling U-BOOTFlashing with USB?Event your README.HOW_TO.txt have stupid mistakes like TFA_DEVICETREE instead of TF_A_DEVICETREE.May be I need to pay money for support? Please give wallet address to pay.Dealing with Allwinner MCUs I had su
Helllo i configurated my Device tree so i a can use my USART3 as a serdev. But when i run "cat /proc/tty/driver/stm32-usart". i can see my serial port but my RTS pin is missing. I configurated my device tree like this:&usart3 { pinctrl-names = "default", "sleep", "idle"; pinctrl-0 = <&usart3_pins_c>; pinctrl-1 = <&usart3_sleep_pins_c>; pinctrl-2 = <&usart3_idle_pins_c>; uart-has-rtscts; status = "ok"; ethernet { compatible = "st,stm32_usart_net"; local-mac-address = [ A0 B0 C0 D0 E0 F0 ]; };};So But if i remove the ethernet part it shows the RTS port. Why is that happening?
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.