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, Please tell me how to write DeviceTree to use GPIOF6 ~ 11 and GPIOG10 ~ 15.When I checked the status after u-boot and kernel boot, it became as follows.The ports that can be used when creating and compiling DeviceTree are GPIOF0-5 and GPIOG0-9, and it seems that there is no definition after G10.I don't know the cause.
I'm not sure if this is a bug, but STM32CubeMX assumes GPIO is input while using LL library? And is not configuring it to be Input ?I found that I had to force to configure the pin as Input so it will work with external interrupts.
Hi All,What is the best way to switch an SPI from Slave to Master during run time and later to bring it back to Slave mode (an example will be well come :-))Thanks,Yoav
We are doing a custom board bring-up and currently trying to display video on our display device. We use CubeMx to generate the device trees for our project, we have configured the DSI PLL dividers to match our display device requirement. Snapshot of the configuration is shown below.In the device tree's rcc node, we do see the CLK_DSI_DSIPLL, however we are not seeing these divider information.The clock configurations for rest of the peripherals are reflected in the device tree, also the clock dividers to generate DSI pixel clock are present in the rcc node and in the target's clock summary dsi_px clock shows the configured clock frequency. The clock configurations for DSI lane clock is not seen in the device tree and also in the target it shows 200MHz instead of a 174MHz when measured. Are we missing anything here? Where is the DSI PHY configurations in the device tree?
Hi all, I am trying to flash a custom board based on stm32mp157c based MPU. I have my own flashlayout which is also attached here. I am constantly running into the following error. an error occured while setting virtual partition 0xF1 alternate setting Full error log and device tree attached. Any leads are highly appreciated.
Hi,I am puzzled which DMA channel to use to read from an FPGA connected to the FMC.Using the dmatest module I found out which are free and can be used for DMA_MEMCPYtransfers:modprobe dmatest timeout=2000 iterations=1 run=1 wait=1 [ 991.821537] dmatest: No channels configured, continue with any [ 991.826830] dmatest: Added 1 threads using dma0chan19 [ 991.831372] dmatest: Added 1 threads using dma0chan20 [ 991.836463] dmatest: Added 1 threads using dma0chan21 [ 991.841513] dmatest: Added 1 threads using dma0chan22 [ 991.846879] dmatest: Added 1 threads using dma0chan23 [ 991.851588] dmatest: Added 1 threads using dma0chan24 [ 991.856713] dmatest: Added 1 threads using dma0chan25 [ 991.861707] dmatest: Added 1 threads using dma0chan26 [ 991.867050] dmatest: Added 1 threads using dma0chan27 [ 991.871733] dmatest: Added 1 threads using dma0chan28 [ 991.876972] dmatest: Added 1 threads using dma0chan29 [ 991.881975] dmatest: Added 1 threads using dma0chan30 [ 991.887247] dmatest: Added 1 t
Hi all,I am trying perform build for yocto for the DK2. But running into the following error. I am pretty sure this was working until a month back but now link appears to be broken. ERROR: openocd-stm32mp-native-0.11.0-rc2.AUTOINC+a5e526d857-r0 do_fetch: Fetcher failure for URL: 'git://repo.or.cz/git2cl.git;destsuffix=git/tools/git2cl;name=git2cl'. Unable to fetch URL from any source. ERROR: Logfile of failure stored in: /home/ubuntu/STM32/yocto-test/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp157a-730isom-dsi-emmc-mx/tmp-glibc/work/x86_64-linux/openocd-stm32mp-native/0.11.0-rc2.AUTOINC+a5e526d857-r0/temp/log.do_fetch.1136774 ERROR: Task (virtual:native:/home/ubuntu/STM32/yocto-test/openstlinux-5.10-dunfell-mp1-21-03-31/layers/meta-st/meta-st-stm32mp/recipes-devtools/openocd/openocd-stm32mp_0.11.0.bb:do_fetch) failed with exit code '1'Any idea how to fix this?
Hello,I been working on stm32mp1 soc. In m4, totally, i have configured 3 timers(Timer2(input capture), time13,timer16). when i start the m4 from A7 after Linux login, all timers work fine. But when I use a startup script to start the M4 during Linux bootup, input capture(TIM2) does not work but other timers are working fine. I want m4 timers to work when m4 starts during Linux bootup. I am looking for some suggestions to understand and solve this issue. Thank you in advanceJS
Hi!The repository git://repo.or.cz seems to be permanently offline.Alternatives are:https://sourceforge.net/p/openocd/code/https://github.com/openocd-org/openocd/Broken recipes are:layers/meta-openembedded/meta-oe/recipes-devtools/openocd/openocd_git.bblayers/meta-st/meta-st-stm32mp/recipes-devtools/openocd/openocd-stm32mp_0.11.0.bbI may be able to provide a patch if wanted. But its not completed.Best regardsGunther
Hi,We are using stm32mp157a in our custom board.We are configured SAI for Cortex M in cubemx.But we are unable to get dma interrupt and data through DMA. you can see my code flow below.In main.we are calling below functions.int main(){ MX_DMA_Init(); MX_SAI2_Init(); HAL_SAI_Receive_DMA(&hsai_BlockB2,(uint8_t *)AUDIORecvBuf,BUF_SIZE);while(1){}}1.SAI intializationstatic void MX_SAI2_Init(void){ /* USER CODE BEGIN SAI2_Init 0 */ /* USER CODE END SAI2_Init 0 */ /* USER CODE BEGIN SAI2_Init 1 */ /* USER CODE END SAI2_Init 1 */ hsai_BlockA2.Instance = SAI2_Block_A; hsai_BlockA2.Init.Protocol = SAI_FREE_PROTOCOL; hsai_BlockA2.Init.AudioMode = SAI_MODESLAVE_RX; hsai_BlockA2.Init.DataSize = SAI_DATASIZE_16; hsai_BlockA2.Init.FirstBit = SAI_FIRSTBIT_MSB; hsai_BlockA2.Init.ClockStrobing = SAI_CLOCKSTROBING_FALLINGEDGE; hsai_BlockA2.Init.Synchro = SAI_ASYNCHRONOUS; hsai_BlockA2.Init.OutputDrive = SAI_OUTPUTDRIVE_DISABLE; hs
Hello Attached is my i2c ioc file and I have connected an ADXL sensor to the stm32mp1 on its Arduino connector(I2C5). ( address: 3A, Chip id value : E5, Chip ID read register : 0x00)I am trying to read this chip id but getting an error at the below line always if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK)Can you please tell me what's wrong in the code or ioc file?attached is my main.c and ioc file as well.Do I need any changes I the device tree file on the A7 side?Thanks !,P
Hi STI enabled DISTRO_FEATURES_append = "tpm2" in the file ".../layers/meta-st/meta-st-openstlinux/conf/distro/include/openstlinux.inc" as described in the ST Wiki.When building with "st-image-weston" I get the following error message:ERROR: Nothing RPROVIDES 'packagegroup-security-tpm2' (but /home/stm32mp1/Work/Ecosystem-V2.1.0/201119_DVT/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bb RDEPENDS on or otherwise requires it)NOTE: Runtime target 'packagegroup-security-tpm2' is unbuildable, removing...Missing or unbuildable dependency chain was: ['packagegroup-security-tpm2']ERROR: Required build target 'st-image-weston' has no buildable providers.Missing or unbuildable dependency chain was: ['st-image-weston', 'packagegroup-security-tpm2']"... / layers / meta-st / meta-st-openstlinux / recipes-st / images / st-image-weston.bb" of the contents of the file "$ {@ bb.utils.contains ('COMBINED_FEATURES', ' tpm2','packagegroup-security-tpm2','', d)} \"There seems to be
Hello, I have two questions : (1) Is I2C5 the one on which the peripheral can be connected on the I2C lines on the Arduino connector with the cortex M4? I checked this and it is I2C5.PLease correct me? (2) I was trying to search/look the BSP methods for this I2C 5 like the BSP for I2C4 as provided in the STM32Cube_FW_MP1_V1.5.0\Drivers\BSP\STM32MP15xx_disco_bus.c where BSP methods related to I2C4 are defined and also the pin numbers in the corresponding header file.Is it possible to generate these methods using a code generator? or I can manually change the BSP I2C by looking at the ioc files ?
Hello, There may be another variant of this question available but I am reposting it as I couldn't get any success so far redirecting prinf messages to uart4 and viewing them on serial terminal utility.below are the snapshots which shows I have mapped the PUTCHAR method, configured UART4 in the fw and also the serial port utility is having the same connections but I am not able to get any data on the terminal. The code has a comment: LD Linker > Libraries > Small printf > am I missing this step? Where do I have to do this in the IDE Settings?Regards,D
Hi,I am working on a functionFS usb gadget based on gmidi. Following the gadget_configfs.rst and using stm32_usbotg_eth_config.sh as starting point was straight forward. After writing the shell script and modifying my device tree configuration to support high-speed OTG in the usb-c port as explained in the USB device tree guide, the usb gadget loaded with no errors and it was recognised by Mac, Windows and Linux hosts as usb-midi. USB-MIDI Shell script:configfs="/sys/kernel/config/usb_gadget" g=g1 #Gadget name c=c.1 #Configuration name d="${configfs}/${g}" #gadget path func_midi=midi.usb0 #Midi Function declaration #Product and Vendor for getting recognised VENDOR_ID="0x1d6b" PRODUCT_ID="0x0104" #Take the serial from the MP1 and make it a serial for our USB MIDI get_mac_address_from_serial_number(){ sha1sum /proc/device-tree/serial-number \ | fold -1 \ | sed -n '1{h;d};2{y/1235679abdef/000444888ccc/;H;d};13{g;s/\n//g;p;q};s/^/:/;N;H;d' } #To call the gadget do_start() { #Call depen
This is how I would like to use rs485:&usart3{ pinctrl-names = "default", "sleep"; pinctrl-0 = <&usart3_pins_mx>; pinctrl-1 = <&usart3_sleep_pins_mx>; status = "okay"; uart-has-rtscts; linux,rs485-enabled-at-boot-time; rs485-rts-delay-ns = <800 300>; };But it does not work.The setup function stm32_usart_config_rs485() in drivers/tty/serial/stm32-usart.c does not get executed. This seems wrong. Could you elaborate on this?When configuring rs485 from userland by using the ioctl, the setup function stm32_usart_config_rs485() does get executed and rs485 does work.
Hi,Out kit use the chip stm32mp157C.The schematic show the PHY configuration.dts_file_relate2eth.txt: my device tree code related to the ethernet.loginfo.txt: show error information.Please advise how to solve it.Thanks,QiZhang
We are using OpenSTLinux as base distro for configuring and developing product on a custom STM32MP1 based embedded board. We plan to develop some testing and validation plans for the same. Just wanted to understand what sort of testing is carried out for the OpenSTLinux to ensure the stability? How can we request access to those if needed?
I have a design based on the STM32MP157C (technically the Octavo SiP) which simulatenously uses PA0, PA1, ANA0, and ANA1. While measuring analog signals on the device, I'm noticing that the CPU is biasing the ANA0 and ANA1 signals -- based on a measurement across a filter resistor which has a higher voltage on the CPU side than on the measurement side.CubeMX did not generate any special pin control definitions for my use of ANA0 and ANA1; but I'm suspcious that there's either a pull up I need to disable, or the ANAx_SEL bits in SYSCFG_PMCR are not being set correctly.What pin control settings, or ADC configuration settings, should be present in the device tree for best performance of the ANA0 and ANA1 pins?
Hi everybody,I would like to simulate a USB scanner device using libcomposite, so I modified the USB FIFO sizes in the DTS as follows:usbotg_hs{ u-boot,dm-pre-reloc; pinctrl-names = "default", "sleep"; pinctrl-0 = <&usb_otg_hs_pins_mx>; pinctrl-1 = <&usb_otg_hs_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN usbotg_hs */ phys = <&usbphyc_port1 0>; /* 0: UTMI switch selects the OTG */ phy-names = "usb2-phy"; u-boot,force-b-session-valid; u-boot,force-vbus-detection; dr_mode = "peripheral"; g-rx-fifo-size = <256>; g-np-tx-fifo-size = <256>; g-tx-fifo-size = <128 128 64 16 16 16 16 16>; /* USER CODE END usbotg_hs */ }; This allows me to open the device declaring USB packet sizes of 512 bytes instead of the maximum which would be allowed by stm32mp151.dtsi (64 bytes, the kernel panics declaring 512). After the configuration of configfs I pull up my application device-side, which borrows from the kernel example in to
i have following yocto build configurationBuild Configuration:BB_VERSION = "1.42.0"BUILD_SYS = "x86_64-linux"NATIVELSBSTRING = "universal"TARGET_SYS = "arm-openstlinux_weston-linux-gnueabi"DISTRO = "openstlinux-weston"DISTRO_VERSION = "2.7-snapshot-20200721"TUNE_FEATURES = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"TARGET_FPU = "hard"DISTRO_CODENAME = "warrior"GCCVERSION = "8.%"need to what are the simple way to populate /dev/fb0, and draw a simple image RGB888 imag
Hi,I'm trying to bring up a custom board based on STM32MP151C MPU. The design is widely taken from the devkit.I'm booting from SDCARD and bootpins are set accordingly (b101).One thing that is changing is the I2C4 pins for PMIC interface (still on I2C4 but different pins). So we changed the device tree of TF-A for that.Concerning the HSE, we keep the same configuration (external crystal, 24MHz).From this post;https://community.st.com/s/question/0D53W000005qRjZSAU/cannot-boot-up-custom-board-which-based-on-stm32mp157cdk2-only-get-message-from-uart-panic-at-pc-0x2ffdc323-exception-mode0x00000016-at-0x2ffda000?t=1652971830558We confirmed that I2C and HSE should be configured correctly.We have tried to check the configuration for I2C and clocks. We didn't see anything wrong for now.In our case, PC is at a different address (0x2ffdaa77). Does it mean something different?Also, I don't have an exception as the post explain (Exception mode=0x00000016 at: 0x2ffda000), only the PANIC line.Do you
Hello, I am working on a custom Boot Loader (SSBL) for the STM32MP157F-EV1 board to replace U-Boot in the boot chain (BL33), this is a requirement for my project. As I understand, to boot the Linux Kernel it is needed to provide 3 values through the first 3 registers as follows: R0 = constant 0 R1 = Machine Type R2 = Address of loaded DTB What would be the MACH_TYPE needed to pass to the linux kernel to boot through the register R1? The list of MACH_TYPES can be found in https://elixir.bootlin.com/linux/v5.17-rc6/source/arch/arm/tools/mach-types. But I do not find an specific one for this board or any stm MPU. Thank you, Andrés Gamboa
Hello, I am currently working on bringing up a production board design with the OSD32MP157C-512M-BAA. The board design is very similar to the octavo systems osd32mp1-red boardSdcard is located on SDMMC1 with the same pinout.EMMC is located on SDMMC2 with the same pinout.The board can boot all the way into Linux if I use the provided development kit sd card image from octavo. This indicates to me that the core of the PCB is functioning correctly.A requirement of our project is to use buildroot. For testing, I am using the following setup: github. com / bootlin/buildroot-external-stThis (with the st_stm32mp157c_dk2_defconfig) builds a STM32mp1-DK2 development board compatible image with the following repository versions:TF-A: v2.4-stm32mp-r1U-Boot: v2020.10-stm32mp-r1.1Linux: v5.10-stm32mp-r1This buildroot image works on the DK2 development board without issue. However, I cannot get it to work on the OSD32MP157C SIP even with device tree updates based on the
Does ST-Linux run for any configuration of eMMC pins, i.e. if it is connected to SDMMC1/SDMMC2/SDMMC3 . or do we need to fix as per reference design / Dev kits.
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.