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
Hi,can some share dts configuration which allows you to bring up the PWM, timer etc?I do something like pwm_regulator { compatible = "pwm-regulator"; pwms = <&{/soc/timer@40002000/pwm} 3 500000 0>; regulator-min-microvolt = <1016000>; regulator-max-microvolt = <1114000>; regulator-name = "vdd_logic"; /* Voltage Duty-Cycle */ voltage-table = <1114000 0>, <1095000 10>, <1076000 20>, <1056000 30>, <1036000 40>, <1016000 50>; }; plus &timers4{ status = "disabled"; /* USER CODE BEGIN timers4 */ /delete-property/dmas; /delete-property/dma-names; /* USER CODE END timers4 */ pwm{ pinctrl-names = "default", "sleep"; pinctrl-0 = <&tim4_pwm_pins_mx>; pinctrl-1 = <&tim4_pwm_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN timers4_pwm */ timer@3 { status = "okay"; }; /* USER CODE END timers4_pwm */ }; }; but nothing ap
We have an exception at boot time, I think it is due to the brcmf_sdio module (wifi).Do you confirm?Could you explain me what is the cause from the following lines of dmesg? After rebooting the board, the problem disappear, but we discovered that the modules related to wifi and bluetooth are no more loaded. How it can be possible? The image is created from the distribution package and activating PWM timer and LSM6DSOX on I2C, both not related to Wifi. [ 94.207699] ------------[ cut here ]------------[ 94.210967] WARNING: CPU: 0 PID: 54 at lib/refcount.c:25 kthread_stop+0x178/0x1c8[ 94.280542] refcount_t: addition on 0; use-after-free.[ 94.284308] Modules linked in: snd_soc_audio_graph_card snd_soc_simple_card_utils brcmfmac stm32_dcmipp cfg80211 st_lsm6dsx_spi brcmutil stm32_crc32 gc2145 st_mipid02 v4l2_fwnode v4l2_async stm32_cryp libdes crypto_engine videodev snd[** ] (1 of 2) A start job is running for…ilable disk space (10s / no limit)[ 94.635785] CPU: 0 PID:
Hello all. I would like clarification about the structure of a patch file made with the "git diff" command. First question. Are the SHA (Secure Hash Algorithm) codes contained in the file patch important? Let me explain better. Once the patch file is made, if I edit it with a text editor by adding or removing parts, the SHA codes not match with the new file content, is it right? Under these conditions, does the patch file still work correctly? Second question. To make the patch file "my_file.patch" between two files "my_file1.txt" and "my_file2.txt" I use the command git diff --no-index my_file1.txt my_file2.txt > ./my_file.patch Let suppose now to have six files named "my_file1.txt", "my_file2.txt", "my_file3.txt", "my_file4.txt", "my_file5.txt" and "my_file6.txt". What is the way to create ONE ONLY patch file that compare and patches the couples my_file1.txt/my_file2.txt, my_file3.txt/my_file4.txt and my_file5.txt/my_file6.txt?Many thanksRegards
Hello all.In my stm32mp1 linux yocto machine I'm attempting to modify the touchscreen devicetree to manage the GOODIX GT911 touchscreen driver.Before modify the devicetree is the following +&i2c2 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c2_pins_a>; + pinctrl-1 = <&i2c2_pins_sleep_a>; + i2c-scl-rising-time-ns = <185>; + i2c-scl-falling-time-ns = <20>; + status = "okay"; + /delete-property/dmas; + /delete-property/dma-names; + + polytouch: edt-ft5x06@38 { + compatible = "edt,edt-ft5x06"; + reg = <0x38>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_edt_ft5x06>; + interrupt-parent = <&gpiob>; + interrupts = <3 0>; + touchscreen-size-x = <1024>; + touchscreen-size-y = <600>; + //touchscreen-swapped-x-y; + status = "okay"; + }; + +&pinctrl { + pinctrl_edt_ft5x06: pinctrl_edt_ft5x06-0 { + pins { + pinmux = <STM32_PINMUX('B', 3, GPIO)>; + }; + };After
I am trying to boot my STM32MP153C over cubeProgrammer to load data in EMMC0.Unfortantly the programm is failing in OPTEE Part (Second file to download). Here is the UART log:NOTICE: CPU: STM32MP153CAA Rev.ZNOTICE: Model: STMicroelectronics STM32MP157C-EV1 STM32CubeMX board - openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23INFO: 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: Using USBINFO: Instance 2INFO: Boot used partition fsbl1NOTICE: BL2: v2.6-stm32mp1-r2.0(debug):()NOTICE: BL2: Built : 12:50:03, Jun 2 2023INFO: BL2: Doing platform setupINFO: RAM: DDR3-DDR3L 32bits 533000kHzINFO:  
Hello, I am new to yocto project, I am trying to build a yocto project based on the stm32mp1(a development board from a vendor based in Germany). I am building core-image-full-cmdline. My Ubunutu version is Ubuntu 22.04.2 LTS.My build configurations are as follows:BB_VERSION = "2.0.0"BUILD_SYS = "x86_64-linux"NATIVELSBSTRING = "universal"TARGET_SYS = "arm-poky-linux-gnueabi"MACHINE = "stm32mp1"DISTRO = "poky"DISTRO_VERSION = "4.0.10"TUNE_FEATURES = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"TARGET_FPU = "hard"metameta-pokymeta-yocto-bsp = "kirkstone:1e6f147c686a91b9a5996f529e32ee1852f946b7"meta-oemeta-python = "kirkstone:bdad2a789e30703a825b876279665720d06d55dc"meta-st-stm32mp = "kirkstone:ca501bd7dbe023682903ceedddaacd940b0898f4"After bitbake command, I am getting the following error:ERROR: openocd-stm32mp-native-0.11.0+dev.AUTOINC+fdf17dba56-r0 do_configure: ExecutionError('/home/ahamod/BBB/build-stm32mp1/tmp/work/x86_64-linux/openocd-stm32mp-native/0.11.0+dev.AUTOIN
Hi,I have a relatively easy question for the OpenStLinux I guess.I have a correctly prepared sdk image with QT (bitbake -k st-example-image-qt and bitbake -k st-example-image-qt -c populate_sdk) but can't correctly configure weston. I have a similar configuration to the official STM32MP135DK2 with a slight difference, 24 RGB interface. My display working correctly, I can see wallpaper and play mp4, so the driver and system are configured correctly.When I try to execute my application I get something like QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' [ 1] Failed to open device: No such file or directory, Try again... [ 2] Failed to open device: No such file or directory, Try again... [ 3] Failed to open device: No such file or directory, Try again... [ 4] Failed to open device: No such file or directory, Try again... [ 5] _OpenDevice(1093): FATAL: Failed to open device, errno=No such file or directory. [ 6] Failed to open device: No suc
Since stm32mp157 node descriptions are inherited from stm32mp153 and stm32mp151.
Hi,I am confused how to correctly set u-boot environment variables in a system based on OpenST Linux 4.1 and follows DK2 settings.The partition layout looks like this:#Opt Id Name Type IP Offset Binary - 0x01 fsbl1-boot Binary none 0x0 arm-trusted-firmware/tf-a-stm32mp157f-nexio-usb.stm32 - 0x03 fip-boot Binary none 0x0 fip/fip-stm32mp157f-nexio-trusted.bin P 0x04 fsbl1 Binary mmc0 0x00004400 arm-trusted-firmware/tf-a-stm32mp157f-nexio-sdcard.stm32 P 0x05 fsbl2 Binary mmc0 0x00044400 arm-trusted-firmware/tf-a-stm32mp157f-nexio-sdcard.stm32 P 0x06 metadata1 Binary mmc0 0x00084400 arm-trusted-firmware/metadata.bin P 0x07 metadata2 Binary mmc0 0x000C4400 arm-trusted-firmware/metadata.bin P 0x08 fip-a FIP mmc0 0x00104400 fip/fip-stm32mp157f-nexio-trusted.bin PED 0x09 fip-b FIP mmc0 0x00504400 none PED 0x0A u-boot-env Binary mmc0 0x00904400 none P 0x10 bootfs System mmc0 0x00984400 st-image-bootfs-openstlinux-weston-stm32mp1-nexio.ext4 P 0x11 vendorfs Fi
Hi ~I'm using STM32MP157C MPU with my custom board and trying to modify u-boot for my board. https://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Distribution_Package#Modifying_the_U-BootThis wiki article has been describe about "Modifying the U-boot".Adding simple log like the example works fine. But, If I try to change u-boot prompt string using "make menuconfig"it seems like that changed prompt string didn't apply.How to solve it?Thanks.
I have added all required dependencies that I am able to detect the module and allocate with udev rules as modem_1..4 . I have also added ppp feature, but despite that when i dial, it shows some error as indiscipline and here is a log from /var/log/syslogHow do i fix this ?
Hi,I'm looking into creating sound cards with STM32MP135F-DK discovery board, and it seems that all the tutorials point to editing the /core/arch/arm/dts/stm32mp135f-dk.dts so that it takes the new sound card into account. Previously I had a chance to work with Raspberry Pi and there it's not uncommon to have multiple .dts files handling different things. Is it possible to define a sound card in a separate file from the main board.dts also on the stm32 MPUs, or is it really a necessity to append to the the main file? If so, how?
I was trying to use the GPIO expension connector on the STM32MP15 Discovery Kit MB1272 and the clock wasn't working on SPI5. When I checked the CubeMX configuration against the schematic for the discovery kit, I leaned that the clock signal is going to the Arduino connector instead of the GPIO expansion. The schematic insinuates that PF7 is SPI5_SCK, when it is actually PH6. Is this a known issue?
When I try to boot from NOR flash, it always crash.The console has the log like this. INFO: 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: Using QSPI NORINFO: Instance 1INFO: Boot used partition fsbl1NOTICE: BL2: v2.6-stm32mp1-r2.0(debug):()NOTICE: BL2: Built : 07:26:18, Dec 11 2022WARNING: Error in spi_mem_supportWARNING: Failed to read image id=12 (-45)WARNING: loading of FWU-Metadata failed, using Bkup-FWU-MetadataWARNING: Error in spi_mem_supportWARNING: Failed to read image id=13 (-45)ERROR: loading of Bkup-FWU-Metadata failedPANIC at PC : 0x2ffea2ebException mode=0x00000016 at: 0x2ffea2ebWhere is the wrong config?
We are trying to get CAN communication working on a STM32MP157D-DK1 using an RS485 CAN hat that is used for Rasberry PI. Is this possible and if so can you direct me to instructions? We are using Yocto to build the Linux distro. We are currently unable to see CAN0 at all.
Hi everyone, I want to use other LCD-TFT screen with the STM32MP15X-EVAL board but there is something strange with this connector. There are two duplicated pins, R5 and R7 , but looking for on the board documentation, I can't find anything related with this. What is these pins function?Thanks in advice.
We have built a SOM based on STM32MP157 which has eMMC. There were few configuration files which we installed manually. Now, I want a copy of this final working image so that i can duplicate the same image in other emmc too. Please let me know if are there any methods to do so.
Hi,I have a problem with bringing up my custom board based on STM32MP135.The problem is related to framebuffer opteeNOTICE: CPU: STM32MP135F Rev.Y NOTICE: Model: STMicroelectronics custom STM32CubeMX board - openstlinux-5.15-3 INFO: PMIC version = 0x21 INFO: Reset reason (0x35): INFO: Power-on Reset (rst_por) INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe0000 INFO: FCONF: Reading firmware configuration information for: stm32mp_io INFO: Using USB INFO: Instance 2 INFO: Boot used partition fsbl1 NOTICE: BL2: v2.6-stm32mp1-r2.0(debug):v2.6-dirty(a1f02f4f) NOTICE: BL2: Built : 13:14:26, Nov 23 2021 INFO: BL2: Doing platform setup INFO: RAM: DDR3-DDR3L 16bits 533000kHz INFO: Memory size = 0x20000000 (512 MB) INFO: DFU USB START... INFO: handle USB : Suspend int INFO: USB Suspend mode INFO: handle USB : Reset INFO: handle USB : Reset INFO: phase ID :3, Manifestation 0 at c716a7de INFO: Send detach request INFO: Receive DFU Detach INFO: DFU USB STOP.
Hi I am trying to configure I2S with stm32mp135f-dk so that i2s signals are accessible from 40 pin header. I am using the realtime package (build-openstlinuxweston-stm32mp13-rt). I was checking the instruction from you web and it tells that I should enable I2S using menuconfig. I am seeing that I2S is a module that I cannot directly enable. How can I check that this is in the build?Also I would need some support regarding the device tree configuration. Do I need to run STM32CubeMX and generate new devicetree files to get something activated? Or is there some existing dts file which I could edit and add my i2s driver in use there? It looks like that stm32mp135f-dk.dts does not currently contain any i2s related configuration.
..
I am currently developing using the STM32MP157FAD. And I want to create a distribution image and download the image using STM32CubeProgrammer.However, while downloading the image, the following error message is displayed in the log of STM32CubeProgrammer.15:34:17:270 : DFU status = 0 15:34:17:270 : DFU State = 5 15:34:17:270 : Segment[0] downloaded successfully 15:34:17:270 : File download complete 15:34:17:270 : Time elapsed during download operation: 00:00:01.440 15:34:17:270 : RUNNING Program ... 15:34:17:270 : PartID: :0x01 15:34:17:270 : DFU status = 0 15:34:17:270 : DFU State = 5 15:34:17:270 : sending a dfu end of download request 15:34:17:270 : DFU status = 0 15:34:17:271 : DFU State = 7 15:34:22:259 : DFU status = 0 15:34:22:259 : DFU State = 2 15:34:22:259 : sending a set alternate setting request with index: 5 15:34:27:259 : receiving packet 15:34:32:260 : sending a clear status request 15:34:42:262 : an error occured after sending the clear status request 15:34:42:262 : S
Hi, I have a rather simple question. I use cube mx to generate dts, my Openstlinux is v22.11.23 and during 'bitbake tf-a-stm32mp' I encounter a lack of definition in some '*.c' files like Built stm32image successfully | | CC drivers/st/ddr/stm32mp1_ram.c | CC drivers/st/ddr/stm32mp_ddr_test.c | CC drivers/st/ddr/stm32mp_ram.c | drivers/st/crypto/stm32_hash.c: In function 'hash_hw_init': | drivers/st/crypto/stm32_hash.c:161:24: error: 'HASH_CR_ALGO_SHA1' undeclared (first use in this function) | 161 | reg |= HASH_CR_ALGO_SHA1; | | ^~~~~~~~~~~~~~~~~ | drivers/st/crypto/stm32_hash.c:161:24: note: each undeclared identifier is reported only once for each function it appears in | drivers/st/ddr/stm32mp1_ddr.c: In function 'stm32mp1_ddr3_dll_off': | drivers/st/ddr/stm32mp1_ddr.c:491:26: error: 'DDRPHYC' undeclared (first use in this function); did you mean 'DDRPHYC_PIR'? | 491 | if (clk_get_rate(DDRPHYC) < 100000000U) { | | ^~~~~~~ | | DDRPHYC_PIR | drivers/st/ddr/stm32mp1_ddr.c:491:26:
I have integrated Micro-ROS into the m4. I have it working such that I am able to publish sensor data and receive it from other nodes. However Micro-ROS takes up a quite a bit of space, 70+ KB. In their documentation it is target at mid tier micro controllers. I am trying to add the parameter server and that pushes the .text over the 128KB limit. I am wondering if it is possible / advisable to recompile the system image to allow for larger text space for the co processor. I believe their are some changes to make to the device tree memory section among other places. My possible options I see would be:Rebuild the system image to increase memory for the M4 and make the other requisite changes to increase the size of the .text spaceDon't use micro-ROS on the m4 and exchange data via packets and a smaller implementation by hand and parse the data on the A7 side to publish it into the ROS2 world.Optimize everything as much as possible to reduce the size and try to keep squeezing it into the
Hi,after changing some kernel settings probably, I suddenly can not flash it to our custom STM32MP157 based board. Process fails around 100% of last partition with error: "Error: Error while reading the file"Looks like Cube reads file size incorrectly. Cube output: 16:30:48:454 : Size : 1.27 GB 16:30:48:454 : Partition ID : 0x12 16:30:48:454 : Download in Progress: 16:30:48:454 : Size : 104857600 BytesReal file size in explorer is Size: 1,26 GB (1 363 148 800 bytes)Size on disk: 1,26 GB (1 363 148 800 bytes).Size of other partition images is read correctly.When I use other image, the printed size is same (but still wrong) 16:52:06:736 : Size : 104857600 BytesShould be 1,22 GB (1 312 153 600 bytes)but Cube is ab
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.