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 all,I have configured TIM1_CH3N as a pwm channel.I am trying to do some PWM functionality here.I am following current tutorial here. When i tried to provide a period of 10 sec it fails to take up the value. I get following error :root@stm32mp157a-visionsom-rgb-emmc-mx:/usr/local/firmware_demos# echo 10000000000 > /sys/class/pwm/pwmchip4/pwm2/duty_cycle pwm2 sh: write error: Invalid argument100000000Is there some limit to what value we can provide here?
Recompiling Linux kernel I have to rebuild the whole image because of kernel-modules, that are dependent on kernel version. After that I have to upload the whole image into STM development board via CubeMX Programmer which takes quiet a lot time. How can I recompile only kernel modules package so that I can deploy it into target with kernel itself, install (via package manager) and get new kernel without building and uploading the whole image ?
..
Have been struggling to get SPI to work. I have been working in the engineering boot mode to try and trouble shoot my issues. I have configured PLL3 to run the MCU at 48MHz and the SPI peripheral kernel clk to run at 108MHz and selected the clock sources in the RCC regs accordingly, I have implemented the procedure for configuring SPI in the related section in the reference manual. The GPIO have been configured to their appropriate modes and alternate functions. I have enabled the peripheral bus in RCC.I am able to confirm the register setting via the debugger.However, when I try to send data, I see nothing on the GPIO. I also don't see any flags reported when attempting to overfill the TXFIFO to elicit a response from the peripheral.I am not using the HAL library directly, though I have looked through it to see what I may have missed to no avail.Can anyone let me know if there is another enable bit, power bit or otherwise that I may be overlooking?
Hi again, hope you are having a good day. We are trying to record audio with the integrated audio codec with a python script, but it starts with an abrupt peak every time like the image below.We have tried to configure the alsamixer and nothing changes. Thanks.
I am using 2 virtual UARTs as described in STM32MP1Cube Applications/OpenAMP/OpenAMP_TTY_echo example and watchdog for M4 core.Problem occurs when I using select or poll syscall to read from the device. Kernel panic occurs with following on dmesg log:[ 930.513060] remoteproc remoteproc0: crash detected in m4: type watchdog [ 930.518272] remoteproc remoteproc0: handling crash #5 in m4 [ 930.523785] remoteproc remoteproc0: recovering m4 [ 930.531138] rpmsg_tty virtio0.rpmsg-tty-channel.-1.0: rpmsg tty device 0 is removed [ 930.542605] Unable to handle kernel NULL pointer dereference at virtual address 00000018 [ 930.552002] rpmsg_tty virtio0.rpmsg-tty-channel.-1.1: rpmsg tty device 1 is removed [ 930.558402] pgd = a2d2820b [ 930.560889] [00000018] *pgd=d1832835, *pte=00000000, *ppte=00000000 [ 930.570663] Unable to handle kernel NULL pointer dereference at virtual address 00000018 [ 930.578406] rpmsg_tty virtio0.rpmsg-tty-channel.-1.2: rpmsg tty device 2 is removed [ 930.586506] pgd = a2
Hello!I have an issue on a custom board with STM32MP153CAB and KSZ8081RNB.TF-A, FIP and kernel were built in Developer package. Linux distribution was built as startard configuration st-image-core in Distribution package.Clocks and device trees are configured like specified in https://wiki.st.com/stm32mpu/wiki/Ethernet_device_tree_configuration#RMII_with_25MHz_on_ETH_CLK_-28no_PHY_Crystal-29-2C_REF_CLK_from_PHY_-28Reference_clock_-28standard_RMII_clock_name-29_is_provided_by_a_RCC_SoC_internal_clock-29Here are fragments of device tree for U-Boot and kernel (generated by STM32CubeIDE and manually edited):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', 8, AF2)>, /* ETH1_CLK */ <STM32_PINMUX('G', 13, AF11)>, /* ETH1_TXD0 */ <STM32_PINMUX('G', 14, AF11)>; /* ETH1_TXD1 */ bias-disable; drive-push-pull; slew-rate = <
I'm using STM32MP157A-DK1 development board, in this we are using it for audio application,I'm porting stlinux in the board by yocto BSP.I wanted to know the codec(CS42l51) available on the board at what default clock it is operating and is it using software clock or hardware clock.And if it is Software what are the files responsible for clock freq. change.and also what is the method to change the clock from internal to external and vice versa.
The gcc variant in STM32MPU Embedded Software distribution components is 'arm-ostl-linux-gnueabi-gcc'. Then what's the difference between 'arm-ostl-linux-gnueabi-gcc' and 'arm-none-linux-gnueabi-gcc'?Thanks.
I am building softwares for my cutom board based on STM32MP1 using OpenSTLinux. I get lot of kernel-module-* packages installed in the rootfs. I found they are build because fragment-03-systemd.config is added to kernel config if systemd is used.Can you explain why all theses modules are added and if they are really needed ? Can I simply remove fragment-03-systemd.config or should I edit it ?Many thanks in advance
i‘m not using qt or other 3rd gui framweork, no weston, no x, just direct use drm api,i need switch off lcd after some time is not operated,i google it a while,It looks i need a complete desktop environment to do that,so i want know is any way to do that easily.now i can simply switch off backlight to look like the lcd is off
Hi All,i am getting kernel soc sgtl5000.c errorsgtl5000 0-000a: Error reading chip id -6any idea where am i missing , let me know if you need any further inputs&i2c1 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&i2c1__pins_a>; pinctrl-1 = <&i2c1_sleep_pins_a>; /*i2c-scl-rising-time-ns = <185>; i2c-scl-falling-time-ns = <20>;*/ clock-frequency = <400000>; status = "okay"; /delete-property/dmas; /delete-property/dma-names; sgtl5000: codec@0a { compatible = "fsl,sgtl5000"; reg = <0x0a>; #sound-dai-cells = <0>; //clocks = <&clk_ext_audio_codec>; clocks = <&i2s1>; &nbs
I have set :hostname_pn-base-files = "new_host_name"in my conf file.This seems changing /etc/hostname in base-files image. However, there is log message telling:"[ 7.249795] systemd[1]: Set hostname to <stm32mp1-disco>."Also, /etc/hosname contents is "stm32mp1-disco".I can't find what other recipe/module is dealing with hostname settings.
Hi ST!I am working with Rust on your STM32MP157. While we have this working already, this is cumbersome as we have to figure all register addresses and layouts manually. Normally, in Rust, we parse the SVD file corresponding to a chip and go from there which is a huuuge improvement to doing everything manually. Unfortunately the SVD files available for the STM32MP157 are highly incomplete and wrong at times. Could you please fix & update the SVD files? Thanks a lot!Best,Noah
ST provides eMMC partitions (besides fsbl and u-boot) : boot, root, vendor, user.I need new partition /home and want removing vendor partition.How can I get this customization ?
I have a DK1 and have wired to UART7, and got UART7 working by grafting this section (by using the CubeMX tool latest version as of a few days ago) into the existing st32mp157d-dk1.dts and rebuilding. (The real product is intended to use UART7.)===aliases { serial0 = &uart4; serial1 = &usart3; serial2 = &uart7; }; uart7 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&uart7_pins_mx>; pinctrl-1 = <&uart7_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN uart7 */ /* USER CODE END uart7 */ }; pinctrl { uart7_pins_mx: uart7_mx-0 { pins1 { pinmux = <STM32_PINMUX('E', 7, AF7)>; /* UART7_RX */ bias-disable; }; pins2 { pinmux = <STM32_PINMUX('E', 8, AF7)>, /* UART7_TX */ <STM32_PINMUX('E', 9, AF7)>; /* UART7_DE */ bias-disable; drive-push-pull; slew-rate = <0>; }; }; uart7_sleep_pins_mx: uart7_sleep_mx-0 { pins { pinmux = <STM32_PINMUX('E', 7, ANALOG)>, /* UART7_RX */ <STM32_PINMUX('E', 8, ANALOG)>, /* UART7_TX */ <STM
Hi,I am working with the STM32MP157c-DK2. All examples are working fine, but now I would like to use custom code. I generated some code using CubeMX for the development board. I used the default settings and enabled FreeRTOS additionally. I compiled the generated device tree file and pushed it to the board. Afterwards, I booted Linux on the A7 processor and launched my compiled FreeRTOS code on the M4 processor using remoteproc. The application crashed. I used the eclipse debugger to locate the problem: The application crashes, while trying to start the first RTOS task, when calling the function prvPortStartFirstTask( void ) in port.c. As an error message the deugger gives meError: stm32mp15x.cpu2 -- clearing lockup after double fault Polling target stm32mp15x.cpu2 failed, trying to reexamineI didn´t change a single line in the code generated from CubeMX. Any suggestions why my application crashes? Thank you for your help.Robin
Im trying to integrate the firmware we have developed into our distribution on yocto. The documentation in the wiki [1] isn't really clear in how we add our own firmware to populate the MP1 coprocessor on boot. And the eample projects that the m4project.bb compiles seem to have a very rigid file structure compliant only with CubeMX. [2]STM32 supports the Keil IDE we are wondering how we can use a project such as that in our yocto layer. If anyone has succeeded in this endeavor please let us know.[1]: https://wiki.st.com/stm32mpu/wiki/STM32CubeMP1_Package#Distribution_Package_for_STM32CubeMP1[2]: https://github.com/STMicroelectronics/meta-st-stm32mp/blob/thud/recipes-extended/m4projects/m4projects-stm32mp1.bb
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>; + }; + }; +
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
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, 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.
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
Hi, I need to edit the "stm32mp1.c" file inside the uboot sources, in particular I have to set the following change on line 413:nb_blink = 4; How can I do that on OpenSTLinux (Yocto approach) ?Where is the file and how can I maintain such edit after recompiling the images ?Thank you
I have followed this guide in order to use custom DTS files (followed step-by-step) and the following error occurs, how can I compile without using the op-tee?ERROR: optee-os-stm32mp-3.12.0.r1-r0 do_compile: File /home/ubuntu/customer/openstlinux-5.10-dunfell-mp1-21-03-31/layers/meta-st/meta-st-stm32mp-addons/mx/DK2_A7/optee-os/stm32mp157c-dk2_a7-mx.dts not found: compilation aborted for optee-os-stm32mp device tree. ERROR: Logfile of failure stored in: /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/optee-os-stm32mp/3.12.0.r1-r0/temp/log.do_compile.18640 ERROR: Task (/home/ubuntu/customer/openstlinux-5.10-dunfell-mp1-21-03-31/layers/meta-st/meta-st-stm32mp/recipes-security/optee/optee-os-stm32mp_3.12.0.bb:do_compile) failed with exit code '1'I've inserted into my machine folder (DK2_A7) the following, populated, folders:u-bootkerneltf-aAs the linked guide suggests, there is no optee-o
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.