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
so how can I add into the linux distribution so that firmware will build and load along with linux and load in bootupFYI : Iam using Yocto for building
Hi everyone, we are developing a project where we are planning to use a processor unit for the task, so, we are thinking of buying the STM32MP157D - DK1 for the development of the project, is the first time we are using such system and we have the following questions: 1) Can we use any operating system? like Ubuntu, Debian, etc.. apart of the OpenSTLinux? we are conscious about the yocto project and the fact we can make a "custom" linux from that, but, we would like to know that. 2) We can simulate in a virtual machine the OpenSTLinux OS? 3) How is the development process with these systems? Can we develop an application in python that manipulates the peripherals like we were programming a microcontroller or how does that work? Thanks for the answers.
Specifically the STM32MP157D Discovery KitTo avoid labour-intensive file copies I'd like to simply mount something on my server where I'm going to cross-compile things which will allow me to test a particular bit of functionality. I do not want to do any major re-builds just yet.But I see the DK1 as supplied seems not to have NFS support in the form of a mount.nfs utility though NFS is mentioned in /proc/filesystems. Or if it is there I have failed to understand it.I thought I'd be able to do something like apt-get install nfs-client or nfs-common but there's no such package.I see there's already a package called packagegroup-base-nfs installed which contains no files according to dpkg. kernel ouput also says "NFS: Registering the id_resolver key type" implying some part of NFS is present at least.This is the kind of thing I've tried and the error.root@stm32mp1:/etc# mount -t nfs -o ro,nolock 192.168.x.x:/home/jon/STM32MPU_workspace /mnt/STM32MPU_workspacemount: /mnt/STM32MPU_work
Hello,so I am using the Yocto environment and patched the device tree:diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi index dd796ec03..54ef05294 100644 --- a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi @@ -473,7 +473,16 @@ }; }; - + + i2s1_pins_mx: i2s1_mx-0 { + pins { + pinmux = <STM32_PINMUX('A', 15, AF5)>; /* I2S1_WS */ + bias-disable; + drive-push-pull; + slew-rate = <1>; + }; + }; + i2s2_pins_a: i2s2-0 { pins { pinmux = <STM32_PINMUX('I', 3, AF5)>, /* I2S2_SDO */ @@ -1479,6 +1488,17 @@ }; }; + i2s1_pins_z_mx: i2s1_mx-0 { + pins { + pinmux = <STM32_PINMUX('Z', 0, AF5)>, /* I2S1_CK */ + <STM32_PINMUX('Z', 1, AF5)>, /* I2S1_SDI */ + <STM32_PINMUX('Z', 2, AF5)>; /* I2S1_SDO */ + bias-disable; + drive-push-pull; + slew-rate = <1>; + }; + }; +
..
if not could you introduce some MPUs that i can substitute?Thanx:folded_hands:
Hello GuysLike the subject, I want change the interface RGMII to RMII using CubeMX.(RealTek-RTL8211EG-VB-CG => Microchip - LAN8720AI-CP)Based on STM32MP157C-EV1 Code in CubeMX, I changed the Ethernet option from RGMII to RMII as shown in the picture below.And after Code Generating, I applied it to my addon(mx) directory and built it.(Changed to the code generated by CubeMX.) eth1_pins_mx: eth1_mx-0 { pins1 { pinmux = <STM32_PINMUX('A', 1, AF11)>, /* ETH1_REF_CLK */ <STM32_PINMUX('C', 1, AF11)>, /* ETH1_MDC */ <STM32_PINMUX('G', 13, AF11)>, /* ETH1_TXD0 */ <STM32_PINMUX('G', 14, AF11)>; /* ETH1_TXD1 */ bias-disable; drive-push-pull; slew-rate = <1>; }; pins2 { pinmux = <STM32_PINMUX('A', 2, AF11)>; /* ETH1_MDIO */ bias-disable; drive-push-pull; slew-rate = <0>; }; pins3 { pinmux = <STM32_PINMUX('A', 7, AF11)>, /* ETH1_CRS_DV */ <STM32_PINMUX('C', 4, AF11)>, /* ETH1_RXD0 */ <STM32_PINMUX('C', 5, AF11)>; /
1. Select STM32MP151A2. Select an GPIOx and set to GIPIO_EXTx3.Select again GPIO under Pinout View, right click -> Pin Reserved -> Cortex-M44. Goto NVIC: EXTI lineX interrupt Enable Check.5. Select any of the peripheral devices, enable Cortex-A7 or Cortex-M4, and disable it.6. Goto NVIC: The enabled EXTI lineX is automatically changed to disable.And Pin Reserved for the corresponding pin is automatically changed from Cortex-M4 to Free.It is very inconvenient that the set EXTI is all initialized due to the above phenomenon.Is the way I proceeded wrong? Or maybe it's a STM32CubeIDE(1.6.0) bug. Please check.
Hello,I would like to enable battery/capacitor charging from the VBAT pin on an STM32MP1 and also change the charging resistor.That would be VBE and VBRS of PWR_CR3.What would be the proper way to enable/disable the charging together with the resistor value from Linux and/or U-boot?The regulator driver managing PWR_CR3 does not mention VBE or VBRS.Thanks
Hi everyone,I have tried to check eval board PCB with hyperlynx DDR wizard but I can't.I downloaded all of the IBIS data which are Nanya DDR3L ram and MP157A.However, I'm confused about which ODT models I should choose.Please help me which model I chose to pass this check.By the way, I attached the odt model page screen.
I am attempting to configure my device tree to support RMII with Crystal on PHY, no 50Mhz from PHY. I have made the following modifications based on https://wiki.st.com/stm32mpu/wiki/Ethernet_device_tree_configuration#RGMII_with_Crystal_on_PHY-2C_no_125Mhz_from_PHY with a 50MHz clock instead of 125Mhz.Board Specific Linux DTS&ethernet0 { status = "okay"; pinctrl-0 = <&eth1_pins_mx>; pinctrl-1 = <&eth1_sleep_pins_mx>; pinctrl-names = "default", "sleep"; phy-mode = "rmii"; max-speed = <100>; phy-handle = <&phy0>; mdio0 { #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; phy0: ethernet-phy@0 { reg = <0>; reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>; reset-assert-us = <1000>; reset-deassert-us = <200000>; }; }; };stm32mp151.dtsiethernet0: ethernet@5800a000 { compatible = "st,stm32mp1-dwmac", "snps,dwmac-4.20a"; reg = <0x5800a000 0x20
Hi everyone,I'm having the famous "Segmentation fault (core dumped)" error caused by the Linux application, but I can't find the bug.const int NUM_ELEMENTS = 131072; void process_receive (int chRPMSG) { int i; int data_buff_it = 0; char msg_RPMSG[SIZE_MSG]; char* hex_string; int hex_int; while(1) { if(read (chRPMSG, msg_RPMSG, SIZE_MSG) < 0) exit(0); else { hex_string = strtok(msg_RPMSG, " "); hex_int = (int)strtol(hex_string, NULL, 16); data_buff[data_buff_it] = hex_int; data_buff_it = (data_buff_it + 1) % NUM_ELEMENTS; for (i = 0; i < DATA_BUFFER - 1; i++) { hex_string = strtok(NULL, " "); hex_int = (int)strtol(hex_string, NULL, 16); data_buff[data_buff_it] = hex_int; data_buff_it = (data_buff_it + 1) % NUM_ELEMENTS; } } } } int main (int argc, char **argv) { int chRPMSG = open("/dev/ttyRPMSG0", O_RDWR | O_NOCTTY | O_SYNC); if (chRPMSG < 0) { int errnu
We are using the STM32MP157A device in our application. inter process communication between the both A7 processor with the bare metal programming we have doubt that how to select the both the cores independently . That is both the A7 processors. We referred the Reference manual .But we unable to get exactly.
I am currently building a dedicated image for our custom board based on STM32MP1. According to the wiki and OE mega-manual, I need to create a custom distribution to be able to customize it according to our needs.I am following the steps described here to build my own distribution which is basically the same as openstlinux-eglfs for now but in my own layer. I tried to run the init script (layers/meta-st/scripts/envsetup.sh) with my own distribution instead of openstlinux-eglfs but get the following error:[ERROR] No 'customdistro-eglfs.conf' file available in layers/meta-stThis is normal as my customdistro-eglfs.conf file is in another layers than meta-st as recommended. Do I have to copy scripts directory from meta-st to my layers ? Or do I have to source the script in another way ? I can see on others documentation the usual way is to source openembedded-core/oe-init-build-env. Why ST use a custom different script for OpenSTLinux ? In a more general ways I have the feeling ST customiz
Hi everyone,I'm coding a C application on Linux which has 2 processes. In order to optimize performance, I would like to run each one on a differente core CA7 - as I'm working whit dual-core STM32MP157F MPU. How can I achieve this? Any useful framework?Regards
On my custom board, I configured PZ0, PZ1, PZ2 for SPI1 with device tree, and linux kernel probed successfully and populate spidev node and it works fine, but if look at debug information in /sys/kernel/debug/pinctrl/, it populate something like "pin 400 (PZ0): device 44004000.spi function analog group PZ0", I expect "AF5" for pin function instead of "analog", especailly for this case it has configured as SPI alternate pin already. Is this a kernel bug or some trick I have to do with device tree?
Hi, I've created a SD card following this guide. The generated SD card partitions can be seen in the screenshot here below. It seems to boot correctly until the kernel prompts the following error:[ 4.200445] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,6) ]---How to solve this?Thank you.
Hey,we have an issue when waking up our STM32MP153 from suspend-to-ram. The wireless LAN won't respond and we get the following error messages through serial port:ieee80211 phy0: brcmf_run_escan: error (-110) ieee80211 phy0: brcmf_cfg80211_scan: scan error (-110) brcmfmac: brcmf_sdio_bus_sleep: error while changing bus sleep state -110 brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frameMaybe someone has encountered the same issue and can help.Thank you in advance! :)
Hi everyone,A significant part of the ST team monitoring this Community and based in France will take some vacation during August. Of course, few ST people will remain on board, but you may probably observe a slow-down in participation from ST. Thanks for your understanding, and thanks for your participation in this Community !Olivier on behalf on MPU Community ST moderation team
Hi all,I would like to add debian source list to the existing sources in OpenSTLinux.I created a file mysources.list under folder /etc/apt/sources.list and added following lines to itdeb http://ftp.au.debian.org/debian/ buster main contrib non-free deb-src http://ftp.au.debian.org/debian/ buster main contrib non-freeRunning apt-get update results in the GPG Signature error where in OpenSTLinux complains that it is not secure repo and it won't update from it. How can i get past this ? It is important to me to add this. Any inputs will be appreciated.
Help on customizing the device treeI installed my starter package according to instructions at https://wiki.st.com/stm32mpu/wiki/STM32MP15_Discovery_kits_-_Starter_PackageAnd the developer package following instructions at https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_PackageThen on developing my projects, I realized that I need a different device tree than what was provided in those two packages, because the CAN bus is not defined in those installations, and that is the core of my project.Then I read this bloghttps://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Developer_PackageSomewhere, it requires to navigate to "Device Drivers - Generic Driver Options"select "Size in Megabytes"modify its value to 256exit and save the new configurationThe problem is: if you follow those instructions, there is no option to select “Size in Megabytes,�? which left in darkness!!Somewhere in the next page it advises to change directory to the <Linux kernel build director
Hi, I am trying to compile an OpenSTLinux image for a target "DK2_A7" custom machine.I've followed this guide and everything seems ok until 98% of the process when the following error occurs:ERROR: tf-a-stm32mp-2.4.r1-r0 do_compile: oe_runmake failed ERROR: tf-a-stm32mp-2.4.r1-r0 do_compile: Execution of '/home/ubuntu/customer/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-DK2_A7/tmp-glibc/work/stm32mp1_DK2_A7-ostl-linux-gnueabi/tf-a-stm32mp/2.4.r1-r0/temp/run.do_compile.27013' failed with exit code 1: make: Entering directory '/home/ubuntu/customer/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-DK2_A7/tmp-glibc/work-shared/stm32mp1-DK2_A7/tfa-source' Including bl32/sp_min/sp_min.mk make: *** No rule to make target 'fdts/stm32mp157c-dk2_a7-mx-fw-config.dts', needed by '/home/ubuntu/customer/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-DK2_A7/tmp-glibc/work/stm32mp1_DK2_A7-ostl-linux-gn
DISTRO : <no-custom-config-set>DISTRO_CODENAME : dunfellMACHINE : stm32mp1-discoI followed instructions from: https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package#Installing_the_Starter_PackageI initialized repo with:repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-5.10-dunfell-mp1-21-03-31I initialized build environment with command:DISTRO=nodistro MACHINE=stm32mp1-disco source layers/meta-st/scripts/envsetup.shThat initialization took only few layers from the manifested layers.I run:bitbake core-image-minimaland got the error that nothing provides "mesa".I added qt layer, but it did not make any difference.Should I add some more layers to get builder happy or is this basic "distro" not functional?
Hi everyone,I'm coding an applicaction which needs to send data from CM4 to CA7 through RPMSG framework. FreeRTOS task involved:void t0Task(void *argument) { int count = 0x0, sim_ch = 9; const int SIZE_DATA = 7; unsigned char msg[SIZE_DATA * sim_ch], msg2[SIZE_DATA]; TickType_t xLastWakeTime; const TickType_t xFrequency = 1; while (1) { xLastWakeTime = xTaskGetTickCount(); msg[0] = '\0'; int i; for (i = 0; i < sim_ch; i++) { sprintf(msg2, "%06X", count); strcat(msg, msg2); strcat(msg, " "); count = (count + 1) % 0xFFFFFF; } VIRT_UART_Transmit(&virtUART0, (uint8_t*)msg, strlen(msg)); vTaskDelayUntil( &xLastWakeTime, xFrequency ); } }I need to achieve a throughput near 1.5 MB/s - for that, "sim_ch" variable should be 128.When this firmware is executing, an error appears after few seconds: "rpmsg_tty virtio0.rpmsg-tty-channel.-1.0: No memory for tty_prepare_flip_string". How can I solve it?Thanks,Oscar
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.