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
We are trying to bring up a custom board which used STM32MP157FACx processor.The DDR memory model we use is W63AH2NBVABE which is a LPDDR3 32-bit. We use CubeMx to generate the device trees. We have chosen the configuration shown below in the picture in CubeMx which generated tf-a device trees and one of them (stm32mp157f-projectname-mx-fw-config.dts) included the following device tree, which is non-existent.#include "stm32mp15-ddr-128m-fw-config.dts"The above device tree is not available in the tf-a source in the developer package (Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/tf-a-stm32mp-2.4.r1-r0/tf-a-sources/fdts) or in the git.How do we get this file? Does it expect the developer/user to create one? if so, why does the comment not let the user know that? Any pointers would be much appreciated. Thanks!
Hi,I'm working the stm32mp157c som and trying to boot external quad spi flash (cypress S25HL512T). I added this to dts. &qspi { pinctrl-names = "default", "sleep"; pinctrl-0 = <&quadspi_pins_mx>; pinctrl-1 = <&quadspi_sleep_pins_mx>; status = "okay"; #address-cells = <1>; #size-cells = <0>; flash0: flash@0 { compatible = "n25q512a","micron,m25p80"; reg = <0x0>; #address-cells = <1>; #size-cells = <1>; spi-max-frequency = <50000000>; partition@0x00000000 { label = "boot"; reg = <0x00000000 0x00500000>; }; partition@0x00500000 { label = "bootenv"; reg = <0x00500000 0x00020000>; }; partition@0x00520000 { label = "kernel"; reg = <0x00520000 0x01ae0000>; }; partition@0x02000000 { label = "spare"; reg = <0x02000000 0x00000000>; }; }; };aliases { spi6 = &qspi; };On the kernel side, I followed the following link.https://wiki.st.com/s
Hello,I would like to embark on a project for a custom board with the STM32MP157DAB1 and I am referencing the STM32MP15-DISCO schematic from ST which uses the STM32MP157CAC3.My Question: How do I translate between the functionality of the pins?From observation, some functionality in one package does not translate to the other and after searching the datasheet, I am lost and need some guidance.Example, PC0 functions as LTDC_R5 (in the STM32MP157CAC3) and is connected with the video input of the SiI9022ACNU(another chip on the discovery board). How do I translate this functionality to the STM32MP157DAB1? What pin do I use for this on the STM32MP157DAB1?Any help is appreciated, thanks!PS - just an afterthought after reading other posts, do I have to use the STM32CubeMX to define such properties?
Hi,We are using stm32mp1 uboot. I have stoped uboot and i run baremetal appilication it works fine.after sucessfull completion of baremetal application.how do i go back u boot prompt?
Looking at the clock in the MX Device Configuration Tool it says 204 to APB1 Timer Clocks (MHz).To get to 10000 Hz I have to divide 204 MHz by 20400. Fortunately there are a bunch of ways to do this. But on the first try I tried Prescaler 51Counter Period 100Internal Clock Division Division by 4The reason I did it this way is that I suspected 10000 Hz will be too fast and they will eventually go to 1000 Hz or something between 1000 Hz and 10000 Hz and it would be easy to change the counter period for the new value. I saved it and generated new code. static void MX_TIM14_Init(void) { /* USER CODE BEGIN TIM14_Init 0 */ /* USER CODE END TIM14_Init 0 */ TIM_OC_InitTypeDef sConfigOC = {0}; /* USER CODE BEGIN TIM14_Init 1 */ /* USER CODE END TIM14_Init 1 */ htim14.Instance = TIM14; htim14.Init.Prescaler = 51; htim14.Init.CounterMode = TIM_COUNTERMODE_UP; htim14.Init.Period = 100; htim14.Init.ClockDivision = TIM_CLOCKDIVISION_DIV4; htim14.Init.Aut
I have tried it and it works but I wanted to see if there are any limitations. The boards are identical the only difference is the MPU.
..
Is there any plan to release C++17 compatible HAL and LL libraries for MP1 platform? I had written a lot of code in C++17 and later found out that MP1 libraries are full of `register` keyword which is not supported since C++17. A temporary solution is of course deleteing the keyword from all HAL and LL sources (no hard work, there are only about 20 occurences), but I would like to know the official plan or statement about this.Thank you.
Hi.Is there a way to properly power off the board without using the console's poweroff command?Tried to press wake-up button for 10 seconds with no effect...Regards,Vlad.
We have custom SOM which has been designed with STM32MP157C.We are using the OpenSTLinux 3.0.0 as of now as the distribution running on it.In case of LAN PHY interfacing we are using LAN8720.There is a strange behavior , upon I can see the below message in top.This process is hampering the cpu performance. When running GUI based application I can see definite lag which occurring because of this. The issue completely random earlier but now pretty consistent. Any ideas what might be happening here?Any leads are highly appreciated TIA
I've enabled pps-gpio and pps in the kernel config and added the following to the device tree:/{ //... pps{ compatible = "pps-gpio"; gpios = <&gpiod 13 GPIO_PULL_UP>; status = "okay"; }; };but this results in the following when starting the system:[ 1.350093] pps-gpio pps: failed to request PPS GPIO [ 1.350132] pps-gpio: probe of pps failed with error -22do you have any hint for me how i can fix that?I also tried adding a pinctrl section (which resulted in other problems).Thanks!Thomas
Hi,I have some doubts about how I could sample from the ANA0/ANA1 pins of an STM32MP1 CPU from inside the M4 firmware via HAL. I would like to programmatically switch between these two pins.Sampling from ADC_CHANNEL_0 seems to work, so I guess it is connected to ANA0. But sampling from ANA1 / ADC_CHANNEL_1 does not.Could anybody point me to some documentation or, event better, example source code?Thank you,Antonio
Good day,Has anyone been able to compile Azure Sphere OS for the STM32MP157D-DK1.I have the yocto environment configured, and I am able to build a vanilla embedded Linux image, but when I add the azure bblayers to the build. the build fails. I also tried building the OS with the provided build-os.sh script, it built successfully but I was not able to get the dev board to boot.Kind regards,Rayaan
I am trying to customize the boot script which is used to boot my STM32MP157 Avenger96 board. I want to include some u-boot variables and alter the boot process.Current boot script:if test -n "${distro_bootpart}"; then setenv partition "${distro_bootpart}" else setenv partition "${bootpart}" fi if test ! -e ${devtype} ${devnum}:${partition} boot/fitImage; then echo "This boot medium does not contain a suitable fitImage file for this system." echo "devtype=${devtype} devnum=${devnum} partition=${partition} loadaddr=${loadaddr}" echo "Aborting boot process." exit 1 fi part uuid ${devtype} ${devnum}:${partition} uuid # Some STM32MP1-based systems do not encode the baudrate in the console variable if test "${console}" = "ttySTM0" && test -n "${baudrate}"; then setenv console "${console},${baudrate}" fi if test -n "${console}"; then setenv bootargs "${bootargs} console=${console}" fi #New variables I want to include bootlimit rootfspart set
I am evaluating the STM32NP157D Discovery Kit.In the Getting Started Section I have successfully done the gtk_hello_world step.The next step successfully rebuilds the kernel. After pushing it on the board I do the reboot and get the following Error message during booting:# Booting kernel from Legacy Image at c2000000 ... Image Name: Linux-5.10.61 Created: 2022-01-23 13:24:54 UTC
I have built a test program from the two examples PWR_STOP_CoPro and LPTIM_PulseCounter. With the LPTIM_PulseCounter I changed the CounterSource to LPTIM_COUNTERSOURCE_INTERNAL and adjusted the priority HAL_NVIC_SetPriority (LPTIM2_IRQn, 0, 0);Both programs run as expected only when I start the timer HAL_LPTIM_TimeOut_Start_IT (& hlptim2, 0xFFFF, 0x7000) and then go to STOP Mode HAL_PWR_EnterSTOPMode (PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); the M4 core does not wake up by the LP Timer interrupt, but an EXTI interrupt lets it wake up.Can someone tell me what I might have overlooked?
Hi.My STM32MP157A-DK1 board while in power off state without any connections consumes 45 ma of current.How could i reduce such a big amount?Could it be ST-LINK power drain, or is it STUSB1600?What could i do to reduce the current to its minimum in poweroff or standby modes?Regards, Vlad.
It isn't clear to me from this article (https://wiki.st.com/stm32mpu/wiki/Clock_device_tree_configuration_-_Bootloader_specific#cite_note-st.2Cstm32mp1-rcc.txt-1) if I can set operating points for my stm32mp157c part. If not am I stuck setting PLL1 in the tf-a? Also, can I use the cpufreq-utils to change clock speed on the fly?Thanks,Ben
I have custom stm32mp1 board and when running it as USB mass storage in U-Boot (ums 0 mmc 0), the USB driver is not detected nor by Linux nor by Windows. I am also attaching shematc comparison of eval-board VS my custom board. Also the USB-ORG is working in Engineering mode as DFU device - so I am guessing the soldering and USB pinouts are correct.Pic.1. Custom board schematics of USB-OTG2.Pic. Eval-board schematic of USB-OTG.
Hello,according to the STM32MP151A/D Datasheet (Table 13.) the voltage on VDD3V3_USBHS Pin can be 0 ... 3.6V when USBH not used.But on the another page of the Datasheet there is this section: "VDD3V3_USBHS and VDD3V3_USBFS are respectively the USB high-speed and full-speed PHY supply. Voltage range is 3.07 V to 3.6 V. VDD3V3_USBFS is used to supply OTG_VBUS and ID pins. So, VDD3V3_USBFS must be supplied as well when USB high- speed OTG device is used. If not used, must be connected to VDD."The last sentence is the opposite of the data given in Table 13.Now I dont know what I am allowed to do? I dont need USB on my board and I dont want to add circuitry that is mandatory according to datasheets requirement: "VDDA1V8_REG must be present before VDD3V3_USBHS".Thanks for help.
In previous releases of OpenSTLinux, u-boot used the NAND DFU backend to write to the NAND flash in the EV1 dev board. For UBI images, this required that the image was generated using the --space-fixup flag.To avoid this requirement, I submitted a patch to add a new DFU_NAND_TRIMFFS option to u-boot (link). When this option was used, the DFU NAND backend would correctly write UBI images to flash regardless of whether --space-fixup was used.With the latest release of OpenSTLinux, u-boot no longer uses the NAND DFU backend; it uses the MTD backend instead.Is there a way to tell the MTD backend to do the same (drop trailing all-0xff pages), so that UBI images generated without --space-fixup can be used?Thank you,Guillermo
I am enabling SPI1 controller and selecting PLL3Q as its kernel clock source on CubeMX. But automatic code is not generated for it.It looks like #DEFINES for SPI1 do not exist in stm32mp1-clksrc.h, while they do exist for other SPI controllers.
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.