Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
Hi,I'm working with the stm32mp157f-dk2 and with OpenSTLinux and I'm trying to create a GATT service for provisioning the wifi credentials.The problem is, according to https://wiki.st.com/stm32mpu/wiki/How_to_scan_BLE_devices I should be able to run the gatttool command. Unfurntently I'm not. I have already re-flashed the OpenSTLinux and I also have reprogrammed the kernel.I'm running the OpenSTLinux 5-4 20-11-12.What should I do? I have also tried the apt-get install command..Thanks,Fernando Fontes
Are the following Warnings import? If yes how can I deal with them ? WARNING: /home/mehdi/DP1/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-st-stm32mp/recipes-kernel/linux/linux-stm32mp_5.4.bb:do_compile is tainted from a forced run Initialising tasks: 100% |####################################################################################################################| Time: 0:00:13 Sstate summary: Wanted 534 Found 492 Missed 42 Current 3484 (92% match, 98% complete) NOTE: Executing Tasks WARNING: st-image-vendorfs-1.0-r0 do_image: /vendor folder not available in rootfs folder, no reformat done... WARNING: st-initrd-1.0-r0 do_package: Manifest /home/mehdi/DP1/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxweston-stm32mp1-disco/tmp-glibc/sstate-control/manifest-x86_64_x86_64-nativesdk-st-image-resize-initrd.packagedata not found in stm32mp1_disco cortexa7t2hf-neon-vfpv4 cortexa7t2hf-neon cortexa7t2hf-vfp cortexa7hf-neon-vfpv4 cortexa7hf-neon cortexa7hf-vfp armv7ve
I am using GStreamer to stream live video from mjpeg cameras. For this I am using a pipeline which is roughly equivalent to this one:gst-launch-1.0 souphttpsrc is-live=true location=<camera_url> ! multipartdemux ! image/jpeg,framerate=0/1 ! jpegparse ! avdec_mjpeg ! videoconvert ! waylandsinkThis was working fine with OpenSTLinux 1.x, but with 2.x the video stutters or even freezes.Can someone help?Guillermo
Hi Please,I`m having problem to run an QT application: # error while loading shared libraries: libQt5QuickControls2.so.5: cannot open shared object file: No such file or directory.Please, how can I add it to image ? Thanks [ ]
I see below that an OpenAmpFreeRtos_Echo sample for STM32Cube was created which loads FreeRtos on the M4 and communicates via OpenAmp:https://community.st.com/s/question/0D50X0000BI0vctSQB/freertos-does-not-run-on-stm32mp1-m4-core?t=1615759904082 Does a similar demo exist for NuttX? Or, is a similar demo coming for OpenAmp and NuttX on the M4?https://cwiki.apache.org/confluence/display/NUTTX/NuttX+And+OpenAMP?preview=/152112290/152112291/OpenAMP.pdf
I am evaluate the STM32MP157C-DV2 board.I tried to disable the automatic start of the weston service by referring to the wiki below.https://wiki.st.com/stm32mpu/wiki/How_to_stop_and_start_Westonroot@stm32mp1:~# systemctl disable weston@root.serviceroot@stm32mp1:~# rebootbut it does not work properly.Still the weston service will run automatically and a demo application will appear.Status is static after disable as shown below.root@stm32mp1:~# systemctl disable weston@root.serviceroot@stm32mp1:~# systemctl status weston@root.service[[0;1;32m*[[0m weston@root.service - Weston Wayland Compositor (on tty7) Loaded: loaded (/lib/systemd/system/weston@.service; static; vendor preset: disabled) Active: [[0;1;32mactive (running)[[0m since Fri 2021-03-05 06:00:23 UTC; 16min ago Main PID: 3884 (weston) Memory: 792.0K CGroup: /system.slice/system-weston.slice/weston@root.service &nbs
Hello,My app running on M4 uses adc. It starting at kernel boot process using systemd. After some time kernel poweroff vdda and vref while my app is running[ 14.173564] remoteproc remoteproc0: powering up m4[ 14.308543] remoteproc remoteproc0: Booting fw image OpenAMP_TTY_echo_CM4.elf, size 2541404[ 14.361095] virtio_rpmsg_bus virtio0: rpmsg host is online[ 14.370223] virtio_rpmsg_bus virtio0: creating channel rpmsg-tty-channel addr 0x0[ 14.389900] mlahb:m4@10000000#vdev0buffer: registered virtio0 (type 7)[ 14.399505] rpmsg_tty virtio0.rpmsg-tty-channel.-1.0: new channel: 0x400 -> 0x0 : ttyRPMSG0[ 14.408052] remoteproc remoteproc0: remote processor m4 is now up[ 14.422284] virtio_rpmsg_bus virtio0: creating channel rpmsg-tty-channel addr 0x1[ 14.455735] rpmsg_tty virtio0.rpmsg-tty-channel.-1.1: new channel: 0x401 -> 0x1 : ttyRPMSG1[ 34.411305] vref: disabling[ &
hi i am using stm32mp157caa3, there is a i2c slave operating at 3v3, while design, we have not connected( "forget")pull up line on i2c clk and data line, so i tried enabling open-drain internal pull up in dtsi , but i2cdetect is not able to find the slave devicedtsi : pins { pinmux = <STM32_PINMUX('H', 11, AF5)>, /* I2C1_SCL */ <STM32_PINMUX('B', 9, AF4)>; /* I2C1_SDA */ bias-pull-up; drive-open-drain; slew-rate = <1>; &n
I am facing a freeze on M4 and A7 core when enabling FreeRTOS with OpenAMP_TTY_echo example.Can someone please point out if OpenAMP and FreeRTOS can be run together or not?
I want to use i2c-2 and i2c-6 from the user space to access different external devices. With 'i2cdetect -l' I can see the interfaces, But executing 'i2cdetect 3' sais 'Bus busy'.Used HW: Phytec Sabre Board (phyBOARD-Sargas)Linux: Yocto-OpenSTLinux PD20.2.0Executed command that results in error:root@phycore-stm32mp1-3:~# i2cdetect -l i2c-3 i2c STM32F7 I2C(0x5c009000) I2C adapter i2c-1 i2c STM32F7 I2C(0x40013000) I2C adapter i2c-2 i2c STM32F7 I2C(0x5c002000) I2C adapter i2c-0 i2c STM32F7 I2C(0x40012000) I2C adapter root@phycore-stm32mp1-3:~# i2cdetect 3 WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-3. I will probe address range 0x03-0x77. Continue? [Y/n] 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- [ 217.031102] stm32f7-i2c 5c009000.i2c: bus busy [ 217.034098] stm32f7-i2c 5c009000.i2c: Trying to recover busFor /dev/i2c-0 and /dev/i2c-2 the command i2cdetect works as expected. But not for the newly added /dev/i2c-1 and /dev/i2c-3.R
Previous kernel versions had support for the STM32MP1 internal temp sensor. See:stm32mp1-adc-temp definition in stm32mp157c device treeDT bindings documentationApparently this has been removed in later kernels. Isn't this supported anymore ?Thanks,Guillermo
Hello STM Community,I am following the workshop STM32Cube.AI workshop with my STM32MP157C-EV1 https://www.youtube.com/watch?v=k8AAr84z27s&list=PLnMKNibPkDnEOUdTXlDH7yWN6qyxXPsEb&index=9&t=8m15s When I analyze the model I get the error "Required Ram or Flash size for asc is bigger than available Ram or Flash�? (where >asc< is the name of my model), with resources required for the model: “Flash occupation: 15.90 KiB�? and “RAM: 20.64 KiB (128.00 KiB present)�?. So the RAM is not the problem. I get the feeling, that it has no allocated Flash. How do I declare which Flash storage to use? In the advanced settings, I can set “use external Flash�?, but I do not get how to use it and if I have to use it. Is there any good tutorial?I tried different Networks, like the HAR-CNN-Keras from the 'getting started', but that is an even bigger Network.Tried the STM32MP157C-EV1 in engineering boot mode (B 0 0 1) and boot from microsd (B 1 0 1)Used Software: 1.Windows 10 using STM32Cube
Hello all, I managed to enter the DFU mode by rebooting the SoC from the command line after setting the proper tamper register to get the Uboot to select my desired USB boot mode. After flashing the new image with the STM32CubeProgrammer I would like to be able to reboot the SoC again without having to do press physically the reset button or have to type the reset command inthe Uboot with a STLink console. I see in the wiki that the proper configuration of the tsv file should be able to trigger a RESET PhaseID (0xFF) but I have no clue on how to do it. I entered the line "- 0xFF reset Binary none 0x0 arm-trusted-firmware/tf-a-stm32mp157c-demo-logic-analyser-mx-serialboot.stm32" at the end of my tsv file but it does not do the trick. By checking the stm32prog.c source code it seems that that PhaseID is unusable and will only be triggered in case of an error ocurring
Follow the steps below:https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Modify,_rebuild_and_reload_the_Linux%C2%AE_kernelMy system : Windows 10 + VMware +Ubuntu 18.04*******************************************************************~/STM32MPU_workspace/STM32MP15-Ecosystem-v2.0.0/Developer-Package/stm32mp1-openstlinux-5.4-dunfell-mp1-20-06-24/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.4.31-r0/linux-5.4.31$ make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040scripts/kconfig/conf --syncconfig Kconfig SYSHDR arch/arm/include/generated/uapi/asm/unistd-common.h SYSHDR arch/arm/include/generated/uapi/asm/unistd-oabi.h SYSHDR arch/arm/include/generated/uapi/asm/unistd-eabi.h HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o HOSTCC scri
I got my STM32MP157A-DK1 load STM32MP15-Ecosystem-v2.1.0/Starter-PackageUsing iPerf3 for UDP speed test, but only achieved around 345Mbps.Made sure the cable, labtop NIC, switch are compatible with Gigabit. Attching board eth0 configSettings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: Symmetric Receive-only Supports auto-negotiation: Yes&nbs
Please refer to the release note for more information: STM32MP15 distribution for Android release note - v2.0.0
i ask if possible to install linux on my board stm32h745i-disco , if yes .... is there link or material to explain steps ?
I'm trying to use PA10 to drive a simple LED (custom board), but the I/O doesn't switch at all.PA10 is not used in any of the device trees. gpioinfo gpiochip0reports the I/O as "unused" and "output", but switching the I/O with gpioset gpiochip0 10=1doesn't work. The voltage on the pin stays at 1.7V.PA10 can also function as OTG_FS_ID or OTG_HS_ID, so maybe this causes problems? I do not use USB in my kernel device tree.
I'm working on project that is including ADC, timers and virtual UART. I'm working on STM32MP157C-DK2 board. So I started from example OpenAMP_FreeRTOS_echo from CubeMP1 software package v1.2.0. I'm using CubeIDE v1.4.0. When I reboot STM32MP1 and debug for the first time after reboot, and place breakpoint into HAL_TIM_PeriodElapsedCallback function in which HAL_IncTick is called, everything is fine and the program is stopping here. Problem is that when I debug for the second time (and software on M4 is stopped before 2nd debug) program is not stopping on breakpoint and the HAL tick is not getting incremented. The code is not being modified, it is the same as in examples. On boot I choose the device tree number 3 which is used for M4 examples. Question is why is this happening and do I need to reboot the board every time I want to debug?Thanks in advance,Nenad
I am working on developing firmware to run on the M4 coprocessor and I have been trying to do some basic testing using my own code and the OpenAMP_TTY_Echo example. I am debugging on an stm32mp157c-dk1 and I am using STM32CubeIDE. This issue is also occurring on a dk2. I noticed that it freezes after the function call MX_OPENAMP_Init(RPMSG_REMOTE,NULL);Here is the call stack: My issue appears to be identical to this issue posted a while back. I don't have the "PeriphCommonClock_Config" function mentioned and I am unable to remove rsc_table.c as openamp.c depends on it. Additionally the project by default includes STM32MP157CXX in the preprocessor directives, so I am unsure of what else I can do to alleviate this issue. Is it an issue that I am in engineering boot mode? Any guidance would be greatly appreciated.
Hello,I'd like use several gpio buttons to onboard CN2 connector (STM gpios PF0, PF1, PF3, PF4, PF6, PF8). So I've add following string to stm32mp157c-dk2.dts filebuttonkeys { compatible = "gpio-keys"; left-key { label="Left key"; gpios=<&gpiof 0 GPIO_ACTIVE_LOW>; linux,code=<105>; };evtest gives me multiple events (press/release) when key not pressed. So what is cause of this and how to correct add gpio processing?Thanks,Alex
I am following the link https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let%27s_start/Execute_basic_commandsi have connected the board to a LAN and the following result is obtained:Why don't i see the "inet xx.xx.xx.xx/xx brd xx.xx.xx.xx scope global dynamic eth0" feild?
I am building uboot spl for DDR testing of a custom board based on the STM32MP157FAD1 MPU. The design uses I2C6 to communicate with the PMIC. The following error occurs: "stm32mp1_clk_get_id: clk id 142 not found". Any suggestions on why the I2C6 clock is "not found" would be appreciated.I2C4/6 are configured for HSI.Full console output:U-Boot SPL 2020.01-stm32mp-r2 (Jan 07 2021 - 16:14:48 -0500)Model: STMicroelectronics custom STM32CubeMX boardstm32mp1_clk_get_id: clk id 142 not foundboard_init_f: probe failed clk=0 reset=0 pinctrl=0 power=-22RAM: DDR3-DDR3L 16bits 533000Khzstm32mp1_clk_get_id: clk id 142 not found0:DDR_RESETDDR>
Hello,I have a custom board with an eMMC on it and with no SD card available. In the U-Boot device tree I have the following line (On sdmmc2 is my eMMC):aliases{ mmc0 = &sdmmc2; };The U-Boot seems to partly have a problem with it. Commands like "mmc write" or "mmc info" use the MMC Interface 0 - they set "curr_device" to 0 by default (unless I use "mmc dev 1"). And this is not a problem.However, the MMC environment works with MMC interface 1, which leads to failures. What I find the most weird is the following function in the mmc.c file:static int env_mmc_save(void) { ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1); int dev = mmc_get_env_dev(); ... }The variable dev in the line 4 is always 1, I guess since the eMMC is set as boot instance 1.To sum up: The MMC functions work by default with mmc 0, the env MMC works by defalt with mmc 1.PS: I could maybe use the MMC 1 and use the 'mmc dev 1' at the beginning, but the STMCubeProgrammer cannot flash the devce as it comes with an error
Hi,I am trying to use a STM32MP157C in combination with a lan9303 chip in mdio mode.when booting I get an error that says:LAN9303_MDIO: probe of stmmac-0:01 failed with error -22This prevents the driver from being loaded succesfully.I added the lan9303 according to the device tree bindings:&ethernet0 { status = "okay"; pinctrl-0 = <&ethernet0_rmii_pins_a>; pinctrl-1 = <&ethernet0_rmii_pins_sleep_a>; pinctrl-names = "default", "sleep"; phy-handle = <&switch>; phy-mode = "rmii"; max-speed = <1000>; mdio0 { #address-cells = <1>; #size-cells = <0>; switch: switch-phy@1 { compatible = "smsc,lan9303-mdio"; reg = <0>; ports { #address-cells = <1>; #size-cells = <0>; port@1 { reg = <0>; label = "cpu"; ethernet = <&ethernet0>; phy-mode = "rmii"; fixed-link { full-duplex
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.