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 Friend,I am trying to configure I2C on the STM32MP157 evaluation board to use I2C5 in master transmitter mode. However, I'm having trouble sending the address because the start bit is not being set. Could someone please help me?Also which register has to check slave address ackno.?? GPIO , Pin, I2C configuartion code ://----------------------I2C5----------------------/*---------------------PIN CONFIGURATION-----------------*/ // 1. Enable the I2C CLOCK and GPIO CLOCK --I2C5 ---PA---- SDA-12, SCL -11RCC->MC_AHB4ENSETR |= (1<<0); //Enable clock of portARCC->MC_APB1ENSETR |= (1<<24); //Enable clock for i2c 5 // 2. Configure the I2C PINs for ALternate Functions// a) Select Alternate Function in MODER Register GPIOA->MODER |= (1<<23); //PA11-----10GPIOA->MODER &= ~(1<<22); GPIOA->MODER |= (1<<25); //PA12-----10GPIOA->MODER &= ~(1<<24); // b) Select Open Drain OutputGPIOA->OTYPER |=
Hi!When I launch apt-get update I got this E/TC:0 dump_fail_filter:420 Permission violation on filter 0 E/TC:0 dump_fail_filter:425 Violation @0xdf800000, non-secure privileged read, AXI ID 4a0 E/TC:0 tzc_it_handler:79 TZC permission failure E/TC:0 dump_fail_filter:420 Permission violation on filter 0 E/TC:0 dump_fail_filter:425 Violation @0xdf800000, non-secure privileged write, AXI ID 480 E/TC:0 tzc_it_handler:79 TZC permission failure E/TC:0 dump_fail_filter:420 Permission violation on filter 0 E/TC:0 dump_fail_filter:425 Violation @0xdf800020, non-secure privileged read, AXI ID 4a0 E/TC:0 tzc_it_handler:79 TZC permission failure E/TC:0 dump_fail_filter:420 Permission violation on filter 0 E/TC:0 dump_fail_filter:425 Violation @0xdf800040, non-secure privileged read, AXI ID 4a0 E/TC:0 tzc_it_handler:79 TZC permission failure E/TC:0 dump_fail_filter:420 Permission violation on filter 0 E/TC:0 dump_fail_filter:425 Violation @0xdf80008
The Linux version I am using is 6.1.28, and my power management is a discrete component. "VDD_CORE" is actually 1.212V, and in the device tree it looks like this: vddcore: regulator-vddcore { compatible = "regulator-fixed"; regulator-name = "vddcore"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1350000>; regulator-always-on; regulator-boot-on; };If I follow the above settings, my "/sys/devices/system/cpu/cpufreq/" will be empty, but if I change the 1200000 in "regulator min microvolt=<1200000>;" to 1350000, it will be normal. Why is this?
Hi ,I try to connect my Pendrive to USB Hub port, but it is not connecting, when ever i remove the touch panel from the slot, then my Pendrive detected . i am using the stm32mp157f-dk2 (custom board ). after removing touch panel, my Pendrive detected.and when I plugin the touch panel, then my Pendrive not detected to USB port, i check it with different pendrive but the same result i got.Note: USB hub and touch panel both are connected with same I2C1 pin, why this issue ?
Hi!I notice one thing when I build my STM32MP151 custom board and implemented OpenSTLinux with my own .dtb and Linux kernel.I hade enormous issues to get a basic setup of STM32MP151 up and running with Linux. I found out that the Linux kernel is destroying the working queue, which results that the linux kernel halts.I have posted the working custom board for STM32MP151 project here. Give it a star so other knows that this is a working board for STM32MP151.https://github.com/DanielMartensson/STM32-Computer/ Question:When I comment this line in the file kernel/trace/trace.c, my board just works like a charm. So why is it that? I need to disable the destruction of the working queue eval_map_wp in order to make the board lose it's critical errors? static int __init trace_eval_sync(void) { /* Make sure the eval map updates are finished */ if (eval_map_wq){ /*destroy_workqueue(eval_map_wq); */ } return 0; } Feel free to download the gerber files and bui
When enabling the HDMI output for displaying on the screen/TV, one must run the following command modetest -M stm https://wiki.st.com/stm32mpu/wiki/How_to_display_on_HDMIThe tool modetest provided by the libdrm library[3] is useful to: List all display capabilities: CRTCs, encoders & connectors (DSI, DPI, HDMI, ...), planes, modes, etc... Perform basic tests: display a test pattern, display 2 layers, perform a vsync test Specify the video mode: resolution and refresh ratehttps://wiki.st.com/stm32mpu/wiki/DRM_KMS_overview#modetest_.28DRM.2FKMS_test_tool.29Question:I've built a new operate system for STM32MP1https://github.com/danielmartensson/STM32-OSNow I need to install libdrm package for handling the HDMI display connection. Which Ubuntu package should I use to install HDMI connection?https://packages.ubuntu.com/search?keywords=libdrm&searchon=names&suite=noble&section=allIs it libdrm-common or other?
Hello, I am trying to see if I can enable the J1939 protocols on the stm32 mp158d-dk1 board. I used the menuconfig to update the setting. After doing that I updated the uimage, dtb, and modules to the stm32 mp1 device. root@stm32mp1:/# dmesg | grep -i can [ 0.256925] CAN device driver interface [ 0.322146] can: controller area network core [ 0.322257] NET: Registered PF_CAN protocol family [ 0.322272] can: raw protocol [ 0.322285] can: broadcast manager protocol [ 0.322300] can: netlink gateway - max_hops=1 [ 0.322537] can: SAE J1939 [ 2.012003] m_can_platform 4400e000.can: m_can device registered (irq=50, version=32) [ 2.411352] remoteproc remoteproc0: cannot get detach mbox [ 369.920763] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready I can see that SAE J 1939 protocol is active. I used the following headers to read from the linux user land. #include<linux/can/j1939.h> // I got no errors with the header file. #include <
Hi , I'm looking to configure a few GPIO pins on the STM32MP13x processor as wake-up sources. I've referred to the following link:https://wiki.st.com/stm32mpu/wiki/How_to_configure_PWR_Wake-up_pinsI want to configure the GPIO-G7 pin as a wake-up source to bring the system out of deep sleep. The necessary changes have been made in our device tree files.I updated the changes in the device tree file and was able to compile without errors. However, I'm encountering the following errors while flashing the image.--------Logs---------------------------------------I/TC: Non-secure external DT foundI/TC: Embedded DTB foundI/TC: OP-TEE version: 3.16.0-dev (gcc version 11.3.0 (GCC)) #8 Fri Jan 28 02:28:18 PM UTC 2022 armI/TC: WARNING: This OP-TEE configuration might be insecure!I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.htmlI/TC: Primary CPU initializingI/TC: WARNING: All debug access are allowedE/TC:0 0 stm32mp1_pwr_irq_probe:349 Missi
Hello Folks,I am trying to port mainline linux kernel version 6.8 on stm32mp157c-dk2 board.When I flash mainline kernel image on stm32mp157c-dk2 board, kernel is not getting started.Could anyone please guide me here?How we can boot mainline kernel with stm32mp157c-dk2 board device?Any steps that I can follow and achieve booting device.Thanks in advance!
Hi!I'm looking for an alternative Linux OS for the STM32MP1 system. I'm currently using OpenSTLinux, but it's very buggy and have a lack of lots of packages.Can you recommend a Linux OS or that works with 512 MB Ram + 650 MHz CPU?I'm planning to only replace the rootfs folder with the new linux distro.
Hello,I'm starting to port functional code from stm32f7 to stm32mp13. On the F7, I was using FreeRTOS+Lwip+mbedTLS. On stm32mp13, I switched to ThreadX+NetXDuo as it's the only supported stack. For my tests, I used the examples provided by the STM32CubeMP13 and pimped them up on the STM32MP13-DK board.I ran a few tests on both architectures. The TLS connection is established much more quickly with the stm32mp13 than with the stm32f7, which is reassuring :RSA certificate (2048 bits) : 52ms on mp1 VS 1400ms on F7.ECC certificate (secp384) : 700ms on mp13 VS 4000ms on F7.However, when it comes to data transfer after the handshake, I have a ratio of 10. For example, to transfer 340Kb, the mp1 takes 10 sec, while the f7 takes 1.4 sec. For the record, I've done data transfer tests without TLS, and in this case I'm faster with the mp1 than with the f7. So I deduce that the problem comes with the TLS. I don't know whether it's the stack itself or whether I'm misconfiguring NetXDuo.What are the
Hi, I have an STM32MP1 MPU based module running OpenSTLinux.Whenever I press the power button, this gets recorded in journalctl:root@STLinux:~# journalctl --unit systemd-logind --follow-- Logs begin at Fri 2020-02-07 15:50:56 UTC. --Jan 22 15:15:37 STLinux systemd-logind[919]: Session c1 logged out. Waiting for processes to exit.Jan 22 15:15:38 STLinux systemd[1]: Stopping Login Service...Jan 22 15:15:38 STLinux systemd-logind[919]: Removed session c1.Jan 22 15:15:38 STLinux systemd[1]: systemd-logind.service: Succeeded.Jan 22 15:15:38 STLinux systemd[1]: Stopped Login Service.-- Reboot --Jan 22 15:15:45 STLinux systemd[1]: Starting Login Service...Jan 22 15:15:48 STLinux systemd-logind[921]: Watching system buttons on /dev/input/event0 (pmic_onkey)Jan 22 15:15:48 STLinux systemd-logind[921]: New seat seat0.Jan 22 15:15:48 STLinux systemd[1]: Started Login Service.Jan 22 15:15:56 STLinux systemd-logind[921]: New session c1 of user root.Jan 23 07:05:00 STLinux systemd-logind[
I made a custom board with the processor STM32MP151AAC3 and own firmwire https://github.com/DanielMartensson/STM32-Computer/tree/main/STM32CubeIDE/STM32-Computer-Firmware . I have compiled the TF-A by using STM32CubeIDE. It was some bugs with the TF-A configuration, but it seems I fixed them in this thread: Solved: BUG: Label or path X_pins_y not found - Compiling ... - STMicroelectronics Community PANIC at PC : 0x2ffec98b Exception mode=0x00000016 at: 0x2ffec98b I have tried to flash it with firmware of STM32MP157 with another I2C4 pin configuration. And it failed. NOTICE: CPU: STM32MP151AAC Rev.Z NOTICE: Model: STMicroelectronics STM32MP157A eval daughter on eval mother ERROR: I2C device not ready PANIC at PC : 0x2fff101b Exception mode=0x00000016 at: 0x2fff101b Trying the Flashout Delete All DK1 STM32MP157a. Exception mode=0x00000016 at: 0x2fff101b NOTICE: CPU: STM32MP151AAC Rev.Z NOTICE: Model: STMicroelectronics STM32MP157A-DK1 Discovery Board ERROR:
Hello Friends, I started learning programming on the STM32MP157D-DK1 evaluation board. I wrote code to blink the user LED LD6, which is connected to PA13, but the LED did not change its state (BSRR register). Can anyone please help me identify what might be wrong with the code? Code:- void SystemClock_Config(void);static void MX_GPIO_Init(void);int main(void){ HAL_Init(); if(IS_ENGINEERING_BOOT_MODE()){/* Configure the system clock */SystemClock_Config();} MX_GPIO_Init();while(1){GPIOA->BSRR |= (1<<13);HAL_Delay(2000);GPIOA->BSRR |= (1<<29);HAL_Delay(1000);}}void SystemClock_Config(void){RCC_OscInitTypeDef RCC_OscInitStruct = {0};RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; /** Configure LSE Drive Capability*/HAL_PWR_EnableBkUpAccess();__HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_MEDIUMHIGH); /** Initializes the RCC Oscillators according to the specified parameters* in the RCC_OscInitTypeDef structure.*/RCC_OscInitStruct.Os
This is my RAM usage when I run OpenSTLinux on my custom STM32MP151 board with 512 MB RAM.Is that OK?
Dear STM comunity, i am currently trying migrate my solution from the kirkstone to mickledore because it offers more software functions that i need and cant properly use on the kirkstone, i have spent alot of time trying to port the configurations from OSD32MP1F to mickledore via cube mx, here are the device tree, there are alot of differences between versions but overall nothing too diffrent, i managed to compile the image and started flashing , however i don't know what are the issues but i am not able to flash the image due to a panic error leading to flashing halt as shown in the LOG 1 and LOG2 USB speed : High Speed (480MBit/s) Manuf. ID : STMicroelectronics Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000 SN : 004400453230510532393433 DFU protocol: 1.1 Board : -- Device ID : 0x0500 Device name : Device type : MPU Device CPU : Cortex-A7 Start operation done successfully at partition 0x03 Memory Programming ... Opening and
Hi,I am debugging the STM32MP257F-EV1 board with a debugger via JTAG/SWD. The kernel version is 6.1.82.To provide complete debug access and to prevent the JTAG/SWD from shutting down when the CPU is idle, I think [CONFIG_CPU_IDLE] has to be disabled. But, boot messages from the kernel stop midway after [CONFIG_CPU_IDLE] is disabled.I have confirmed that the CPU is still executing through the debugger, but the terminal/prompt is not available.Upon checking. I found that [CONFIG_ARM_PSCI_CPUIDLE] may be the issue. When [CONFIG_CPU_IDLE] is disabled, [CONFIG_ARM_PSCI_CPUIDLE] is automatically disabled as well.Since various devices use the PSCI driver, I think disabling [CONFIG_ARM_PSCI_CPUIDLE] will render some peripherals in non-usable state. Please see the attached log file "Boot-message.log" for the kernel boot messages.In this context, I have the following questions:1. Is there a way to disable CONFIG_ARM_PSCI_CPUIDLE or CONFIG_CPU_IDLE and get the board to work
I tried to install QT apt-get install -y packagegroup-x-linux-qt But I got the error E: Unable to locate package packagegroup-x-linux-qt I have followed thishttps://wiki.st.com/stm32mpu/wiki/X-LINUX-QT_Expansion_Package
Hi!Will/Can OpenSTLinux run/support C++ applications that are made with wxWidgets? If not: Can ST Dev team implement it? wxWidgets is using GTK native widgets on linux. GTK is written in C.I recently found that wxWidgets isin't so bad after all, compared to other large frameworks.Check out this ultra pedagogical GUI tutorial for C++.https://www.youtube.com/watch?v=BjQhp0eHmJw&list=PLFk1_lkqT8MbVOcwEppCPfjGOGhLvcf9G&index=1
Hello,I am facing the issue below when build up my image (or u-boot-stm32mp alone)I mainly followed instructions in https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Distribution_Package.But it did not work.make -f /home/luisa/dev/st/st_distro/stdistro/build-try-test1/tmp-glibc/work-shared/stm32mp151a-bitron-som/uboot-source/scripts/Makefile.build obj=arch/arm/dts dtbstest -e arch/arm/dts/stm32mp151a-bitron-som-mx.dtb || ( \echo >&2; \echo >&2 "Device Tree Source (arch/arm/dts/stm32mp151a-bitron-som-mx.dtb) is not correctly specified."; \echo >&2 "Please define 'CONFIG_DEFAULT_DEVICE_TREE'"; \echo >&2 "or build with 'DEVICE_TREE=<device_tree>' argument"; \echo >&2; \/bin/false)My .dts filestm32mp151a-bitron-som-mx.dts stm32mp151a-bitron-som-mx-u-boot.dtsiare below my building path <builddir>/tmp-glibc/work-shared/stm32mp151a-bitron-som/uboot-source/arch/arm/dts and are as the ones below my mx/bitron_som_20634519_06/
I have compiled tf-a, optee, kernel and u-boot inside STM32CubeIDE.I have copy over the uImage from the linux build/arch/arm/boot/ and the .dtb file as well. They have been copied over to st-image-bootfs-openstlinux-weston-stm32mp1.ext4 file. I'm only changing the st-image-bootfs-openstlinux-weston-stm32mp1.ext4 file from the Starter Package form STM32MP1 series. The rest e.g st-image-weston-openstlinux-weston-stm32mp1.ext4, st-image-vendorfs-openstlinux-weston-stm32mp1.ext4 and st-image-userfs-openstlinux-weston-stm32mp1.ext4 are not changed.The kernel is booting, no problem there. But the login promt does not appear. It seems that I got no errors at all, when I look at the full log. My thoughts is that what if bootfs not booting up the software such as command prompt?The last snippet of the kernel boot log from UART4. D/TC:0 pwr_scv_handler:56 PWR service: set 0x40000000 at offset 0xc D/TC:0 pwr_scv_handler:56 PWR service: set 0x10000000 at offset 0xc D/TC:0
I'm trying to get STM32MP157F-EV1 board working with the STM32Cube ecosystem. I have successfully followed the getting started guide., STM32MP157x-EV1 Lets Start URL. I get to the last step in /Populate_the_target_and_boot_the_image, (Step 8), Boot the Board and GUI never shows up on Display. After multiple reboots, reflashes, I thought let me go to next step, anyways, https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-EV1/Let%27s_start/Execute_basic_commands . Well it turns out that I am able to login to device using Minicom. I checked dmesg output, dmesg | grep display[ 0.117034] platform 5a001000.display-controller: Fixed dependency cycle(s) with /soc/dsi@5a000000[ 0.131004] platform 5a001000.display-controller: Fixed dependency cycle(s) with /soc/dsi@5a000000[ 0.131240] platform 5a000000.dsi: Fixed dependency cycle(s) with /soc/display-controller@5a001000[ 2.751026] stm32-display-dsi 5a0
Hello,I am using Yocto (Kirkstone) to develop linux for my embedded linux device, which is stm32mp135f-dk board. In Yocto build system one can set the IMAGE_ROOTFS_SIZE variable, which (along with IMAGE_ROOTFS_EXTRA_SPACE and IMAGE_OVERHEAD_FACTOR variables) controls the size of created rootfs. I set the IMAGE_ROOTFS_SIZE to 262144 (256 MiB), and I see that when my board is being programmed using CubeProgrammer the size of rootfs image matches:After booting the board and using df -h command the output is:How those values could be interpreted and compared to rootfs size of 256 MiB? I don't understand why there is a size of 229.9M there and what are those following filesystems (devtmpfs, tmpfs...).There is also second thing I am concerned about. For flashing the SD card I use the STM32_Programmer_CLI along with my .tsv file (see attached pic1 for its content). As far as I can understand, the offset values set in the .tsv control the sizes of particular partitions. What sizes (o
Which native graphical library does OpenSTLinux using?Is it GTK or other C++ library?
Exception mode=0x00000016 at: 0x2ffebb4dNOTICE: CPU: STM32MP157DAC Rev.ZNOTICE: Model: STMicroelectronics STM32MP157F-DK2 Discovery BoardINFO: PMIC version = 0x21INFO: Reset reason (0x15):INFO: Power-on Reset (rst_por)INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000INFO: FCONF: Reading firmware configuration information for: stm32mp_ioINFO: FCONF: Reading firmware configuration information for: stm32mp_fuseINFO: Using SDMMCINFO: Instance 1INFO: Boot used partition fsbl1NOTICE: BL2: v2.8-stm32mp1-r2.0(debug):lts-v2.8.15-dirty(567af710)NOTICE: BL2: Built : 00:51:33, Jan 26 2024INFO: BL2: Doing platform setupINFO: RAM: DDR3-DDR3L 16bits 533000kHzERROR: DDR addr bus test: can't access memory @ 0xc0000004PANIC at PC : 0x2ffebb4dException mode=0x00000016 at: 0x2ffebb4d please give me a solution for that
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.