Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
I want to enable input capture functionality on our stm32mp157c based system. I am using Timer 1 channel 4 for the same and have made the necessary additions in the device tree as follows: &dma1{ status = "okay"; /* USER CODE BEGIN dma1 */ sram = <&dma_pool>; /* USER CODE END dma1 */ }; &dma2{ status = "okay"; /* USER CODE BEGIN dma2 */ sram = <&dma_pool>; /* USER CODE END dma2 */ }; &dmamux1{ dma-masters = <&dma1 &dma2>; dma-channels = <16>; status = "okay"; /* USER CODE BEGIN dmamux1 */ /* USER CODE END dmamux1 */ }; &timers1{ /* USER CODE BEGIN timers3 */ /* Enable DMA "ch1" for PWM input on TIM1_CH1 */ dmas = <&dmamux1 13 0x400 0x80000001>; dma-names = "ch3"; status = "okay"; /* USER CODE END timers3 */ pwm { pinctrl-names = "default", "sleep"; pinctrl-0 = <&tim1_pins_mx>; pinctrl-1 = <&tim1_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN timers1_pwm */ /* U
Hi everyone,I'm working on a custom STM32MP157 based board running custom Linux with Kernel v5.10.116. A LCD panel is connected using the LTDC display controller.I want to implement a splash-screen as soon as the power supply is on.I managed to add my panel interface in U-Boot and display my splash-screen but when the kernel is initialized the GPIOs connected to the LCD panel (reset-pin and power supplies commands) are reset and re-initialized so the LCD display is switched off and on.The final sequence is : U-Boot displays the splash screenthe kernel is launchedthe LCD display is re-initializedthe splash-screen is re-displayedSo there's a black screen for 2 seconds and I would like the splash-screen to remain displayed until the main application is launched.Is it possible in the kernel DTS files to add an option so the GPIO (maybe PMIC) drivers won't re-initializes the pins tied to the display ?I know it is possible with the TI drivers by adding "ti,no-reset-on-init" in the GPIO descr
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/ethernet/stmicro/stmmacCan anyone tell is this driver for some specific ST(?) IP, or for a runaway collection of various Synopsys based IPs? Does the ethernet controller of STM32MP1 work with this driver?
We are trying to read an analog value from a sensor (PF14 pin - A0 on Arduino connectors) and send it over UART (UART7 - PE7 for RX, PE8 for TX) for reading in the terminal of computer. We use M4 for this aim. Our final goal is to read the analog value over OPENAMP to be used on A7 side. But we want to be sure about the data integrity, and correctness of analog output as a first step. That's why we use UART7 through FTDI. We can read only "enclosed question marks" in the terminal. We are able to correctly read and graph analog readings with NUCLEO-STM32L432KC, using the same sampling rate and using USART1 and FTDI (although data resolution seems to be decreased significantly, compared to reading data over ST-LINK). Since ST-LINK is dedicated to A7 in STM32MP157F-DK2, it seems that it can not be used on M4 side (in Engineering Mode) for our aim.The pin configuration in A7 dts file is as follows.m4_uart7_pins_mx: m4_uart7_mx-0 { pins {
Next problem with my board is the RS485. I can send bytes, but can't receive because after sending once the DE stays always high. Without sending receive of course works.&uart5 { status = "okay"; pinctrl-names = "default", "sleep","idle"; pinctrl-0 = <&uart5_pins_a>; pinctrl-1 = <&uart5_sleep_pins_a>; pinctrl-2 = <&uart5_idle_pins_a>; rts-gpios = <&gpioc 6 GPIO_ACTIVE_HIGH>; rs485-rts-delay = <0 0>; linux,rs485-enabled-at-boot-time; };uart5_pins_a: uart5-0 { pins1 { pinmux = <STM32_PINMUX('B', 6, AF12)>; /* UART5_TX */ bias-disable; drive-push-pull; slew-rate = <0>; }; pins2 { pinmux = <STM32_PINMUX('B', 5, AF12)>; /* UART5_RX */ bias-pull-up; }; }; uart5_idle_pins_a: uart5-idle-0 { pins1 { pinmux = <STM32_PINMUX('B', 6, ANALOG)>; /* UART5_TX */ }; pins2 { pinmux = <STM32_PINMUX('B', 5, AF8)>; /* UART5_RX */ bias-pull-up; }; }; uart5_sleep_pins_a: uart5-slee
Hi i want to access remotely my stm32mp157c-dk2 with graphical interface. I am running openstlinux-20-02-19 from starter package. I installed tigervnc (apt-get install tigervnc and apt-get install xauth) and start it by typing "vncserver". But when i connect to it (from vncviewer) only terminal shows up, nothing else. I tried to start some desktop session from this terminal by typing (weston / weston-start / dbus-launch weston-start / weston-launch) but nothing works. I also tried to modify ~/.vnc/xstartup and changed to :#!/bin/shunset SESSION_MANAGERunset DBUS_SESSION_BUS_ADDRESSexec dbus-launch weston-startBut after this change, only black screen shows up : /I am new to wayland/weston and vnc configuration. I hope somebody with more experience can help me with this.
Hi, i am trying to build linux image along with cortex-m4 firmware which developed using STM32CubeIDE,so for that i have copied a Stm32CubeIDE project under folder DistributionPackage/openstlinux-5.10-dunfell-mp1-21-03-31/layers/sources/m4projects-stm32mp1/Projects/STM32MP157C-DK2/Examples/TIM/project/project1/STM32CubeIDE/Added the project path in /DistributionPackage/openstlinux-5.10-dunfell-mp1-21-03-31/layers/meta-st/meta-st-stm32mp/recipes-extended/m4projects/ m4projects-stm32mp1.bbiam getting error as arm-none-eabi-gcc: error: /home/akshay/project/stm32/DistributionPackage/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/m4projects-stm32mp1/1.4.0-r0/build/STM32MP157C-DK2/Examples/TIM/Project/JCIProject1/out/Debug//home/akshay/project/stm32/DistributionPackage/openstlinux-5.10-dunfell-mp1-21-03-31/layers/sources/m4projects-stm32mp1/Projects/STM32MP157C-DK2/Examples/TIM/Project/Project1/STM32CubeIDE/Common.
I have problem to get USB to work. I'm using custom board but I know that USB works because if I boot the board with the delivered image (MyIR) the USB works. I'm using buildroot with the 5.10 kernel and the linux kernel configuration from bootlin git. In TF-A I have enabled CLK_USBPHY_HSE and CLK_USBO_USBPHY.Kernel device tree:&usbh_ehci { phys = <&usbphyc_port0>; phy-names = "usb"; status = "okay"; }; &usbh_ohci { phys = <&usbphyc_port0>; phy-names = "usb"; status = "okay"; }; &usbotg_hs { compatible = "st,stm32mp15-hsotg", "snps,dwc2"; phys = <&usbphyc_port1 0>; phy-names = "usb2-phy"; dr_mode = "host"; status = "okay"; }; &usbphyc { status = "okay"; }; &usbphyc_port0 { phy-supply = <&vdd_usb>; st,phy-tuning = <&usb_phy_tuning>; }; &usbphyc_port1 { phy-supply = <&vdd_usb>; st,phy-tuning = <&usb_phy_tuning>; };Kernel bootlog (I enabl
Hi I am working on a drivers for the various peripherals on the STM32. Let me take the GPIO as an example. GPIO BSRR is a write only register that I want to read and I need to read back always 0x00000000. Why?I made a bit-field struct on the whole GPIO block. That struct is accessed based on Register name and specific bit field. The processor can not operate on individual bits so the compiler translates the Bit field instruction in to a register read followed by mask and shift operations ending with a Register write. It's the compiler that manipulates individual bits in a register in this way.So the value of the write only register like a BSRR when it is read is important and needs to be 0x00000000 for a bit set operation.Here is my question, is the read back of a write only register like the BSRR well-defined in the design of the STM32 chip or is that value undefined.Question:Can someone tell me if the read back of Write only registers is well-defined as 0x0000000 for the STM32 family
I'm now trying to blink a LED on my STM32MP157-DK2 board.I have managed to run and even modify the GPIO_EXTI example, but I'd like to do this from scratch.1) I first created a project using CubeMX and wrote my code in the IDE.It seems that I can't use the BSP_LED_*** instructions as the build gives compilation errors : why can't I build my code when using these instructions ? Do I miss an include ?2) Then I tried to use the HAL_GPIO_*** instructions. This time, the build is successful, but the debug does not blink the LED.I have seen in the manual UM2367 that the blue LED is connected to PD11, so I try this:HAL_GPIO_TogglePin (GPIOD, GPIO_PIN_11); HAL_Delay (100); /* Insert delay 100 ms */but it doesn't blink. What did I miss?Thanks for your help.
We have custom board design based on stm32157C-DK2. We just ise other LCD panel. We have updated device tree and probe function of panel is called. But in method: ltdc_load it fails to find any panel.bridge when calling: drm_of_find_panel_or_bridge (return -517 EPROBE_DEFFER)Is there something else to check if we want to use other panel please? Thanks.
Hello All,We have the STM32MP1xxx-DK. and we had build the image for this board using the steps mentioned on ST wiki to generate the distribution image.We had build st-image-core as its size is less then Weston image.We want not to enable the SPI-5 so that we can done some testing on SPI.Can you please guide us where we need to do changes to enable the spi.We are new in Linux. Thanks
I'm trying the tutorial on UART (https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Step3_Introduction_to_the_UART) with an STM32MP157F-DK2 board.I tried defining the USART2 GPIOs with CubeMX as found in the reference document UM2637: DP5 - TX, PD6 - RX (I even tried alternate ports such as PA2, PA3). The generated code compiles well. I then open a Putty connexion on COM19 (the ST Link port) with the required settings, but nothing is printed when I launch the debug.What am I doing wrong?
..
Greetings !I am trying to build stand alone u-boot for my "stm32f769 discovery board". But when I initiate make command I am getting the below error .Please help me out to resolve this issue.Error log:----------------------------------------------------------------------------------------------------------------user@user-Latitude-3490:~/study/u-boot/u-boot$ make make[1]: Entering directory '/home/user/study/u-boot/u-boot/stm32f769-disco' GEN ./Makefilescripts/kconfig/conf --syncconfig Kconfig CHK include/config.h CFG u-boot.cfgcc1: error: unrecognized command line option "-mno-unaligned-access"cc1: error: unrecognized command line option "-std=gnu11"make[2]: *** [../scripts/Makefile.autoconf:77: u-boot.cfg] Error 1make[1]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.make[1]: Leaving directory '/home/user/study/u-boot/u-boot/stm32f769-di
Hello Newbie question here, so i was working for with the stm32mp157 for quite a while now .the boot process for me was flashing an SD Card or a USB stick and boot the thing up. How ever i was wondering if there is a method to load openstlinux or just u-boot into RAM and Un-mount the disk or something and the Linux will keep working like with Ubuntu (Boot to Ram) ? if so how to do it ? Thank you
Hello sir I am using stm32MP157 with ICS-43434 sensor via the I2S interface I am following "https://wiki.st.com/stm32mpu/wiki/I2S_Linux_driver" link to enable the I2S driver in my "make menuconfig" the "STM32 I2S interface (SPI/I2S block) support" option not found. I need some suggestions for how can i configure the I2S of STM32MP1 and how can i configure STM32MP157 with ICS-43434.
Hello everyone,I am trying to replicate this approach to integrate STM32MP1 with an external audio codec. The issue I am facing is that the sub-block SAI-A is generating the bitclock (SCK), while I need it to receive it from the external audio codec. I am sniffing the I2S bus and whenever the audio is played, I can see the SCK being generated by SAI-A.Could you please provide details on how to set the SAI in slave mode, so that the SCK is not generated? Thanks in advance!
we are using stm32mp157f-ev1 and we build the weston image for this board.We want to enable the SPI-1 on this boardwe had applied the following patch to enable the SPI-1+&spi1 { + status = "okay"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&spi1_pins_a>; + pinctrl-1 = <&spi1_sleep_pins_a>; + cs-gpios = <&gpioz 3 O>; + timeouts = <3>; + + spidev@0 { + status = "okay"; + com
I ask because I'm starting the project of a converter that receives the video signal via optical fiber and converts it to an SDI output.
Hi,Because dotnet core supports ARMv7, but it doesn't say much clear about ARMv7M. So, I tried to port uCLinux from STM32F7 on my custom STM32H7 board. The OS boots fine but when I ran "dotnet --version", response is "sh: ./dotnet: No such file or directory".I run directly from the folder that contain dotnet SDK so no PATH needed, and the execute file "dotnet" is exist, with execution mode as well.Seems dotnet is not happy with ARMv7M which is not surprised us. But if anyone is already success, or any suggestion are welcome.
I have several questions first one is what is the max clock for I2C, minimum is pointed at this sheet but what is the max?Again for the same sheet for the LCD-TFT controller, I will be using 1.8V LVDS display so fclk frequency will be 45 MHz max right? If so would be the affect for the display having 45 MHz instead of 90 MHz?For SAI and SPI conditions are between 1.71<Vdd<3.6 and 2.7<Vdd<3.6 so shouldn't it the first one should be 1.71<Vdd<2.7 ? What happens if Vdd=1.8V?For USART max frequency is 27 MHz on the sheet, however for the stm32mp157a-ev1 board it is 60 MHz default. Does not it cause problem?Thank you in advance.
I am asking this question after using the the Developer package of the STM32 Echosystem in orfer to recompile the kernel drivers of the ADC to activate the ADC, how ever i can't figure out how to modify the device tree. i was trying to get this example "3.3 How to perform multiple ADC conversions in triggered buffer mode using libiio" provided by st to work (https://wiki.st.com/stm32mpu/wiki/How_to_use_the_IIO_user_space_interface) how ever when i reach this example to test it doesn't work since i don't have the trigger0 showing up after using the iio_info command$ iio_readdev -t trigger0 -s 8 -b 8 iio:device0 voltage0 voltage1 | hexdumpin that case my question is how to get this example working by changing the device tree and the developement echosystem's method ? this is my device tree configuration &adc { vdd-supply = <&vdd>; vdda-supply = <&vdda>; vref-supply = <&vdda>; status = "okay"; adc1: adc@0 { st,min-sample-time-nsecs = <5000>;
Actually, we are trying to reset the MAC registers by using DMA mode register (bit 0) in Ethernet section.As per reference manual, we are set the bit(swr bit) to 1 in ETH_DMAMR_REG register. but it is not reset automatically. In software we done // Enable eth clocks __HAL_RCC_ETH1CK_CLK_ENABLE(); __HAL_RCC_ETH1TX_CLK_ENABLE(); __HAL_RCC_ETH1RX_CLK_ENABLE(); __HAL_RCC_ETH1MAC_CLK_ENABLE();// Provide a software reset to reset all MAC internal registerswriteptr = (uint32_t*)(ETH_BASE_ADDRESS + ETH_DMAMR_REG);SET_BIT(*writeptr,ETH_DMAMR_SWR); // make 0 bit to 1 for sw resetreadptr = (uint32_t*)(ETH_BASE_ADDRESS + ETH_DMAMR_REG);while(READ_BIT(*readptr,ETH_DMAMR_SWR)); // checking the 0 bit till software reset has done( bit is reset).In this writing has completed but we are unable to read 0 from this register. May be what is the issue ? can help me in this regards.regardssrikanth
I cannot get the QSPI NOR-Flash to work on my custom board using an STM32MP153CA + Adesto AT25SF128 NOR flash in U-BOOT. I'm working with 5-10-dunfell-mp1-21-11-17 files included on the 3.1.0 ecosystem.The schematic section is shown below:Is not that different from the STM32157-ev1 implementation.I activated MPU's internal pull-ups for IO[0..3] lines by configuring the pins as follows on the dts files: quadspi_pins_mx: quadspi_mx-0 { pins1 { pinmux = <STM32_PINMUX('B', 6, AF10)>; /* QUADSPI_BK1_NCS */ bias-disable; drive-push-pull; slew-rate = <1>; }; pins2 { pinmux = <STM32_PINMUX('F', 10, AF9)>; /* QUADSPI_CLK */ bias-disable; drive-push-pull; slew-rate = <2>; }; pins3 { pinmux = <STM32_PINMUX('F', 6, AF9)>, /* QUADSPI_BK1_IO3 */ <STM32_PINMUX('F', 7, AF9)>, /* QUADSPI_BK1_IO2 */ <STM32_PINMUX('F', 8, AF10)>, /* QUADSPI_BK1_IO0 */ <STM32_PINMUX('F', 9, AF10)>; /* QUADSPI_BK1_IO1 *
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.