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, everyone!We are developing a custom board with the MYC-YA157C module. We took the the MyIR device tree configuration and add our layer there. The vendor config had a USB_OTG capable of supplying power and acting as a host. A separate chip, controlled by i2s, was responsible for supplying power to the USB. In our device, we decided to simplify and not provide power via USB, because we plan to use this interface only for the firmware downloading. The power chip was removed.Now, when starting, the u-boot freeses. I rebuilt it with a more verbose configuration and got the following debug output before the freezing:... usb_add_config: interface 0 = f_fastboot/d7c2e700 g_dnl_get_board_bcd_device_number g_dnl_bind: calling usb_gadget_connect for controller 'dwc2-udc' usb_dnl_fastboot: ready dwc2_udc_otg init failed set_config: high speed config #1: usb_dnload fastboot_set_alt: func: f_fastboot intf: 0 alt: 0As far as I understand, I need
Hi All.I want to use the battery to power the RETRAM so that the contents of the RETRAM can be preserved even if the board is not powered.To do this, I connected the battery to the VBAT pin and set the "PWR_CR2_RREN" value to the "PWR_CR2" register of the M4 core firmware.However, when booting from Linux, the value set in the "PWR_CR2" register disappears.When booting in "Engineering Mode" and running only with the firmware of the M4 core, the setting value of the "PWR_CR2" register does not disappear even when the main power is turned off.Is there anything I need to add when I create the "dts" file to enable that feature?Please give me a lot of advice.ThanksRegardsMachilus
Hi,I'm using STM32MP157A-DK1 and I built the image adding the logicanalyser layer (https://github.com/STMicroelectronics/meta-st-stm32mpu-app-logicanalyser).I follow the tutorial "How to exchange data buffers with the coprocessor".I add the rpmsg_hdr code to send message from the M4 to the DDR memory.The message is "Hello\r\n".I would like to see this message with A7.In the folder /dev there is the device rpmsg-sdb.For the code I follow the section "rpmsg_sdb driver" of https://wiki.st.com/stm32mpu/wiki/How_to_exchange_data_buffers_with_the_coprocessor#cite_note-sdb-driver-2I have no problem to open the file descritpor but when I use the command mmap occurs an error that I get with strerror(errno): "Invalid Argument".This is the code:void *buff0_id; int fd; size_t size; int main(void) { printf("Hello OpenSTLinux World!\n"); size = 7; fd = open("/dev/rpmsg-sdb", O_RDWR); if(fd < 0) { printf("Error descriptor\n"); printf("%s\n", strerror(errno)); }  
I have a problem to get the ethernet to work with the PHY AR8035 (Atheros). The board is from MYiR (MYC-YA157C-V2), but they are only providing yocto based image and I'm doing my work with buildroot. I'm using the bootlin buildroot branch: st/2021.02 https://github.com/bootlin/buildroot.gitThe kernel can't find MDIO: mdio_bus stmmac-0: MDIO device at address 6 is missing.The funny thing is, if I first boot the board from eMMC where the original image from MYiR is flashed, and afterwards, without switching power off, I start my image from the sdcard, the ethernet works. I guess this means that some register value is wrong, but I don't know where to start look. This also means that address 6 for the MDIO is also correct.On TF-A I have CLK_ETH_DISABLED, because the 125MHz is coming from the PHY.Below is the device tree for the kernel (CONFIG_AT803X_PHY=y is set):&ethernet0 { interrupts-extended = <&intc GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>, <&intc GIC_SPI 62 IRQ_TYP
Hello,I am working stm32mp157c. I want to send the data coming from ipcc to m4 to another chip with spi.My code is;void MX_SPI4_Init(void) { hspi4.Instance = SPI4; hspi4.Init.Mode = SPI_MODE_MASTER; hspi4.Init.Direction = SPI_DIRECTION_2LINES_TXONLY; hspi4.Init.DataSize = SPI_DATASIZE_8BIT; hspi4.Init.CLKPolarity = SPI_POLARITY_LOW; hspi4.Init.CLKPhase = SPI_PHASE_2EDGE; hspi4.Init.NSS = SPI_NSS_HARD_OUTPUT; hspi4.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_8; hspi4.Init.FirstBit = SPI_FIRSTBIT_MSB; hspi4.Init.TIMode = SPI_TIMODE_DISABLE; hspi4.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; hspi4.Init.CRCPolynomial = 0x0; hspi4.Init.NSSPMode = SPI_NSS_PULSE_ENABLE; hspi4.Init.NSSPolarity = SPI_NSS_POLARITY_HIGH; hspi4.Init.FifoThreshold = SPI_FIFO_THRESHOLD_01DATA; hspi4.Init.TxCRCInitializationPattern = SPI_CRC_INITIALIZATION_ALL_ZERO_PATTERN; hspi4.In
Hello,I am working stm32mp157c. I'm trying to change the clock rate of stmcubeide using pll4q for spi45 (StmCubeIde outputs are attached.). Also The bsp setting is attached .Pll settigs is; st,pll@3 { reg = <3>; cfg = <1 32 5 66 5 PQR(0,1,0)>; frac = <0x1000>; };I see the clocks are set correctly except pll4q (in linux "cat /sys/kernel/debug/clk/clk_summary" command).It turns out 25.125Mhz when it should be 6MHz (linux outputs are attached).I measure the pll4q clock with oscilloscope. Same as the value i see in "cat /sys/kernel/debug/clk/clk_summary" (not 6MHz, it is 25.125Mhz).Where do you think the problem might be?
Hello!I'm using MYD-YA15XC-T board based on stm32mp151 kernel 5.4.And wanted to share files with it via FileZilla ftp/sftp file manager on the PC.But i could not connect to the board, there is always login incorrect error, whichever login or password I try to use: My board uses automatic login, so there is no password that i know, really.And i believe the openssh-sftp package is installed.Do i missing something for sftp/ftp connection to work?Regards, Vlad.
Hi,We configured 1 uart for debugging purpose in our custom board at u boot level. Now we want to configure anthour uart for communicating with other devices.how do we configure second uart? For debug uart we use serial_putc() for transmit and serial_getc() for receiving .what are drivers we should use for transmit and receive data for second uart?
I am using stm32MP157F-DK eval board (on windows) and I would like to try the DDR testing tool on cubeMX. But this is my first time trying to do so - I try to follow steps in "U-Boot SPL: DDR interactive mode" (url: https://wiki.st.com/stm32mpu/wiki/U-Boot_SPL:_DDR_int). It states i should define this mode under CONFIG_STM32MP1_DDR_INTERACTIVE - but I dont understand when or how should I do that? Should this be done on full flashlayout_st-image-*** or should i just have boot running?
Hi,I'm using a STM32MP157a with yocto dunfell with 5.4 kernel version, and I'm trying to enable the kernel splashscreen. On my board I'm using the RBG lcd interface, and when the system is UP my application in showing curretly. On kernel config I have enabled the flags:LOGOLOGO_LINUX_CLUT224FRAMEBUFFER_CONSOLEbut no tux are showing at startup...Where I'm wrong ?
..
Hi all,How can i add support for animated splash screen on stm32mp1 ?I have understanding of the psplash recipe used for custom bootscreen which works completely fine. I would like to have animation while system is booting up.Any inputs are highly appreciated.
Hello, I'm trying to PWM some pins using the sysfs interface on the openSTLinux but unfortunately, it's not working.I've been changing the device tree files in order to get it working, but still without success.I'm trying to follow this wiki but when I run the:ls /sys/class/pwmI get nothing.What could be the issue? PWM is enabled on the kernel.I've attached the modified device tree files.Best regards,Fernando Fontes
Hi,Is there any chance to get a free documentation for the Vivante GPU on STM32MP157F?Want to support hardware accelerated 2D (not 3D) by the GPU on a bare-metal (own OS) project.I have found a reverse engineering project on GitHub facing this lack of documentation:https://github.com/laanwj/etna_vivThere was already a question on the StackExchange site Electrical Engineering:https://electronics.stackexchange.com/questions/512232/stm32mp157-gpu-documentation
hello: I made a board using the AR8035 phy chip. The system can find the phy, but it can't connect to the network.I need your help.log:
If I put the system to sleep via the "echo mem > /sys/power/state" mechanism, how can I execute code/script on wakeup event?Thanks,Ben
I am struggling to achieve a USB gadget with Mass Storage + rndis.When i start each service alone everything works but when i am trying to start both of them i receive the following error:dwc2_hsotg_ep_enable: No suitable fifo foundAny suggestion how to modify the dtsi in order to achieve it .Speed is not a conserne i can reduce the speed to full-speed as well.Thanks,Thanasis
On the STM32MP157C-DK2, can I use/interface the available muRata 1Dx with core-M4 only (& not core-A7)? I am not quite sure if the wifi module 1dx (U8 on the kit) is controlled by A7 or M4?Anyways, I want to interface it with M4. So, can it be possible?
After the OTG repeatedly switches the host and slave states, the HOST is no longer recognized
We are trying to use circular DMA to transfer data from ADC1 into a buffer in MCU SRAM using CubeMX-generated code to configure the ADC and DMA. The DMA stream encounters a transfer error on transferring the first item. I have tried clearing the DMA error flags before starting the transfer with HAL_ADC_Start_DMA but that did not help.The device is an STM32MP157C running in Production mode. ADC1 and DMA2 are assigned to the M4 core.Using a debugger it can be seen that the peripheral address and memory address are configured correctly for the DMA stream. However, the DMA_HWCFGR1 register for DMA2 shows that all streams are in double-buffer mode despite the DBM bit being cleared in the stream configuration register, is this normal?CubeMX-generated code:static void MX_ADC1_Init(void){ /* USER CODE BEGIN ADC1_Init 0 */ /* USER CODE END ADC1_Init 0 */ ADC_MultiModeTypeDef multimode = {0}; ADC_ChannelConfTypeDef sConfig = {0}; /* USER CODE BEGIN ADC1_Init 1 */ /*
Hi STM-Team,I am working with STM32MP1 evolution board. It has 512MB of RAM memory. I want to load some custom data (1024 byes) in the last some offset of RAM memory (~500MB offset address). So, I am trying to use below command from u-boot prompt. But, getting error like accessing reserved memory.RAM Base address is 0xC000 0000 + 0x1F40 0000 (500MB offset) = 0xDF40 0000Case-1: STM32MP1>ext4load mmc 0:5 0xDF400000 file.binEntering do_loadargc:5argv[0]:loadargv[1]:mmcargv[2]:0:5argv[3]:0xDF400000argv[4]:file.bin** Reading file would overwrite reserved memory **File read ret:-28But, I am able to access the address offset ~381MB (0xD7DEF0DC).Case-2: STM32MP1> ext4load mmc 0:5 0xD7DEF0DC file.binEntering do_loadargc:5argv[0]:loadargv[1]:mmcargv[2]:0:5argv[3]:0xD7DEF0DCargv[4]:mtd3File read ret:01024 bytes read in 339 ms (2.9 KiB/s)Can anyone help me out to understand what is going wrong while accessing the RAM memory addresses around 500MB offset?Attaching the full logs file for refer
Hi,I'm using stm32mp157a-dk1 and I would like to use rpmsg_sdb for exchanging data buffers with the coprocessor (https://wiki.st.com/stm32mpu/wiki/How_to_exchange_data_buffers_with_the_coprocessor).I built the image for the A7 following the "STM32MP1 Distribution Package" tutorial without problem (https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package#Flashing_the_built_image).But in the dev folder I can't find the rpmsg_sdb device.Is there a prebuild image for A7 with this driver?If not, how can I add the recipe rpsmg-sdb-mod Yocto recipe to the image of the distribution tutorial using bitbake?In case, is there other ways to get the device rpmsg_sdb?Thank you in advance.Best regards,Andrea Segalla
Hi I built the linux kernel by following the steps on the stm32mpu wiki web. All default configuration except enabled earlyprintk. However, when I restart the system, it does not work any more.This is the error in boot log....[ 0.349451] pps_core: LinuxPPS API ver. 1 registered[ 0.354493] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>[ 0.363706] PTP clock support registered[ 0.368477] arm-scmi firmware:scmi0: SCMI Notifications - Core Enabled.[ 0.375147] 8<--- cut here ---[ 0.378218] Unhandled fault: external abort on non-linefetch (0x008) at 0xe081f004[ 0.385829] pgd = (ptrval)[ 0.388549] [e081f004] *pgd=c183c811, *pte=2ffff653, *ppte=2ffff453[ 0.394877] Internal error: : 8 [#1] PREEMPT SMP ARM...Any hint? The board is stm32mp157f-dk2Thanks
I have STM32MP1 DK2 with me. I want to work on some projects on STM32MP1 DK2 to know the working more. Mainly on RTOS ,Linux and display.
Hi, I am not newer for stm32cubeide. But the stm32cubeide had very bad experience on stm32mp1 platform. Most of the time the debug fails with the error prompt in the screenshot below. The solution is also just to reconnect the stlink or serial port.So, for now I try to debug cm4 applications using openocd + gdb in a command way. It is much better than stm32cubeide in terms of efficiency except that I need to remember some commands and it is not as convenient to use as the graphical menu on stm32cubeide. Probably because eclipse is too bloated, using vscode + openocd + gdb to debug cm4 applications is a good way.
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.