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
Hello I created own machine based of seeed module. at the strartup there is info NOTICE: CPU: STM32MP157CAC Rev.B NOTICE: Model: STMicroelectronics custom STM32CubeMX board - openstlinux-5.10-dunfell-mp1-21-03-31 WARNING: VDD unknown INFO: Reset reason (0x15): INFO: Power-on Reset (rst_por) INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe3000 INFO: FCONF: Reading firmware configuration information for: stm32mp_io INFO: Using SDMMC INFO: Instance 1 INFO: Boot used partition fsbl1 NOTICE: BL2: v2.4-r1.0(debug):v2.4-dirty NOTICE: BL2: Built : 16:43:51, Nov 17 2020 INFO: BL2: Doing platform setup INFO: RAM: DDR3-DDR3L 16bits 533000kHz WARNING: Couldn't find property st,phy-cal in dtb ERROR: DDR addr bus test: can't access memory @ 0xc0000004 PANIC at PC : 0x2ffedb39 Exception mode=0x00000016 at: 0x2ffedb39I'm pretty new in li
I have the following pinctrl entry in my 5.10 device tree to use the USART1 and the serial port fails, due to an incorrect pin configuration for PZ7 AF7.usart1_pins_c: usart1-2 { pins1 { pinmux = <STM32_PINMUX('Z', 7, AF7)>, /* USART1_TX */ <STM32_PINMUX('A', 12, AF7)>; /* USART1_RTS */ bias-disable; drive-push-pull; slew-rate = <0>; }; pins2 { pinmux = <STM32_PINMUX('Z', 1, AF7)>, /* USART1_RX */ <STM32_PINMUX('A', 11, AF7)>; /* USART1_CTS_NSS */ bias-pull-up; }; };Does anybody know why this is happening?Does the PZ7 require any specific setup to be used as USART1_TX?Best regards,--Mike
Hi everyone, I am using stm32mp157f-dk2 with ecosystem 3.1.I want to configure the usb type C port(CN7) as serial port, and communicate with the host PC.This article helps me a lot. https://wiki.st.com/stm32mpu/wiki/USB_overview#How_to_configure_USB_Gadget_through_configfsI modified the usbotg-gadget-config.bb, the stm32_usbotg_eth_config.sh and create my own service, as attached.After that, I can successfully set up the device. I can see ttyGS0 show up in my device.However, when I connect it to the host, although the host is able to detect my device, it can't recognize my device.What am I missing?I suspect that it is the stlink causing the issue, as it occupy the ttyACM0 already and the host cannot create another tty corresponding to the GS0. I am not sure how will the host OS deal with this situation.Regards, Leung10/3 update: I found that my PC can't boot up when the device is connected. It scared me. I am still investigating why it is failing, but I think the stlink is not the root
I am using starter image "en.st-android-10.0.0-2020-02-21-eval-sd-starter.tar.gz".CubeProgrammer gave me "Error: an error occurred while uploading data from the virtual partition 0xF1" . Below is full log:16:56:19 : USB speed : High Speed (480MBit/s)16:56:19 : Manuf. ID : STMicroelectronics16:56:19 : Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x000016:56:19 : SN : 0046003E333851063438333016:56:19 : FW version : 0x011016:56:19 : Device ID : 0x050016:56:23 : Start Embedded Flashing service16:56:23 : Memory Programming ...16:56:23 : Opening and parsing file: fsbl-programmer.img16:56:23 : File : fsbl-programmer.img16:56:23 : Size : 245360 Bytes16:56:23 : Partition ID : 0x01 16:56:23 : Download in Progress:16:56:24 : File download complete16:56:24 : Time elapsed during download operation: 00:00:00.43116:56:24 : RUNNING Program ... 16:56:24 : PartID: :0x01 16:58:14 : Error: an error occured while uploading data from the virtual partition 0xF116:58:1
Hi Nicolas L (ST Employee),I have read the past article that you provide sources and directives to allow building the Android 10 delivery for the STM32MP157C-DK2.Could you please send me the solution?I hope you will be able to reply to me.By the way, can you find out my email in any way?Thanks & Regards,Hiromichi,
I am trying to create a custom board that boots from SDcard if an SDcard is plugged in, however, if the SDcard is not plugged in I would like the board to boot from the NAND. I want to do this programmable without the boot switch.Is this possible? Is there a sample project somewhere or some documentation?
I'm working with the DevBoard from Myir MYD-YA-157C which has the stm32mp157 MPU. I'm trying to chech the i2c from the M4 in the Engineering mode and have a problem.When I tied the I2C_TwoBoards_ComIT, it works. At least it generates the I2C5_ER_IRQ.But when I move to the i2c2 or any other with pins that I have out, it doesn't work. Just doesn't do anything, doesn't send anyithng and doesn't generate an interrupt.It is a simple test without any other peripherial enabled.Could you help me what is wrong.static void MX_I2C2_Init(void) { hi2c2.Instance = I2C2; hi2c2.Init.Timing = 0x00701837; hi2c2.Init.OwnAddress1 = 783; hi2c2.Init.AddressingMode = I2C_ADDRESSINGMODE_10BIT; hi2c2.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; hi2c2.Init.OwnAddress2 = 0; hi2c2.Init.OwnAddress2Masks = I2C_OA2_NOMASK; hi2c2.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; hi2c2.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; if (HAL_I2C_Init(&hi2c2) != HAL_OK) { Error_Handler(); }
I've added OPENAMP through the middleware after enableing the IPCC interrupts, but now I'm getting the following error and an error in the actual OPENAMP source that's included!/opt/st/stm32cubeide_1.8.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.linux64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: ./Core/Src/main.o: in function `main':/home/mschem/Gown-Sealer/STM32/sealer/CM4/Debug/../Core/Src/main.c:127: undefined reference to `MX_OPENAMP_Init'/opt/st/stm32cubeide_1.8.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.linux64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: /home/mschem/Gown-Sealer/STM32/sealer/CM4/Debug/../Core/Src/main.c:172: undefined reference to `OPENAMP_check_for_message'/opt/st/stm32cubeide_1.8.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.linux64_2.0.0.
Install the SDKSimple Hello World ApplicationI have followed all the steps for installing the SDK and verified the environment variables for the cross compiler. I use a make file and it generates a binary. The problem is it generates a binary for x86-64 even when it is being directed to use the arm-ostl-linux-gnueabi-gcc (GCC) 9.3.0 cross compiler. Output of file:"gtk_hello_world: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamic ally linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=ac39231d6a72 8870d0248017a6c9cd25d9f02eab, for GNU/Linux 3.2.0, not stripped"I haven't just used gtk either, a simple printf application with stdio.h will also compile for x86-64 and not the intended cross comp
Hi all,I am using MPU ref. STM32MP153F, do you say me what is the time that elapsed between a tamper is detected and the backup resister are finishing erased?And the backup SRAM?Thank you in advance
Hi everyone!I want to use a hardware semaphore to access SRAM4 memory from both Linux and M4 firmware on STM32MP157A-DK1 board. There are no problems with the M4 firmware. But for Linux I have to create a driver. There is an example in this article: https://wiki.st.com/stm32mpu/wiki/Hardware_spinlock_overview But according to this example, I can't choose the number of the hardware semaphore that I want to use. I ask for advice on how best to organize what I want to do. Maybe I can use a hardware semaphore from user space?
..
HiWe are using stm32mp157a-dk1 board.We are writing code in bare metal.Its working fine when we run in SRAM.But when we jump to DRM its hanging.
The STM32MP157 demands a maximum time of 10 ms from reset command to boot partition data. According to JEDEC No 84-B51 the maximum time from reset command to the first data is up to 1 second (tBD):All data sheets of eMMCs that I found specify their boot timing according to the JEDEC spec. I don't understand how I can ensure that eMMC boot works reliable for all devices.in the field. Can you please help me?Do I understand it right or is there a solution available?
Hi,I want to make a bare-metal application (without Linux OS) on a STM32MP157C-DK2 Board.I need to use the usb host controller from this board (that why I choose it: multiples USB socket) but in the projects created with CubeIde, I can only assign USBH_HS1 or USB_OTG_HS with the A7 runtime context and my application C code is under the folder project_CM4 wich seem related to only M4 context and not with A7 context So, my question is simple: could we use a USB mass storage device with a bare-metal application on STM32MP157C-DK2 Board without a Linux distrib?I am wondering because I can’t find either a HAL USB module as expected in the “stm32mp1xx_hal�? list as if the only appropriate way to manage usb was with an OS attached to cortec A7Thanks in advance for any help
Are there any plans to support the STM32MP157F-DK2 board in mainline (vanilla) U-Boot?It's supported in the ST fork from U-Boot, but with an older version from U-Boot from the year 2020.Could also ask this in the U-Boot mailing list.
I am using a KSZ9021GN PHY in MII mode. Due to supply chain issues we had to resort to this PHY. (Cube MX says I can't use GMII mode). I am experiencing this apparently common issue: [ 15.650981] dwmac4_dma_reset err [ 15.652849] stm32-dwmac 5800a000.ethernet: Failed to reset the dma [ 15.659006] stm32-dwmac 5800a000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed [ 15.668518] stm32-dwmac 5800a000.ethernet eth0: stmmac_open: Hw setup failed I have read over https://wiki.st.com/stm32mpu/wiki/Ethernet_overview#How_to_debugand it says typically that the clock(s) are not present at reset, but I am not clear on what clocks are involved in MII mode. Any thoughts on what might be wrong?
Is micro python an option?
I have to design a system, where a STM32MP157, with its embedded Cortex M4, communicate with other clients over a high-speed serial connection. There should be a 10 : 1 serializer for the MOSI line, and a 1 : 10 deserializer for the MISO line (from the STM32MP15x perspective).While the transmission from the STM32MP15x via the serializer looks doable with the FMC address lines, I am looking for a reasonable fast way to read the asynchronous data from the deserializer. After I read the app note AN5020 Digital camera interface (DCMI) on STM32 MCUs, I think this could be a way.The idea is: When data arrive via the deserializer, these are clocked into the DCMI, DMA transfered and a interrupt is generated.When the DCMI is configured as 8 bit, external syncronized, with 8 Databit, HSYNC and VSYNC and the clock, could this work even with long "blanking peroides" (Where VSYNC indicates no data)? Question 1: Is there a limit on the length of the blanking periods of the DCMI?Question 2: Must a pe
Hi all,I have been trying to get DSI interface on a custom board using STM32MP1.The device tree exactly done as given here : LInk.I do have DK2 kit , which i probe I am able to see the signals at DSI PHY even if display is not connected.In case of my board , I am unable to get it up. See the device tree attached for more details.The reference design is taken from DK2.The probing of driver i believe fails silently since neither I do any failure logs related to DSI in kernel boot logs. modetest -M : Also does not give positive result. I can see encoder field is empty and unpopulated.Any leads are appreciated.
We want to use FFmpeg for video processing (encoding, decoding, scaling, format convertion, etc) on a STM32MP157C based custom board. I understand STM32MP157C has a display controller and a Vivante GPU that supports OpenGL-ES and OpenVG to accelerate graphics-based applications.We are not using any display (LCD/HDMI) with the board and the display controller is disabled in device tree.We want to use the GPU's hardware acceleration feature for video processing through FFmpeg.We will compile the FFmpeg from source and want to include STM32MP157C GPU Hardware accelerator, that can be access by "-hwaccel" option in ffmpeg command.We don't know yet how to implement this. I looked at PM0263 (STM32MP157 GPU application programming manual) but not much helpfull.Is there any OpenGL API that exposes GPU's hardware acceleration that we can integrate with ffmpeg?Has anyone used STM32MP157C GPU with FFmpeg or any video processing application?Any help is much appreciated.
I'm working on a driver present in the Linux 5.4 kernel. In RS485 communication I receive everything I send, without being connected to another device to return what I sent.I use the command echo -e "Test" > /dev/ttyLP0 for the submission.I know that by default in RS485 communication I receive everything I send, but I want to disable the return (echo).BUG:My setup is:PLC - Programmable Logic ControllerProcessor: LS1027 (It's not a ST processor)Linux Kernel 5.4 (tty driver present in this kernel version, who owns the stm32-usart.c)I use a USB logic analyzer to analyze the signal sent through the echo -e "Test" > /dev/ttyLP0. With rs485 serial pins: D+, D- and GND.Hardware:Best regardsEduardo Gerhardt
I am trying to configure the TIM2_CH4 to capture mode on EV1 board so I can sense a fan speed from a PWM fan but I keep getting cat: read error: Connection timed outI have configured the timer as follows: &timers2{ pinctrl-names = "default", "sleep"; pinctrl-0 = <&tim2_pins_mx>; pinctrl-1 = <&tim2_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN timers2 */ dma-names = "ch3"; pwm { /* enable PWM on TIM2 */ status = "okay"; }; /* USER CODE END timers2 */ }; tim2_pins_mx: tim2_mx-0 { pins { pinmux = <STM32_PINMUX('A', 3, AF1)>; /* TIM2_CH4 */ bias-disable; drive-push-pull; slew-rate = <0>; }; }; tim2_sleep_pins_mx: tim2_sleep_mx-0 { pins { pinmux = <STM32_PINMUX('A', 3, ANALOG)>; /* TIM2_CH4 */ }; };I am using TIM12_CH1 to generate a pulse and I have shorted the two pins on the board.What am I doing wrong? Is there a better way to detect the sense on a PWM fan?
External memory, connected to a STM32MP1, is written with the STM32CubeProgrammer via USB. Here the chip to be written is written with "usb1" (STM32_Programmer.sh -c port=usb1 -d some.tsv").Here we could notice the following behavior: If more than one STM32MP1 is connected to the host system via USB, another label (usb2) is assigned. If a higher serial number is connected later, it will be assigned to usb1, and the already connected device will be assigned the new label usb2. The connected devices are displayed in the device manager as DFU Devices. There is no COM port assignment.This raises the question of how several devices can be connected to a host at the same time and assigned uniquely to enable several devices to be flashed in parallel.What is the best practice to guarantee consistent addressing of the boards.
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.