Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
Hello there,I have been trying to compile the newest release 2.0.0, first with some extra packages and also without them, but at around 90% the compilation process fails with following error:ERROR: Task (/home/paradox/Desktop/workspace/openstlinux-5.4-dunfell-mp1-20-06-24/layers/meta-openembedded/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb:do_configure) failed with exit code '1'I am running the newest Ubuntu 20.04 LTS, which is not under officially supported distributions, however I don't believe that it is the real cause of the problem.EDIT: It seems like it was really the 20.04 Ubuntu being an issue. The package was successfully built on the older 18.04, so my updated question is, will there be support for the newest Ubuntu version 20.04 and if so, approximately when could we expect it to be available?
I'm trying to run STM32MP1 with two CAN FD drivers connected to PD0/1 and PB5/13.I have connected saleae analyzer to all four TX, RX lines and there is no changes during candsend command. I got only " write: No buffer space available" message.How to properly run CAN bus on STM32MP1 ?root@txmp-1530:~# ifconfig -a can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 NOARP MTU:16 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:10 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:51 can1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 NOARP MTU:16 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:10 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:53 root@txmp-1530:~# ip link set can0 type can bitrate 125000 root@txmp-1530:~# ip link set can0 up root@tx
If I configure SAI 2 in cubeMX I get a greyed out option that the synchronous slave is not available unless I have one SAI as master, but I have set SAI A as master (or master with master clock out). So what am I doing wrong?It doesn't matter if I configure it for the A7NS or the cortex-m4, the option is greyed out.The pins are available for both the SAI2 A/BIs this a limitation of cubeMX? Or am I missing something?Thanks, Robert
For STM32MP1 device we can able to check the M4 device in keil 5 . We are un able to get the cortex A7 device . Can you please suggest the supported IDe for A7. We don't want to use the os We want to use freeRtos.
is there a way to tell the kernel (I'm using the Distribution Package) to use a specific pin (not the built-in DE signal) to control the Data Enable of an rs485 transceiver whenever I write something to the related tty?
NOTE: Executing SetScene TasksNOTE: Executing RunQueue TasksERROR: u-boot-stm32mp-extlinux-2.0-r0 do_create_multiextlinux_config: Error executing a python function in exec_python_func() autogenerated:The stack trace of python calls that resulted in this exception/failure was:File: 'exec_python_func() autogenerated', lineno: 2, function: <module> 0001: *** 0002:update_extlinuxconf_targets(d) 0003:File: '/home/horner/GIT_TEST/yocto/warrior_2.7.1/sources/meta-st-stm32mp/classes/extlinuxconf-stm32mp.bbclass', lineno: 122, function: update_extlinuxconf_targets 0118: continue 0119: for devicetree in devicetree_list.split(): 0120: bb.note('*** Loop for devicetree: %s' % devicetree) &n
I am trying to add nodejs to the distribution. Nodejs recipe is alreaddy present in the layers but whn i bitbake the recipe there is a very long error, hence i am not able to build it. i have seen the recipe and the compatible machines are defined as COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*" COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*" COMPATIBLE_MACHINE_mips64 = "(!.*mips64).*"is this something related to this? how can i add the nodejs as well as npm in my yocto os?
Hi,I'm getting errors when building the latest kernel for Developer-Package's linux-5.4.31. (Please see error below). Anyone else successfully built this version?/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/scripts/dtc/yamltree.c:9:10: fatal error: yaml.h: No such file or directory #include <yaml.h>
Hello,We are considering the STM32MP151x MPU for a new project. However we need at least 20 independent PWM outputs (at the same frequency but different duty cycle). After reading the datasheet, it is still not clear to me how many PWMs STM32MP151x has.TIM1, TIM8 ==> 2 x 6 independent channels (at the same frequency) ?TIM2, TIM3, TIM4, TIM5 ==> 4 independent channels ?TIM13, TIM14, TIM16, TIM17 ==> 4 independent channels ?TIM12, TIM15 ==> 4 independent channels ?Total 24, am I right ?ThanksHugo
smt32mp157a-dk1/c-ev1 boards. When BOOTSCHEME_LABELS (stm32mp1-eval.conf) is changed from "trusted" to "basic" the build of u-boot-stm32mp recipe fails. Ecosystem 1.2.0 .
Hi everyone, i am trying to run Distribution package from the STM on UBUNTU. It works fine with normal source command and make a build directory just by the folder of 'layers'. but how can i add my own build directory e.g. /mybuild/build_folder? I have tried the BUILD_DIR="dir" but it doesnt work and gives an error of ..[source layers/openembedded-core/oe-init-build-env][from nothing]Error: TEMPLATECONF value points to nonexistent directory '../../../layers/meta-st/meta-st-openstlinux/conf/template'
Hi,I execute the following commands according to the wiki:(I am sure accept the EULA)PC $> DISTRO=openstlinux-eglfs MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.shPC $> bitbake st-example-image-qtThe following is part of the terminal output :(bitbake st-example-image-qt)NOTE: Executing Tasks 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 '../openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/tf-a-stm32mp/2.2.r1-r0/temp/run.do_compile.12684' failed with exit code 1: make: Entering directory '../openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work-shared/stm32mp1/tfa-source' make: *** No targets specified and no makefile found. Stop. make: Leaving directory '../openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work-shared/stm32mp1/tfa-source' WARNING: exit code 1 from a shell command.
The program can not be uploaded under the dunfell distribution via CUBEIDE 1.3.1 to the target system. Using the thud distribution, target uploads works.Are there any hidden upload scripts in the CUBEIDE - how to debug the debug upload?Which yocto packages are necessary to cooperate with the CUBEIDE?
Hi allI want to implement dual display using STM32MP157C chip and OpenSTLinux system.Is it possible to implement dual display using MIPI DSI / LTDC / HDMI-CEC?If you know the answer above, please reply.RegardsMachilus
I am testing Ethernet on the STM32MP1 (on both the EV1 and DK2 eval boards) and seeing slow link up times when the board is connected to a Gigabit Ethernet switch. Here's an excerpt from the dmesg traces showing link up times of 6-7 seconds:[ 8.931934] Generic PHY stmmac-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=stmmac-0:00, irq=POLL) [ 8.952777] dwmac4: Master AXI performs any burst length [ 8.956664] stm32-dwmac 5800a000.ethernet eth0: No Safety Features support found [ 8.964160] stm32-dwmac 5800a000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported [ 8.972895] stm32-dwmac 5800a000.ethernet eth0: registered PTP clock [ 14.169871] stm32-dwmac 5800a000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/txSince my application does not really need Gigabit Ethernet, I tried limiting the speed to 100 Mbps in the device tree, as described here: https://wiki.st.com/stm32mpu/wiki/Ethernet_device_tree_configurationHowever the results are still similar; typical li
Apparently it is not possible to set a custom baud rates for UARTs on the STM32MP1.ioctl TIOCSSERIAL fails. With a USB UART dongle that supports custom baud rates this works. Is there a something that can be changed in the device tree or config to enable custom baud rate support on the STM32MP1 U(S)ARTS ? The base rate seems 4MHz so that should be sufficient for several custom baud rates. Looked at stm32-usart.c but did not find supporting code. Custom baud rate is crucial as the serial device connected must be used with a non standard baud rate. Edit: after looking at stm32-uart.c it seems it is not supporting ioctl. Adding this support looks to be pretty straightforward by adding the ioctl call and the 2 or 3 needed functions to set and get the user info together with the magic baudrate hack. The driver seems to use uart structure instead of the tty structures so I did not get far changing the driver.. A developer familiar with the driver probably could do this in a day. If STM
Hello,I am currently initializing my STM32MP157CAC3 (TFBGA361) with CubeMX.The processor's datasheet lists USB_OTG_FS functionality as additional functions on PA11 / PA12 but there is no such selection inside CubeMX. In general, there is no USB_OTG_FS functionality listed (only USB_OTG_HS, which I can't use because the pins are already used by USB_HS2).Is it possible to configure this peripheral inside CubeMX?MPU: STM32MP157CAC3CubeMX Version: 5.6.0.202002181639MPU Firmware Package: V1.2.0
Hi,we were facing trouble booting the Ecosystem 2.0 with the new U-Boot (v2020.01-stm32mp-r1). We are using buildroot as the tool to build our distribution. With the Ecosystem 1.2 we could build everything perfectly and the booting was fine too. We used your Github to get the sources for the trusted boot chain (TF-A, OP-TEE, U-Boot, Kernel).Recently we migrated to the new Ecosystem 2.0. When using the sources from your github directly we encountered two problems:The Kernel wasn't able to load. The problem was a wrong .config file. We used your release from the wiki (the archive file with the patches) to reconstruct the .config file from that. With this new .config file it worked, the kernel got loaded. Just want to point out, that using the 'default' .config file from your github didn't work for us in case it is meant to work straight away.The other problem we were facing is that the U-Boot did write the environment variables to the MMC (we have a DK2 board so in that case to the SD ca
Hardware: STM32MP157C-DK2, VL6180 breakout from SparkfunSoftware: CubeMX IDE (1.3.0), buildroot (following the guide from Bootlin here)I'm trying to use the M4 core to communicate with an I2C sensor. I successfully talked with the sensor on the Linux side so I'm confident the wiring and hardware is good.I edited the DTS to enable the m4_i2c5 per the example provided by ST. &m4_i2c5 { pinctrl-names = "rproc_default"; pinctrl-0 = <&i2c5_pins_a>; status = "okay"; };I've also tried many variations of the following, with and without pinctrl statements:&i2c5 { status = "disabled"; }; &m4_i2c5 { status = "okay"; };From CubeMX IDE:Main initialization and while(1):/* Initialize all configured peripherals */ MX_GPIO_Init(); MX_I2C5_Init(); /* USER CODE BEGIN 2 */ gpio_init_structure.Pin = GPIO_PIN_7 ; gpio_init_structure.Mode = GPIO_MODE_OUTPUT_PP; gpio_init_structure.Pull = GPIO_PULLUP; gpio_init_structure.Speed = GPIO_SPEED_FREQ_VERY_HIGH; HAL_GPIO_Ini
Hi,we are currently evaluate the STM32MP for a project and we want to ensure that we can handle all errataissues that concern our usage scenario.In Errata are the points: 2.6.1 to 2.6.4 that discribe DMAMUX issues. At this point my question is:Does Linuxdrivers use the DMAMUX module in STM32MP1 ?We dont find any codesnipets where the kernel is manipulating registers with this module.Best regards,Niklas
Hello guys.I am proceeding in the manner provided on the WIKI page(https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package).However, the following problems still occur in Step 6.[error codes]-----------------------------------------------------------------------------------------------------------------------WARNING: iso-codes-4.4-r0 do_fetch: Failed to fetch URL git://salsa.debian.org/iso-codes-team/iso-codes.git;protocol=http, attempting MIRRORS if availableERROR: iso-codes-4.4-r0 do_fetch: Fetcher failure: Unable to find revision 38edb926592954b87eb527124da0ec68d2a748f3 in branch master even from upstreamERROR: iso-codes-4.4-r0 do_fetch: Fetcher failure for URL: 'git://salsa.debian.org/iso-codes-team/iso-codes.git;protocol=http'. Unable to fetch URL from any source.ERROR: Logfile of failure stored in: /home/parksh/STM32MPU_EV1_Workspace/SDK/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/all-ostl-linux/iso-codes/4
Echo demo application works fine, but when launching ADC example it fails after transferring the elf.Windows host. DK2 board./Peter
..
Hi All,I'm coding last from 6 years for embedded system projects. I have good knowledge in bare metal programming. I want learn Linux and device driver implementation using Linux.Please suggest me a board, with which I can start my Linux learning journey. Thanks,Basava
Hi, I have an STM32MP157C-DK2 reference board and it is booting with yocto linux.From the bootlog I came to know that reset reason is checked in the Primary Bootloader by reading a register from the file tf-a-stm32mp/plat/st/stm32mp1/bl2_plat_setup.c uint32_t rstsr = mmio_read_32(stm32mp_rcc_base() + RCC_MP_RSTSCLRR); Now I want to know the reason in the uboot level before lauching the kenel image to add an extra environmental variable in uboot.I tried to read the register using readl(),_raw_readl() API's but I was throwing data abort error while booting and the board gets reboot.So I need help w.r.t the way to read register or any other way to get the reset reason information.RegardsSrikanth.
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.