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
hi,i'm trying to compile a program in STM32CubeIDE that i wrote that cotnains calls located in libgpiod. but i'm getting linker errors as shown below. do i need to create the library myself or do i need to set a path in the CubeIDE's environment?i selected the option to install STOpenLinux to be embedded inside of CubeIDE.Invoking: MPU G++ Linkerarm-ostl-linux-gnueabi-g++ -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/vbuonassisi@ostendo.local/.eclipse/com.st.stm32cube.ide.mcu.rcp.product_1.6.0_1935172119_linux_gtk_x86_64/plugins/com.st.openstlinux.sdk.openstlinux_5.4_dunfell_mp1_20_11_12_5.4.0.202011171729/tools/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi -o "NearEGSoftware" ./gpio_test.o ./main.o -Wl,-Map="NearEGSoftware.map" -Wl,--gc-sections/home/vbuonassisi@ostendo.local/.eclipse/com.st.stm32cube.ide.mcu.rcp.product_1.6.0_1935172119_linux_gtk_x86_64/plugins/com.st.openstlinux.sdk.openstlinux_5.4_dunfell_mp1_20_11_12_5.4
I have set :hostname_pn-base-files = "new_host_name"in my conf file.This seems changing /etc/hostname in base-files image. However, there is log message telling:"[ 7.249795] systemd[1]: Set hostname to <stm32mp1-disco>."Also, /etc/hosname contents is "stm32mp1-disco".I can't find what other recipe/module is dealing with hostname settings.
Hi ST!I am working with Rust on your STM32MP157. While we have this working already, this is cumbersome as we have to figure all register addresses and layouts manually. Normally, in Rust, we parse the SVD file corresponding to a chip and go from there which is a huuuge improvement to doing everything manually. Unfortunately the SVD files available for the STM32MP157 are highly incomplete and wrong at times. Could you please fix & update the SVD files? Thanks a lot!Best,Noah
Due to office environment and being behind the Proxy I am not able to build and flash (ports locked) STM32MP1 board from my PC at office.I have done the downloading and building of the Developer package at my Home PC (without any firewalls) and wanted to scp to my board which is connected to mobile hotspot at my office.Is it possible that i can scp from a PC in one network to the STM32MP1 board in another network(mobile hotspot or Wifi)?I can safely connect to internet from my stm32mp1 board(tested with ping -c google.com . )Also when I try to ping it from my Home PC ,it pings once and then stops.Please tell if at all it is possible , this will save my huge time and going through unnecessary mails to IT and to my Boss as well :) !!Thanks in advance !Br,Pv
Hello,I need use STM32MP157 connect a USB printer. I followed this article(https://community.st.com/s/question/0D53W00000cSjHuSAK/stm32mp157dk2-printer-support?t=1630032775565), and the result is right. but when I use print command like (lp printer_test.pdf), the printer not work. And the console outputs the following information: lp: Unsupported document-format "application/pdf".Is it because I didn't install cups-filters, or any other else?Please help me. Thanks.Shaw.
ST provides eMMC partitions (besides fsbl and u-boot) : boot, root, vendor, user.I need new partition /home and want removing vendor partition.How can I get this customization ?
I have an STM32MP157D-DK1 board, and I'm trying to build a custom Linux image for it with the Yocto Project. I followed the guide here (https://forum.digikey.com/t/yocto-getting-started-with-the-stm32mp157/14074) to create a core-image-minimal.I’m trying to use the basic boot chain to avoid TF-A (for now). So, I formatted an SD card with the following (using fdisk):Disk /dev/mmcblk2: 7.29 GiB, 7822376960 bytes, 15278080 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: A1B93A60-F8E0-CB47-88F9-E559CD43B510 Device Start End Sectors Size Type /dev/mmcblk2p1 2048 2559 512 256K Microsoft basic data /dev/mmcblk2p2 4096 4607 512 256K Microsoft basic data /dev/mmcblk2p3 6144 10239 4096 2M Microsoft basic data /dev/mmcblk2p4 10240 141311 131072 64M Linux filesystem /dev/mmcblk2p5 141312 15278046 15136735 7.2G Linux filesystemI also set the legacy
I copied the STM32CubeIDE project into PATH: openstlinux-5.10-dunfell-mp1-21-03-31/layers/sources/m4projects-stm32mp1/Projects/STM32MP1Added projects path in recipes-extended/m4projects/m4projects-stm32mp1.bbBut i find that file structure for examples is different from the file structure of STM32CubeIDE project
I've asked Segger but I was wondering if anyone knows how to get a Segger J-Link/Trace to put only the M4 core on an STM32MP157 into reset and bring it back out?
My problem is, that on the one hand, the SPI3 configuration is lost after I close CubeMX. The assignment is lost to the M4 core (changed from A7 to M4 and after reopening, its again at A7. The changes have been saved and tried on different machines). If the assignment of the DMA streams for the peripherals has been done, after reopening CubeMx and *ioc file, the DMA streams differ or are completely lost. So, what I am doing wrong here? Is there maybe another problem with the GPIO or whatever, which can lead to this unexpected behaviour? Or is this a known issue? Thank you for the help. Best regards, Jan-Otto
This is the error being shown.Is iit an installation error or is there a different method to install go in stlinux??
sdk: 3.0.0 verkernel: 5.10.10Ethernet cannot be connected in the kernel of version 5.10.10, but version 5.4.31 works normallyThe Ethernet related device tree is as follows:dts as follows; &ethernet0 { status = "okay"; pinctrl-0 = <&ethernet0_rgmii_pins_a>; pinctrl-1 = <&ethernet0_rgmii_sleep_pins_a>; pinctrl-names = "default", "sleep"; phy-mode = "rgmii"; max-speed = <1000>; phy-handle = <&phy0>; nvmem-cells = <&ethernet_mac_address>; nvmem-cell-names = "mac-address"; mdio0 { // reset-gpios = <&gpiog 0 GPIO_ACTIVE_LOW>; // reset-duration = <200>; #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; phy0: ethernet-phy@6 { reg = <6>; }; }; };dmesg log as follows:[ 4.133408] systemd[1]: System time before build time, advancing clock. [ 6.200429] NET: Registered protocol family 10 [ 6.253839] Segment Routing with IPv6 [ 6.291489] system
Hi,I am using psci_cpu_on() function for Triggering the Seconary core i.e,Second A7 in Stm32mp157 at Uboot Level,but i am unable to trigger the Second Core.Refer The following path for psci_cpu_on functionPath :uboot-v2018.11-stm32mp-r2.1/arch/arm/mach-stm32mp/psci.cIn my case parameters arei)function Id :0x84000003ii)target cpu :0x00000001iii)pc :0xc01007c4(User function Address)iv)context id :1 and ,I also tried with following steps (Reference to stm32 wiki Boot-Rom code Secondary Core Boot )i)Branch Addressii)Magic Numberiii)Enabling the Software group 0 Interruptsiv) Generating Software Interrupts using GICD_SGIR register.
I have a DK1 and have wired to UART7, and got UART7 working by grafting this section (by using the CubeMX tool latest version as of a few days ago) into the existing st32mp157d-dk1.dts and rebuilding. (The real product is intended to use UART7.)===aliases { serial0 = &uart4; serial1 = &usart3; serial2 = &uart7; }; uart7 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&uart7_pins_mx>; pinctrl-1 = <&uart7_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN uart7 */ /* USER CODE END uart7 */ }; pinctrl { uart7_pins_mx: uart7_mx-0 { pins1 { pinmux = <STM32_PINMUX('E', 7, AF7)>; /* UART7_RX */ bias-disable; }; pins2 { pinmux = <STM32_PINMUX('E', 8, AF7)>, /* UART7_TX */ <STM32_PINMUX('E', 9, AF7)>; /* UART7_DE */ bias-disable; drive-push-pull; slew-rate = <0>; }; }; uart7_sleep_pins_mx: uart7_sleep_mx-0 { pins { pinmux = <STM32_PINMUX('E', 7, ANALOG)>, /* UART7_RX */ <STM32_PINMUX('E', 8, ANALOG)>, /* UART7_TX */ <STM
Hi all,I am trying to write a linux user-space application where in i am taking data from an external MCU processing it and sending it to another thread. My question here is how can make use of DMA in the user-space to make it more efficient? How can i eliminate busy looping / waiting for transfer scenarios in user-space?Thanks,Nipun Pal
Hello,We have a custom board with STM32MP157F silicon rev Z with emmc 24AA64T-I/OT . We are able to flash out OS with cubePorgrammer but we are not able to boot on emmc after flashing. According to :https://wiki.st.com/stm32mpu/wiki/STM32MP15_ROM_code_overview#Boot_from_SD_card https://wiki.stmicroelectronics.cn/stm32mpu/wiki/How_to_update_OTP_with_U-BootandRM0436 part 4 we programmed OTP registers with the following parameters :CFG3 = 0x00000007 ( emmc_if_id=2 qspi_not_default_af=1 (config by mistake) )CFG5=0x10953191CFG6=0x2f952e95CFG7=0x24952395where :-0x3191 == sdmmc2_ck PC1 AF9 no pull medium speed-0x1095==sdmmc2_cmd PA0 AF9 pull up high speed-0x2e95==sdmmc2_D0 PB14 AF9 pull up high speed-0x2f95==sdmmc2_D1 PB15 AF9 pull up high speed-0x2395==sdmmc2_D2 PB3 AF9 pull up high speed-0x2495==sdmmc2_D3 PB4 AF9 pull up high speedWhen we set the boot pins according to emmc boot no thing append. We have no log on serial port and the MP1 entrer in usb/uart dfu mode.
Hi all,I have small query around u-boot.How can i update my custom boot screen for the u-boot?How can add my custom application to start post boot?Thanks.
Hello,I am trying to get familiar with vitualUart between A7 et M4 side.The example OpenAMP_tty_Echo given in the wiki works well with my setup.Next step i would like to replace the "echo "msg" > /dev/ttyRPMG0" terminal commands" by a C linux user space application by using Read/Write file operations.Writing operations work OK but i am struggling to get the Echo with read operation.No change made on the M4 echo example.Below an extract of my GTK c programWhen read operation is reached the program blocks despite the timeout settings.But when I echo the M4 with a terminal M4 is still alive. And a very interresting thing is that this echo gives also the caracteres sent with my GTK c app.I did not find any example on the web for this task.Thank you by advance for any help.Regard serial_port = open("/dev/ttyRPMSG0", O_RDWR); struct termios SerialPortSettings; tcgetattr(serial_port, &SerialPortSettings); SerialPortSettings.c_cc[VTIME] = 10; w
Hi, We have acquired this board called Audio Injector (in the image) that has a WM8731, it is a raspberry pi hat, but we want to use it with the STM32MP157D-DK1 but the drivers we have found on the internet seems to be not compatible with this board (we are using the base OpenSTLinux), despite the board has the pinout of raspberry. Someone has used it before? Another question, how can we manipulate the Cortex M4 from the Operating system? there is a way we can use it capabilities from the OS? because we noticed that for the Cortex A7 we cannot use the SAI ports as I2S but from the Cortex M4 is possible to use them as I2S. (we saw that on the STM32Cube IDE and CubeMX).Thanks for your answer.
helloI am using a STM32M15 into a custom boardi am trying to use STMBoard to burn my systemthis is the .tsv that i am using#Opt Id Name Type IP Offset Binary- 0x01 fsbl1-boot Binary none 0x0 tf-a-stm32mp157c-ya157c-512d-v2-serialboot.stm32- 0x03 ssbl-boot Binary none 0x0 u-boot-stm32mp157c-ya157c-512d-v2-trusted.stm32P 0x04 fsbl1 Binary mmc1 boot1 tf-a-stm32mp157c-ya157c-512d-v2-trusted.stm32P 0x05 fsbl2 Binary mmc1 boot2 tf-a-stm32
1. Using a virtual machine in Windows, DOWNLOAD hangs when the virtual machine is turned off while downloading LINUX OS and BOOTLOAD to USB.2. Subsequent USB not recognized by Windows and LINUX.3. Hardware check confirms over current in PCB, overheating in USB recognition IC (USB2514B) - this circuit has no external connection other than MPU and power.4. Estimate, is it right to estimate that the internal program is incompletely downloaded and the MPU is abnormal operation as the OS downloading occurs?5. I want to reset the software to recognize USB again and download it again, what should I do?
..
Hi everyone,I'm working with OpenAMP on CM4 and I would like to increase the buffer size of RPMsg messages. When sending with VIRT_UART_Transmit() from CM4 to CA7, gives me an error when the message exceeds 496 bytes due to the RPMSG_BUFFER_SIZE value in rpmsg_virtio.h, which is set to 512 bytes.Aiming to reach 1024 bytes in size, when I set that value, RPMsg keeps giving the same error. Why?This is my simple code:void t0Task(void *argument) { int i; int count = 0x0, simulated_channels = 64; const int SIZE_DATA = 7; unsigned char msg[SIZE_DATA * simulated_channels], msg2[SIZE_DATA]; while (1) { strcpy(msg,""); for (i = 0; i < simulated_channels; i++) { sprintf(msg2, "%06X ", count); strcat(msg, msg2); count = (count + 1) % 0xFFFFFF; } if(VIRT_UART_Transmit(&virtUART0, (uint8_t*)msg, strlen(msg)) == VIRT_UART_ERROR) { VIRT_UART_Transmit(&virtUART0, "Error size\n", 20); } osDelay(1); } }Note that messages
I am using STM32MP157C and want to add 1GB of RAM. 512MB DDR3L Ram are common in market.Please suggest layouting of 2xRAM and if possible please give layout/pcb project file for altium .
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.