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 am using stm32mp157d-dk1 and i am using virtual box and i want to make a gui using c++which application should i use so that i can access the adc and dac in linux.using arm cotrex a7 can i access/control the adc and dac. for example when I click a button it has to generate sine waves and it has to be written to dac
linux内核源码当中的SAI,两个子模块如何同时进行接收,一般正点的sda用于发送,SDB用于接收Translated to Englishlinux kernel source code among the SAI, how the two submodules at the same time to receive, the general positive point of the sda is used to send, SDB is used to receive
I'm buildning my own computer by using STM32MP151AAC3.I'm going to draw lines for the HDMI connector. I have one question: Can I transfer sound via the HDMI cable? For example if I run OpenSTLinux onto the STM32MP151AAC3 processor, and then I connect the HDMI cable and I can see the screen. Will I be able to hear sound too if I surf into Youtube?
Hi all,I'm writing a USB composite device support (baremetal) for MP135: it must support a custom interface and a CDC profile. Now I'm testing the CDC side connecting the USB cable with a PC: Windows mounts correctly a virtual serial port and I open a Putty serial session.The board handles the USB data as input for a simple terminal.This is what happen inserting a breakpoint on HAL_PCD_IRQHandler function (Drivers/STM32MP13xx_HAL_Driver/src/stm32mp13xx_hal_pcd.c):- initially (after the port setup) nothing breaks- on the first keypress on the Putty terminal the breakpoint breaks twice: the first with USB_OTG_GRXSTSP_PKTSTS = 2 (packet received) so read by USB_ReadPacket() - the second one with PKTSTS = 3 (transfer complete) so do nothing.- the data read fires my callback that handles the received key generating an echo back to the terminal- the interrupt is no more fired- on the second key press the interrupt is fired but it does not contain the RXFLVL bit (USB_OTG_GINTSTS = 0x44888428)
Hello, I am trying to install the SDK to work on the STM32MPU257F-EV1 Development board and I followed the instructions for the x86_64 Architecture, however when I use the command echo $ARCH it says the architecture is arm64? Is that what should be displaying? I feel like it should be x86_64 right? Thanks! Carson
Hi, there I have a stm32mp157f-dk2 board and I am following the instructions on: https://wiki.st.com/stm32mpu/index.php?title=STM32MPU_Developer_Package&sfr=stm32mpu to install the developer package. I've compiled all the components one by one as indicated and I am now trying to use openocd and GDB to cross-debug the board. As I executed "$GDB -x Setup.gdb", with the correct symbol paths modified in Setup.gdb, an error message, as in the Subject line, showed before GDB aborted. Has anybody seen this error message before ? Thanks. Eric
Hi,I am a new starter using STM32MPU257F. I plug a headset into a USB port and use the below command to play an audio-only wav file.gst-play-1.0 audiofile.wavthe output log as below=======================[ 240.645711] usb 1-1.2: new full-speed USB device number 3 using ehci-platform[ 240.864117] input: Synaptics Hi-Res Audio-BY as /devices/platform/soc@0/42080000.rifsc/42080000.rifsc:usb@482e0000/482f0000.usb/us1[ 240.933975] hid-generic 0003:0572:1B08.0001: input: USB HID v1.11 Device [Synaptics Hi-Res Audio-BY] on usb-482f0000.usb-1.2/input3root@stm32mp2:~# gst-play-1.0 file_example_WAV_2MG.wavPress 'k' to see a list of keyboard shortcuts.Now playing /home/root/file_example_WAV_2MG.wavWARNING Failed to connect: Connection refusedWARNING debug information: /usr/src/debug/gstreamer1.0-plugins-good/1.22.6-r0/ext/pulse/pulsesink.c(616): gst_pulseringbuffer_open_deeRedistribute latency...0:00:11.9 / 0:00:11.9Reached end of play list.=======================but I cannot hear any sound
Hi,I am working on STM32MP133FAFx (I2C Master) for I2C communication with STPMIC1 IC (I2C slave) fast mode(400KHz) and HSI clock(64MHz). I2C->TIMINGR = 0x00C0216CFor writing data TXIS flag is getting send and I am writing the register but when trying to read data back from PMIC RXNE flag is not getting set and RXDR register is not showing data.Configuration for reading & writing data is done as per the example code provided by STi.e. used HAL_I2C_Mem_Read() & HAL_I2C_Mem_Write() functions for 1 byte data transfer. Please help me how to resolve this issue and provide me the solution.
I'm in China. I want to get a copy of the stm32mp1 Distribution Package .
Hello We are using STM32MP157A processor in our custom board. Now we are implemented IWDG1 in Cortex A7 processor. The IWDG1 bit is not going to set after reset the processor with Watchdog timeout.we checked in following registers• RCC BOOTROM reset status clear register (RCC_BR_RSTSCLRR),• RCC MCU reset status clear register (RCC_MC_RSTSCLRR),• RCC MPU reset status clear register (RCC_MP_RSTSCLRR) and• RCC MPU reset status set register (RCC_MP_RSTSSETR). Getting same value in these registers while power on reset and IWDG1 reset.May be what was the issue, any one help me in this regards.regardssrikanth
Hi ST Team,We have developed a board based on the STM32MP257F. Currently, I am focusing on the audio section. We use an I2S port to connect to a codec called ES8388 chip. You can find the schematic in the attached picture,the connection between ES8388 and STM32MP25 like the following path,I2S2_MCK --- PI15I2S2_CK --- PB0I2S2_SDO -- PK1I2S2_WS --- PI14I2S2_SDI --- PB6I modified the dts, like the following code show, / { es8388: es8388@11 { compatible = "everest,es8388"; reg = <0x11>; #sound-dai-cells = <0>; clocks = <&i2s2>; /* The codec is a consumer of I2S2 master clock */ clock-names = "MCLK"; /* Feed MCLK codec clock with I2S2 master clock provider */ status = "okay"; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; es8388_in: endpoint { remote-endpoint = <&i2s2_endpoint>; }; }; }; }; }; &i2s2_pins_a { pins1 { pinmux = <STM32_PINM
Dear Readers,I try to flash my board in Debian 6.1 on 64bit version in a VirtualBox.Whatever I doSTM32_Programmer_CLI -l usbalways fails.I have donesudo apt-get install libusb-1.0-0cd xyz /Drivers/rules sudo cp *.* /etc/udev/rules.d/I rebootet, but a usb device index is never shown. Is the reason VirtualBox-usage?Thanks in advanceBubra
Description: I'm working with the MYIR MYD-YA157C board, based on the STM32MP157C, and experiencing an issue with UART data reception. When receiving data via UART, the same 10-byte buffer is repeated multiple times (50-60 times) instead of getting fresh data. I verified the setup using a TTL converter and can confirm that the data stream appears as expected when monitored directly, so the problem seems to be specific to the board.I've attached my program below. Any insights or solutions to receive fresh data on each read would be appreciated.Code Example:#include <stdio.h>#include <stdlib.h>#include <fcntl.h>#include <unistd.h>#include <termios.h>#include <string.h>volatile unsigned char Data[10];int UART_Receive() {int uart_rxfilestream = -1;struct termios options;uart_rxfilestream = open("/dev/ttySTM4", O_RDWR | O_NOCTTY); // Adjust to your UART deviceif (uart_rxfilestream == -1) {perror("Unable to open UART");}// Configure UARTtcgetattr(uart_rxfi
HI there STM team! I want to build a embedded linux image where I can load my QT application. I'm installing the starter package following: https://wiki.st.com/stm32mpu/wiki/STM32MP15_Discovery_kits_-_Starter_Package#Checking_the_material but I'm having problems when executing this command: STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp157c-dk2-optee.tsv The download starts but then it says "reconnecting the device..." and it fails with: Error: Unable to reconnect the target device: time out expired Error: Start operation failed at partition 0x03 Error: TSV flashing service failed Following other posts it seems there's a problem with the tsv file: https://community.st.com/t5/stm32-mpus-products/fail-the-image-flashing-on-stm32mpu157f-dk2/m-p/217050#M6509 I downloaded the file and rename it to: FlashLayout_sdcard_stm32mp157f-dk2-optee-trial.tsv Now, when I run this command: STM32_Programmer_CLI -c port
Hi,I am working on STM32MP133FAFx (I2C Master) for I2C communication with STPMIC1 IC (I2C slave) fast mode(400KHz) and HSI clock(64MHz). I2C->TIMINGR = 0x00C0216CI am trying polling method in bare-metal environment for communication in I2C.Below is my algorithm for polling1. Configure HSI clock and Initialize clock for I2C.2. Configuring GPIO I2C pins (No pull up, no pull down, I2C AF, Medium speed)3. Disable I2C before configuration with I2C_CR1_PE4. Setting I2C->TIMINGR = 0x00C0216C for 400KHz baud5. Setting 7-bit addressing, enable clock Stretching, clear general call & enable filters6. Enable I2C and shift slave address by 1 as its 7 bit (SlaveAddress << 1)7. Setting I2C in I2C_AUTOEND_MODE mode8. After calling I2C_TransferConfig() function I am getting NACK bit is getting set as in attached picture Please help me how to resolve this issue and provide me the solution.
My current application uses 2 USB ports, both connected to USBPHYC (STM32MP157F). The OTG one is used for programming using CubeProgrammer.My new revision requires 3 USB ports, 2 host and the programming port.According to https://community.st.com/t5/stm32-mpus-software-development/how-to-enable-3-usb-ports-on-stm32mp1/td-p/269938 it is (still) not possible to configure this in CubeMX.Im wondering if this configuration is going to work:USBH_HS1->USBPHYC-> USB_DM/DP1 pins (Host)USBH_HS2->USBPHYC-> USB_DM/DP2 pins (Host)USB_OTG->OTG FS Phy->PA11/PA12 pins (device/programming)AN5031 states that the internal bootROM will use high-speed, which means my suggested setup is not possible?
Dear all,I'm trying to run a TA application on STM32MP157C-DK2 board. Im using the STM32MPU Developer Package to build the TF-A and the OP-TEE.I've built the TF-A using the command below:make -f $PWD/../Makefile.sdk TF_A_DEVICETREE=stm32mp157c-dk2 TF_A_CONFIG=optee-sdcard STM32MP1_OPTEE_IN_SYSRAM=1 ELF_DEBUG_ENABLE='1' allAfter that, I copied the file generated file STM32MP1-Ecosystem-v5.1.0/Developer-Package/stm32mp1-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26/sources/arm-ostl-linux-gnueabi/tf-a-stm32mp-v2.8.15-stm32mp-r2-r0/deploy/tf-a-stm32mp157c-dk2-optee-sdcard.stm32 to STM32MP1-Ecosystem-v5.1.0/Starter-Package/stm32mp1-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26/images/stm32mp1/arm-trusted-firmware/Is this right?Then, I built the OP-TEEmake -f $PWD/../Makefile.sdk CFG_EMBED_DTB_SOURCE_FILE=stm32mp157c-dk2 CFG_STM32MP_PROFILE=secure_and_system_services allAnd copied the files from STM32MP1-Ecosystem-v5.1.0/Developer-Package/stm32mp1-openstlinux-6.1-yocto-mickl
Hi,I'm getting an exception stack on bootup:[ 3.882380] ------------[ cut here ]------------[ 3.886351] WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:969 clk_core_disable+0xf0/0x2c4[ 3.894281] pll4_p already disabled[ 3.897839] Modules linked in:[ 3.900798] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 5.15.145 #1[ 3.908314] Hardware name: STM32 (Device Tree Support)[ 3.913395] [<c0110c4c>] (unwind_backtrace) from [<c010c668>] (show_stack+0x10/0x14)[ 3.921128] [<c010c668>] (show_stack) from [<c0c697e8>] (dump_stack_lvl+0x40/0x4c)[ 3.928753] [<c0c697e8>] (dump_stack_lvl) from [<c0125888>] (__warn+0x88/0x128)[ 3.935978] [<c0125888>] (__warn) from [<c0c63c94>] (warn_slowpath_fmt+0x78/0xa8)[ 3.943510] [<c0c63c94>] (warn_slowpath_fmt) from [<c0696480>] (clk_core_disable+0xf0/0x2c4)[ 3.951849] [<c0696480>] (clk_core_disable) from [<c0c6a298>] (clk_core_disable_lock+0x18/0x24)[ 3.960589] [<c0c6a298>] (clk_core_disable_lo
I am trying to connect to audio codecs to give 4 channel of audio on a MP257. Can I connect SAI2.SCKA TO BCK on both , SAI2.FSA to LRCK on both, SAI2.SDA to DIN on the first and SAI2.SDB to DIN on the second.My concern is the clocking, can I common both clocks, or do I also need to use SAI2.FSB (which as I am using the ethernet switch & 3 ports I don't seem to be able to do).
I am getting an error when working through the README.HOW_TO.txt in linux-stm32mp-6.1.82-stm32mp-r2-r0 directory.It seems to work fine until:6.2 Compile External Device tree* Compile and install on a build directory (different of kernel source code directory)Line 221 $ make ${IMAGE_KERNEL} O="${OUTPUT_BUILD_DIR}" KBUILD_EXTDTS="${EXTDT_DIR}/linux" <name of external devicetree .dtb>where I get this output:jtest@jtest-B250M-D3H:~/stm_dev/Developer-Package/stm32mp1-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26/sources/arm-ostl-linux-gnueabi/linux-stm32mp-6.1.82-stm32mp-r2-r0/linux-6.1.82$ make ${IMAGE_KERNEL} O="${OUTPUT_BUILD_DIR}" KBUILD_EXTDTS="${EXTDT_DIR}/linux" stm32157f-dk2-a7-examples.dtbmake[1]: Entering directory '/home/jtest/stm_dev/Developer-Package/stm32mp1-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26/sources/arm-ostl-linux-gnueabi/linux-stm32mp-6.1.82-stm32mp-r2-r0/build1'GEN MakefileCALL /home/jtest/stm_dev/Developer-Package/stm32mp1-openstlinux-6.1-yocto-mickledor
New to STM32CubeIDE and trying to compile/download examples to STM32MP157C-DK1.It seems that the ST-Link on this particular board is not functioning correctly, both STM32CubeProgrammer and command line suggest that there is 'No device found on target'. C:\Windows\System32>C:\ST\STM32CubeIDE_1.16.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_2.1.400.202404281720\tools\bin\ST-LINK_gdbserver.exe -p 61234 -l 1 -d -s -cp C:\ST\STM32CubeIDE_1.16.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.400.202404281720\tools\bin -m 2 -g STMicroelectronics ST-LINK GDB server. Version 7.8.0 Copyright (c) 2024, STMicroelectronics. All rights reserved. Starting server with the following options: Persistent Mode : Disabled Logging Level : 1 Listen Port Number : 61234 Status Refresh Delay : 15s Verbose Mode : Disabled SWD Debug : Enabled Target no device found Error in initializing ST-LINK device. Reason: No dev
Dear ST community, i don't know if any one encountered this issue before, however when i try to import the matplotlib module on the mickledore version of the openstlinux the system crushes like shown in here Python 3.11.5 (main, 24 2024, 12:23:19) [GCC 12.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.pyplot as plt Matplotlib is building the font cache; this may take a moment. Segmentation fault (core dumped) root@stm32mp157c:~# Broadcast message from systemd-journald@stm32mp157c (Sat 2024-10-04 01:56:00 UTC): systemd[1]: Caught <SEGV> from unknown sender process. Broadcast message from systemd-journald@stm32mp157c (Sat 2024-10-04 01:56:00 UTC): systemd[1]: Caught <SEGV>, dumped core as pid 1621. Broadcast message from systemd-journald@stm32mp157c (Sat 2024-10-04 01:56:00 UTC): systemd[1]: Freezing execution. im including the image to my image config like so IMA
Cubeide 1.13 and CubeMX 6.9 can generate the valid code for stm32mp157,but Cubeide 1.14 and CubeMX 6.10 can not! is there a bug or the CubeMX 6.10 have some change for stm32mp157?. MCU Package 1.6.0 and the STMH7xx doesn`t affect it. void MX_QUADSPI_Init(void) {/* USER CODE BEGIN QUADSPI_Init 0 *//* USER CODE END QUADSPI_Init 0 *//* USER CODE BEGIN QUADSPI_Init 1 *//* USER CODE END QUADSPI_Init 1 *//* USER CODE BEGIN QUADSPI_Init 2 *//* USER CODE END QUADSPI_Init 2 */} why?
Hi!I'm using the provided Kernel software from ST. The Kernel from STM32CubeIDE.I have compiled the kernel and made it start. But once In load a module by using "insmod" or placing the modules inside the /liv/modules folder, then the kernel hangs.I get no error messages so If can't point at anything that may causing the problem.It can be that my kernel is located at another partition (bootfs) /dev/mmc0p6 and not in rootfs /dev/mmc0p7 where insmod is. Perhaps insmod expecting another kernel locationI have a small thought that it might be so that the kernel from ST is modified to fit STM32MP processors and cannot be allowed to be changed. Please let me know.Kernel version: 6.1.82
I'm on Linux debugging STM32MP1, latest version of everything installed. I used to be able to debug in "production mode" but now I got:"The serial device 'MPU Serial (/dev/ttyUSB0)' is not available."if I start debug"The selected serial device 'MPU Serial (/dev/ttyUSB0)' is not available anymore, please update the Debug configuration."However, I'm able to open the /dev/ttyUSB0 with other terminal softtware, the "/dev/ttyUSB0" appears as an option on debug options, also, the status on bottom right is green.How to fix this?
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.