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 am working with STM32MP157C-DK2 board and trying to pass messages between the CM4 and the CPU (main processor) using the OpenAMP framework over the com ports ttyRPMSG0 and ttyRPMSG1. On the CPU I have the openstlinux-weston image, and a C program for reading and sending messages through ttyRPMSG ports. In this program for interacting with the ports, I pretty much followed this example. Here is my communication setup: CPU sends msgs --> ttyRPMSG0 --> CP4 Receives msgs CM4 sends msgs --> ttyRPMSG1 --> CPU Receives msgsThe CM4 firmware setups and configure OpenAMP and VIRT_UARTs very much as in the OpenAMP_TTY_echo. Here is the issue that I want to resolve.- The CM4 receives the messages sent from CPU. - However, on the CPU side, receiving messages only works if in a terminal I run echo 'some text' > /dev/ttyRPMSG1 This is quite annoying. Encapsulating this command in a shell script and launching a systemd service does not work (in t
I am stuck at step 6 inhttps://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157C-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-M4/Modify,_rebuild_and_reload_a_firmwareMPU Serial Console is operational, ethernet RJ45 also, and serial port is not opened elsewhere.I don't get passed this yellow light, "serial consol in use"/Peter
On the STM32MP1, when booting from serial NOR flash, the STM32 MPU Wiki states "In dual mode, BK1_NCS shall be connected to BK2_NCS on board." Should MPU BK1_NCS and BK2_NCS GPIOs actually be connected, or rather is BK2_NCS GPIO unused? I'm just confused since other kits (ex: STM32H750B-DK) have provisions for jumping the 2 lines together, but the wiki does not indicate the BK2_NCS GPIO (from the MPU) is even used by the BootROM. I wanted clarification of the statement made on the wiki article, mainly to be sure that shorting the BK1_NCS and BK2_NCS lines weren't required to put the QuadSPI in dual-bank mode. The statement on the wiki might be misleading.
Hi, i'm using Yocto to build a custom openstlinux image for a stm32mp157d-dk1, but i would like to upload the image using the mass storage mode, enabled with u-boot, or something like that.
My device tree is the following:&sdmmc1 { pinctrl-names = "default", "opendrain", "sleep"; pinctrl-0 = <&sdmmc1_b4_pins_a>; pinctrl-1 = <&sdmmc1_b4_od_pins_a>; pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; disable-wp; cd-debounce-delay-ms = <500>; no-1-8-v; max-frequency = <1000000>; //st,sig-dir; //st,neg-edge; //st,use-ckin; bus-width = <4>; vmmc-supply = <&vdd_sd>; //vqmmc-supply = <&sd_switch>; sd-uhs-sdr12; sd-uhs-sdr25; sd-uhs-sdr50; sd-uhs-ddr50; status = "okay"; };Sd schematics is the following:
Good afternoon, I wrote a program for controlling the railway scoreboard in Python 3 for the STM32MP157A-DK1 board. I have a problem. It is described by the link https://bugs.launchpad.net/ubuntu /+source/gnome-control-center/+bug/1264368Troubleshooting:Warning: Source ID *** was not found when attempting to remove it.I have a question which boards from the STM32MP157 family do not have this problem?Sincerely, Alexander.
Hi All,i'm having an issue with STM32MP157c and audio driver WM8994 (same as used into STM32MP15-DK).At boot time i'm still have the following error:[ 4.250237] ALSA device list:[ 4.251761] No soundcards found.I share the electrical drawing of our custom board and my custom DTS.I followed the steps described here:https://wiki.st.com/stm32mpu/wiki/Soundcard_configuration#Referencesbut i'm still get the same error.Kind regardsIlie
..
Hi there,I am struggling to understand and achieve a USB gadget with Mass Storage + Serial(cdc-acm) + 1 custom interface with one bulk in and one bulk out though functionfs. Every interface works fine when runs separately. Issue starts when i try to make a composite device because of the fifo configuration.I understand there is total of 4KB Fifo as described in reference manual and is configurable for each endpoint as needed.I believe in my case :MSG = I need 1 BULK IN + 1 BULK OUTCUSTOM = I need 1 BULK IN and 1 BULK OUTCDC ACM = needs 1 BULK IN and i BULK OUT + 1 interrupt endpointso my requirement is only for np-tx-fifo, is this correct?But alwasy in composite mode it fails with :dwc2 49000000.usb-otg: dwc2_hsotg_ep_enable: No suitable fifo found.. <<from stm32mp151.dtsi>> – and total of entries can be 952 dwords.g-rx-fifo-size = <128>;g-np-tx-fifo-size = <512>;g-tx-fifo-size = <128 128 64 64 64 64 32 32>;Can somebody please explain how to configure it p
Hey.. there I hope all are doing well I have just upgraded my Ubuntu desktop version from 18.0 to 20.04Right now, I'm playing with STM32MP1 and that's how to flash the new image i have downloaded the STM32Cube programmer Linux version 2.8.0After successfully downloading when i try to run the programmer from the search bar then it's unable to run When i try to run from the command line then, at the same time I'm getting following JRE errors Can any one leads me the right solution?All suggestions and comments welcome :)Many Thanks ./STM32CubeProgrammerLauncher /home/mahendra/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin chdir /home/mahendra/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/. current dir /home/mahendra/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin (java:10912): Gdk-CRITICAL **: 16:49:55.369: gdk_x11_display_set_window_scale: assertion 'GDK_IS_X11_DISPLAY (display)' failed # # A fatal error has been detected by the Java Runtime Environment: # # SIGS
Hello experts,I am in purpose of developing driver of the peripheral CRYP1 with MDMA on STM32MP157C-DK2 board.I refer to STM32MP157 advanced Arm®-based 32-bit MPUs - Reference manual(RM0436),firstly in page 1160, CRYP1 is AHB5 source, and two stream are supported to MDMA,and at page 2025, CRYP_DIN address must be fixed. However according to description of MDMA address update configure register(MDMA_CxTCR) at page 1181, configuring DINC and SINC , address pointer fix is forbidden when AHB bus setted.In addition, setting DBUS and SBUS in MDMA_CxTBR, cannot be writen even eEN bit is 0.I wonder how CRYP1 can be implemented with MDMA.
EDIT: Found the solution, read for implementationI'm trying to get the MPU to exit from standby. PWR_ON goes to 0 as expected on shutdown, so far so good.I'm using PA2 (WKUP2) but it's not working at all...Is there anything special to setup in the device tree?I am using discrete power supplies as instructed in the app notes. (PWR_ON to enable pins)Here's my dts config for TF-A&pwr_regulators{ status = "okay"; secure-status = "okay"; /* USER CODE BEGIN pwr_regulators */ system_suspend_supported_soc_modes = < STM32_PM_CSLEEP_RUN STM32_PM_CSTOP_ALLOW_LP_STOP STM32_PM_CSTOP_ALLOW_STANDBY_DDR_SR >; system_off_soc_mode = <STM32_PM_CSTOP_ALLOW_STANDBY_DDR_OFF>; /* USER CODE END pwr_regulators */ };Linux config partwkup { compatible = "gpio-keys"; #address-cells = <1>; #size-cells = <0>; autorepeat; status = "okay"; button@2 { label = "WakeUp2"; linux,code = <BTN_1>; interrupts-extended = <&exti_pwr 56 IRQ_TYPE_E
Hi there, I am writing an application that requires large streams of IPCC. At the moment I have allocated the RPMSG vdev0 and vrings to SRAM3+4 and I have increased the buffer size of each ring to 1024. The device tree now looks like this: vdev0vring0: vdev0vring0@10040000 { compatible = "shared-dma-pool"; reg = <0x10040000 0x2000>; no-map; }; vdev0vring1: vdev0vring1@10042000 { compatible = "shared-dma-pool"; reg = <0x10042000 0x2000>; no-map; }; vdev0buffer: vdev0buffer@10044000 { compatible = "shared-dma-pool"; reg = <0x10044000 0x8000>; no-map; };On the M4 Linker Script:RAM2_ipc_shm (xrw) : ORIGIN = 0x10040000, LENGTH = 0x00012000 I am trying to increase the VRING_SIZE to more than 16 ( Ideally I would like to increase it to maximum possible value in my configuration). In Openapm_conf: #VRING_NUM_BUFFS 16I have increased the memory in my device tree but I can not find the remoteproc config declaration for VRING s
Hi When generating for CubeIDE firmware executes fine in both production and engineering mode. But for IAR/EWARM only engineering mode works. And, yes, I am aware of production mode not supported out of the box. Manual copy to target and start required. Target STM32MP1-DK2 STMCubeMX 6.3.0 STMCubeIDE 1.7.0 EWARM 9.10.1 /* USER CODE BEGIN WHILE */ while (1) { static int loopCounter; loopCounter++; HAL_GPIO_WritePin(LED_Y_GPIO_Port, LED_Y_Pin, GPIO_PIN_SET); if( loopCounter < 10 ) { for(volatile int i = 0; i < 5000000; i++); } else { HAL_Delay(500); } HAL_GPIO_WritePin(LED_Y_GPIO_Port, LED_Y_Pin, GPIO_PIN_RESET); if( loopCounter < 10 ) { for(volatile int i = 0; i < 5000000; i++); } else { HAL_Delay(500); } /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ } /* USER CODE END 3 */ Reproduction method Generate STMCubeIDE and EWARM projects by changing in MX Project Manager from attached HAL_Tick_TIM6.ioc. Add code snippet to
Hi, In the Distribution Package, I have created a new machine inside my own layer. I'm running the environment script like this: MACHINE=stm32mp1-my_machine DISTRO=openstlinux-eglfs source layers/meta-st/scripts/envsetup.shHowever, it's not possible to use the bitbake command after running the script as the bblayer.conf file is missing theese 3 layers: meta-openembedded/meta-oemeta-openembedded/meta-pythonmeta-st/meta-st-stm32mp-addonsThe problem is solved and I can use bitbake when I add them manually to BBLAYERS inside bblayer.conf. However, I would like to do this automatically. The regular way to add a layer is to use: bitbake-layers add-layer /layers/meta-my-layerBut as explained, bitbake doesn't work before adding the missing layers. I have tried to run:MACHINE=stm32mp1-my_machine DISTRO=openstlinux-eglfs BSP_DEPENDENCY='/OpenSTLinux/Distribution-Package/openstlinux-5.10-dunfell-mp1-21-03-31/layers/meta-st/meta-st-stm32mp-addons /OpenSTLinux/Distribution-Package/openstlinux-5.10-
This part uses 354LFBGA package that does not bring out PG4 or PG5 where RGMII clocks are brought out. This would not allow connection to the RGMII_GTX_CLK or RGMII_CLK125 signals.
I'm creating a project using STM32CubeIDE for the STM32MP1. I've followed the steps outlined in AN5630. I notice in the root project, under CA7\DeviceTree, that the directories for kernel, tf-a and u-boot are created. I'm planning on creating either a bare metal project or an RTOS based project, not a Linux based project. What caused the generation of these directories and how do I get rid of them, assuming I need to? ThanksLee Thalblum
I'm having trouble resetting the board from linux.Not using a PMIC but discrete power supplies.I followed the app notes and errata, connecting the NRST and CORE_NRST pins with a cap then later a 0R resistor.I'm using a single 100nF cap on NRST.I can see the reset pin going down when rebooting from linux, unfortunately the MPU just freezes.It looks like it gets stuck in BootROM after reset.So far only a very long pull down (250ms+) on NRST works. This or cycling power on VDDCORE which I can't do on my current prototype... (PWR_ON wired directly to VDDCORE supply enable pin)Reset works fine from u-boot. (booting from SDMMC1, so already enabled)I remember reset working a while ago, so I'll try to reproduce it and see what is blocking.Any ideas?NRST + CORE_NRST signals: (connected together)
Hi All,i have my own board based on STM32MP157C.I connected usart1 (tx, rx, cts, rts) to Wifi/Ble module and i still got the same error:stm32-usart: probe of 5c000000.serial failed with error -22I discovered that USART1 is a secure device so i need to know ho to enable it into my dts.Thanks in advance
Anyone attempted to build a distro with the libs that support a dot net core run time ?Could a WinUI application work correctly on a strong stm32mp157 + gpu ?I need to have a complete crossplateform software suite on Android/IOs/linux/windows and my stm32mp1 board. UNO framework could be a solution. thx.
- Create the directory for the project (C:\Project)- Create a New STM32 project- Select the processor and package- Setup STM32 project > Enter project name, for location enter project directory, select language and project type STM32Cube- Code Generator options: Copy only necessary library filesWhen I start the project generation I get a popup message "C:\: Access is denied".Using the "Project > Generate Code" option gives me the same message.If I follow the same procedure and use the default workspace directory the project gets created successfully. Any suggestions as to how I can fix this problem would be appreciated.ThanksLee
Hi, I'm MesutI'm working STM32MP157C and use DP83867IRRGZ Ethernet Phy in RGMII Mode. There is no 125 MHz from CLK_OUT of DP83867IRRGZ on default mode.But STM32MP157C need 125 MHz on its PG5 pin. For STM32MP157C we must provide a 125 MHz clock from DP83867IRRGZ or RCC.I create pll4p -> ethck_k clock 125 MHz follow the https://wiki.st.com/stm32mpu/wiki/Ethernet_device_tree_configuration. I saw this by calling the "cat /sys/kernel/debug/clk/clk_summary" command on linux.pll4_p 0 0 0 125000000 0 0 50000 ethptp_k 0 0 0 125000000 0 0 50000 ethck_k &nb
So it looks like Uboot supports /boot/extlinux/extlinux.conf boot menu file on STM32MP157-DK2 board? But does it support FDT entry used to specify device tree file to use? Or I have to rebuild the kernel anytime when I want to make small changes to device tree? -albertr
I can't install crontab with apt-get installapt-get install cron Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package cronWhat do you suggest?
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.