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
Good afternoon. I tried to check your example OpanAMP_TTY_echo together with the ssh-t ttyRPMSG0 command after trying to execute the ssh-t ttyRPMSG0 command, the terminal responds Error resolving ttyRPMSG0 port 22 Temporary failure in name resolution Why? What did I do wrong? Sincerely, Alexander
I've assigned the UART8 device in the devicetree of the linux kernel (OpenSTLinux):&pinctrl { // ... uart8_pins: uart8-0 { pins1 { pinmux = <STM32_PINMUX('E', 0, AF8)>; /* UART8_RX */ bias-disable; }; pins2 { pinmux = <STM32_PINMUX('E', 1, AF8)>; /* UART8_TX */ bias-disable; drive-push-pull; slew-rate = <0>; }; }; uart8_sleep_pins: uart8-sleep-0 { pins { pinmux = <STM32_PINMUX('E', 0, ANALOG)>, /* UART8_RX */ <STM32_PINMUX('E', 1, ANALOG)>; /* UART8_TX */ }; }; // ... } // ... &uart8 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&uart8_pins>; pinctrl-1 = <&uart8_sleep_pins>; /delete-property/dmas; /delete-property/dma-names; status = "okay"; };The uart8 (0x40019000) is detected upon boot and the device /dev/STM1 is created:[ 1.196012] stm32-usart 40010000.serial: interrupt mode for rx (no dma) [ 1.196036] stm32-usart 40010000.serial: interrupt mod
We would like to build the TF-A image with a different muxer settingfor i2c4. The usual setting is:i2c4_pins_a: i2c4-0 { pins { pinmux = <STM32_PINMUX('Z', 4, AF6)>, /* I2C4_SCL */ <STM32_PINMUX('Z', 5, AF6)>; /* I2C4_SDA */ bias-disable; drive-open-drain; slew-rate = <0>; };};our setup:i2c4_pins_a: i2c4-0 { pins { pinmux = <STM32_PINMUX('H', 11, AF6)>, /* I2C4_SCL */ <STM32_PINMUX('H', 12, AF6)>; /* I2C4_SDA */ bias-disable; drive-open-drain; slew-rate = <0>; };};If we use the changed pin muxing we get no signal output on those pins.My que
Good day, I solved one problem how to connect to stm32mp157a-dk1 over tcp. In the console, you need to write ifconfig eth0 192.168.1.5 ; net data-P ttyRPMSG0 ; net data-p8888 but I do not see data in the buffer ttyRPMSG0. in my program OpenAMP_TTY_echo although the data should be. Sincerely, Alexander.
Hello Everyone I wanted to Install Buildroot on my STM32MP157-DK2 according to this website:https://bootlin.com/blog/building-a-linux-system-for-the-stm32mp1-basic-system/Unfortunately as a beginner with OpenST-Linux and Yocto I got stuck at that step where I couldn't find a way t install gcc like on ubuntu for exemple with the easy command "apt-get install ... " .I flashed and Installed OpenST-Linux on my device according to this st.wiki page:https://wiki.st.com/stm32mpu/wiki/STM32MP15_Discovery_kits_-_Starter_PackageEverything worked fine. I would also be interested in knowing if Installing Buildroot would cause some STM-Softwares inactive. We are working on an IoT Project and according to what I've read,Buildroot is suitable for it and besides the guy responsible for the Project wanted Buildroot installed and configured on the device.Thank you all and thanks for helping me to get better :)
I am trying to get this board up and running again after being away from it for a while, but I've been running into problems trying to boot from the SD card. I followed the instructions from the wiki here: https://wiki.st.com/stm32mpu/wiki/STM32MP15_Evaluation_boards_-_Starter_PackageI tried flashing in DFU mode:~/Downloads/stm32mp1-openstlinux-5.4-dunfell-mp1-20-06-24/images/stm32mp1$ STM32_Programmer_CLI -tm 20000 -c port=usb1 -w flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157a-ev1-trusted.tsv ------------------------------------------------------------------- STM32CubeProgrammer v2.5.0 ------------------------------------------------------------------- Warning: Timeout is forced to 20000 ms USB speed : High Speed (480MBit/s) Manuf. ID : STMicroelectronics Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000 SN : 003E003E3438511638333630 FW version : 0x0110 Device ID : 0x0500 Device name : STM32MP1 Device type :
we want to read value of 1ch's adc evary 1ms by IIO. it it possible? (STM32mp151c)if it can not , how to does it read adc every 1ms. **********************************$ cd /sys/bus/iio/devices/trigger0/$ cat nametim6_trgo$ echo 10 > sampling_frequency **********************************
I have xfce running very well in the V1.2 Yocto Distribution system on the stm32mp157c disco board. The xfce desktop is very responsive and uses about 100M of memory. The xfce desktop using the latest V2.0.0 Distribution image however is very sluggish and even a simple mouse movement will cause near 100% cpu utilization. Memory usage is around 200M or more with the Xorg server alone using up 16M of memory. It would appear that the new image is not accelerated. I see similar behavior with the x11 image (matchbox desktop) so the issue is not the desktop but with the underlying system. Is there something setup parameter I am missing? I also noted that the weston image seems to run fine!
Hello,PLEASE GIVE SOME HELP.We made some boards based on MP157AAA and it ran good at first.BUT it can not boot anymore after someone turn off and on the power.No information comes from UART4 after turn on power switch.I change the boot-switch to '000' and use "cube programmmer " to update boot.some information comes out form uart4 but "cube programmmer " show error.SO,please tell me how to update boot-part or our hardware has been damaged Permanently.Thanks a lot.SIMON.
Hello,I am new to Linux and just got a new DK2 board. I am attempting to go through the sample on the wiki site.Question 1:I have followed all the steps, but when I go to make the example, I get this error and am not sure how to address it (image makeError): make: arm-ostl-linux-gnueabi-gcc: Command not foundMakefile:13: recipe for target 'gtk_hello_world' failedmake: *** [gtk_hello_world] Error 127Question 2:I then asked a friend for their version of the gtk_hello_world example. It runs on my linux system and was able to download it to the board. But when I run it on the target, I get a very strange error as seen in the image runSample. It's like the file(s) is corrupted...
Hi allI am making a distribution based on "Eco System 2.0.0" and yocto.I have a problem with TF-A when making a distribution package.This is the "stm32mp1_clk_get_gated_id: clk id 85 not found" error message from "tf-a-v2.2-stm32mp-r1.0"I know it's resolved in "tf-a-v2.2-stm32mp-r1.3", but it doesn't apply to yocto yetI would like to know if there is a way to apply the "tf-a-v2.2-stm32mp-r1.3" version to yocto."devtool modify -x tf-a-stm32mp workspace/tf-a"I used the above command to replace existing source with "r1.3" source and created a distribution, but the version of the "tf-a-xxxxx-serialboot.stm32" file is still "r1.0".When I download using "STM32CubeProgrammer" I get the same error.Any answers would be appreciated.Thanks and regardsMachilus
I'm trying to build the standard st-image-weston image following this guide:https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_PackageAfter starting the build with bitbake st-image-westonWhen it reaches around the 68% of the process I get the following error:ERROR: tf-a-stm32mp-2.2.r1-r0 do_compile: oe_runmake failed ERROR: tf-a-stm32mp-2.2.r1-r0 do_compile: Execution of '/home/osboxes/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/tf-a-stm32mp/2.2.r1-r0/temp/run.do_compile.21431' failed with exit code 1: make: Entering directory '/home/osboxes/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work-shared/stm32mp1/tfa-source' make: *** No targets specified and no makefile found. Stop. make: Leaving directory '/home/osboxes/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work-shared/stm32mp1/tfa-source' WARNING: exit code 1 from a shell command. ERR
Hi all, I am trying to switch to using FIT images and I am looking at the example .its file here:https://github.com/STMicroelectronics/u-boot/blob/0e6522cbd1bfccd7281acdf8ab5ebbd37d29eab1/board/st/stm32mp1/fit_kernel_dtb.itsI am trying to understand why 0xC0008000 is used for the load address/entry point. If I understand correctly:By default, U-boot will load the FIT image to address 0xC2000000Then it will copy the kernel image to load address 0xC0008000, and jump to itThe kernel image needs to decompress itself to final address 0xC0008000; however since the entry point of the zImage is 0xC0008000, it will need to relocate itself first to some address which is higher than (0xC0008000 + uncompressed kernel length)And then finally decompress to final location 0xC0008000Wouldn't it be possible to skip the relocation in step 3 by choosing a different address for the load address/entry point in the FIT image?Thanks,Guillermo
I'm following the tutorials on the wiki about developing for the cortex-m4 on the DK2 kit. I'm facing trouble when I need to connect to the serial console, see image:The chars shown on the error message are random. Things already tried:Update ST-link firmwareSet COM port number to COM1 instead of com24Reconnect ST-linkRe-flash clean starter package on DK2 boardReinstall cubeIDE to a fresh 1.4.0Any idea how to resolve this error? I also got access to MDK-ARM, is there a tutorial or wiki page on how to use the M4 with MDK-ARM?
Hi all,The file include/configs/stm32mp1.h in U-boot defines CONFIG_LOADADDR to 0xc2000000. I understand this is the address in RAM where u-boot puts the uImage loaded from persistent storage (SD, NAND, etc).At the same time, according to [2], the kernel uImage is built with LOADADDR set to 0xc2000040. I understand this is the address where the kernel is relocated.Wouldn't this be a problem, as the address of the loaded uImage and the address used for relocation seem to overlap?Also, I think that common convention for ARM is to use <base RAM address> + 0x8000 for relocating the kernel; what is the reason to use 0xc2000040 here? [1]: https://github.com/STMicroelectronics/u-boot/blob/v2020.01-stm32mp/include/configs/stm32mp1.h [2]: https://github.com/STMicroelectronics/meta-st-stm32mp/blob/dunfell/recipes-kernel/linux/linux-stm32mp/README.HOW_TO.txt
do we have any bit disable particular can frame receive warn message as we have in imx6 platform ?RWRN_MSKThis bit provides a mask for the Rx Warning Interrupt associated with the RWRN_INT flag in the Error andStatus Register. This bit is read as zero when MCR[WRN_EN] bit is negated. This bit can only be written ifMCR[WRN_EN] bit is asserted.1Rx Warning Interrupt enabled0Rx Warning Interrupt disabled
Is it possible to control LTDC on STM32MP157 by Cortex M4 co-processor?I have noticed that there is no available HAL driver for LTDC on STM32MP157.Why is it so? Can we use the HAL driver for LTDC intended for STM32H7 processors on STM32MP157?
Trying and failing to toggle LED 7 of the STM32MP157C-DK2 from the STM32. The IOC file indicates that PH7 is configured as GPIO. The mode is Output Push Pull, the GPIO Pull-up/Pull-down state is No pull-up and no-pull-down. The Maximum output speed is Low. I have added the following lines to the following lines to main.c: while (1) { HAL_GPIO_TogglePin(GPIOH, GPIO_PIN_7); HAL_Delay(1000); /* USER CODE END WHILE */The code is executing but the LED is not changing state. I looked in the MX_GPIO_Init() on the STM32 side and there appears to be no code to setup the GPIO port:static void MX_GPIO_Init(void){ /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOH_CLK_ENABLE();}I looked in the CA7 side at the kernel dts file and could find no reference to GPIO H7. From what I read in the documentation I thought the STM32CubeIDE was supposed to generate the setup code for this port. I am using the OpenSTL v2.0.0 Starter Kit image.Does anyone have
In manual UM2369 it states the following:"To set up an STM32MP157C-DK2 Discovery kit as the Edge gateway for your Predictive Maintenance Platform,you can either:• Use a pre-configured image by ST; these can be flashed onto an SD card and run on the Discovery board. Inthis case you can skip the gateway configuration procedure and proceed directly to connecting to thegateway via SSH.– X-LINUX-PREDMNT"I downloaded the appropriate *.imgc file to my HostPC. I also managed to get the STM32Programmer working with DFU and flashed the Starter Package to my Discovery Kit Gateway. The manual or broader website doesn't state how to actually do what UM2369 states in the above paragraph. Anybody have some step-by-step guidance for me?
..
Hello EveryoneI wanted to connect my STM32MP157-DK2 to laptop (Ubuntu 18.04 through a VM). I followed every step in the bellow article but nothing : https://wiki.st.com/.../STM32MP15_Discovery_kits...According to section 6.2 my MP should connect. The STM32Programmer Software is responding (Version 2.5) but the USB connection isn't possible The switches are on the Off mode.There is no explanation on the net, so I hope that you can help me.Thanks
As long as this 0x23 file is larger than 200M, it will fail to burn. I use version 2.5
I cant seem to get the STM32CubeIDE to work with the STM32MP157C-DK2 board. It builds the examples and then when I go to load and debug i get the following:Open On-Chip Debugger 0.10.0+dev-01193-g5ce997d (2020-02-20-10:57) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html cortex_a interrupt mask on cortex_a interrupt mask on cortex_a domain access control fixup on cortex_a domain access control fixup on none separate adapter speed: 8000 kHz adapter_nsrst_assert_width: 200 adapter_nsrst_delay: 200 none srst_pulls_trst srst_only srst_pulls_trst srst_gates_jtag srst_open_drain connect_deassert_srst Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : STLINK V2J36S26 (API v2) VID:PID 0483:3752 Info : using stlink api v2 Info : Target voltage: 3.231496 Info : Unable to match requested speed 8000 kHz, using 4000 kHz Info : Unable to match requested speed 8000 kHz, using 4000 kHz Info : clock spee
Hello.I created a custom device tree in CubMH and added its instructions "How to create your own machine" (https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_machine)I wanted to run I2C5 in production mode. Running my code stops CM4 and CA9, which then leads to a reboot. At the same time, there are no signals on the pins.Running the example I2C_TwoBoards_ComIT (STM32CubeMP1 / Projects / STM32MP157C-DK2 / Examples / I2C / I2C_TwoBoards_ComIT) CM4 loops at the following code fragment:while (HAL_I2C_GetState (& hi2c5)! = HAL_I2C_STATE_READY) { }In this case, CA9 is working normally.In engineering mode, my code and example code work fine, signals appear on pins.I2c5 setup:m4_i2c5_pins_mx: m4_i2c5_mx-0 { pins { pinmux = <STM32_PINMUX('A', 11, RSVD)>, /* I2C5_SCL */ <STM32_PINMUX('A', 12, RSVD)>; /* I2C5_SDA */ };};&m4_i2c5{ pinctrl-names = "default"; pinctrl-0 = <&m4_i2c5_pins_mx>; status = "okay"; /* USER CODE BEGIN m4_i2c5 */
Hey Team, I'm trying to get through a board bring up with the STM32MP157 silicon ver 2001 marked with a Z. We are trying to boot the system from the on board eMMC (Insignis Technology Corp P/N: NSEC53K008-IT 8GB eMMC ) and are having issues. We have configured the boot pins correctly and also confirmed emmc hardware connections are correct by successfully reading and writing the emmc from linux while booting from the SD card. There seems to be a lack of documentation on how to configure the eMMC and partition it. Is there any specific partition scheme that needs to be followed for the MP1? And link to an app note that documents how to configure the eMMC via STM32Programmer or UBoot for booting would be extremely helpful.Jason
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.