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
Hello,I'm working with STM32MP1-DK2. I want to run a project on it.I need to implement a callback function in the A7-core (Linux side) to read a pin whenever a signal comes in (on the rising or falling edges).Actually, I need to have a callback() function to read the incoming signal and do something after that. I don't know how to implement the callback() for a pin from a GPIO port for my STM32MP157F. I would be grateful if you could give me a hand with it. Best,Saeed
I'm testing the Developer Package for STM32MP157c-dk2 demo board. Starter Pack is installed. When I compile the kernel as described in the Dev. Package's "README_HOW_TO.txt" file and update the kernel, The "Cube" example ceases running. It only says "No GCNANO GPU STACK capabilities to run 3D GPU demo. What I'm missing here ?The boot log says something about galcore time out.
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
Hello,I need to send several kilobytes of data from the M4 to the A7. However, I am experiencing data loss during this transfer. Is there a function that waits on the M4 side, until the A7 has collected all data from the tty./* * Channel direction and usage: * * ======== <-- new msg ---=============--------<------ ======= * || || || CHANNEL 1 || || || * || A7 || ------->-------=============--- buf free--> || M4 || * || || || || * ||master|| <-- buf free---=============--------<------ ||slave|| * || || || CHANNEL 2 || || || * ======== ------->-------=============----new msg --> ======= */for instance channel2 - buf free.Many thanks!
I ran GENERATE-CODE on STM32CubeMX and M4 files were created. There is #include "stm32mp1xx.h" in stm32mp1xx_hal_def.h in Include, but there is no stm32mp1xx.h file. where is it?
We have a custom PCB application that uses the STM32MP151CAC1 as the main CPU. We have tried to use an STLink v3 to connect to the chip over SWD, but have been unable to do so. The chip (through UART4) throws the following error when I try to connect:ERROR: Illegal access to 0xe000edf0: ERROR: FAIL_ID = 0x2 ERROR: Non-Secure ERROR: Privilege ERROR: Write PANIC at PC : 0x2ffc9b61 Exception mode=0x00000016 at: 0x2ffc9b61Meanwhile, on the STCube Programmer, depending on what settings I have, I get one of the following error messages:Error: Cannot connect to access port 1 If you are trying to connet to a device with TrustZone enabled please try to connect with HotPlug modeError: DEV_UNKNOWN_MCU_TARGETError: Cannot identify the deviceSome additional information:The signals I'm trying to communicate over are:JTMS (pin C20 on the STM32MP1)JTCK (B20)JTDI (A20)JTDO (A19)JTRST (19)Of those, JTMS and JTRST are pulled up to VDD through 10K resistors. JTCK is pulled down to ground through another 1
Hi, I have a STM32MP157A-EV1 board. I'm running it in the engineering boot mode and programming the Cortex-M4 directly through the STM32CubeIDE. At the moment, I do not use the Cortex-A7. I would like to enable USART2 and use it through the ST-LINK to view the printf command that I do on the Cortex-M4. What I did was enabling USART2 in STM32CubeMX : I did not change any other configuration and simply regenerated the code. Then I used these functions: In retarget.c UART_HandleTypeDef *gHuart; void RetargetInit(UART_HandleTypeDef *huart) { gHuart = huart; /* Disable I/O buffering for STDOUT stream, so that * chars are sent out as soon as they are printed. */ setvbuf(stdout, NULL, _IONBF, 0); } In main.c #include "main.h" #include "cmsis_os.h" ... UART_HandleTypeDef huart2; static void MX_USART2_UART_Init(void); ... int main(){ ... MX_USART2_UART_Init(); RetargetInit(&huart2); ... while (1) { /* USER CODE END WHILE *
Hi there, I just received the STM32157f-dk2 discovery board, and I just started to dive into the tutorials. I am trying to simply follow the step to just cross-compile and flash the kernel image. When I complete all the steps and reboot the board, the kernel does not start U-Boot 2018.11-stm32mp-r4 (Nov 14 2018 - 16:10:06 +0000)CPU: STM32MP157FAC Rev.ZModel: STMicroelectronics STM32MP157C-DK2 Discovery BoardBoard: stm32mp1 in trusted mode (st,stm32mp157c-dk2)Board: MB1272 Var4 Rev.C-02DRAM: 512 MiBClocks:- MPU : 800 MHz- MCU : 208.878 MHz- AXI : 266.500 MHz- PER : 24 MHz- DDR : 533 MHzNAND: 0 MiBMMC: STM32 SDMMC2: 0, STM32 SDMMC2: 1Loading Environment from EXT4... OKIn: serialOut: serialErr: serialNet: eth0: ethernet@5800a000Hit any key to stop autoboot: 0Boot over mmc0!switch to partitions #0, OKmmc0 is current deviceScanning mmc 0:4...Found U-Boot script /boot.scr.uimg1628 bytes read in 1 ms (1.6 MiB/s)## Executing
I'm trying to set otg on stm32mp157d in device only mode, according to the guidance on OTG device tree configuration - stm32mpu (stmicroelectronics.cn), &usbotg_hs { compatible = "st,stm32mp15-hsotg", "snps,dwc2"; phys = <&usbphyc_port1 0>; /* 0: UTMI switch selects the OTG controller */ phy-names = "usb2-phy"; dr_mode = "peripheral"; /* could be "host", see USB generic bindings [6] */ usb-role-switch; /* see USB generic bindings [6] */ role-switch-default-mode = "peripheral"; /* could be "host", see USB generic bindings [6] */ status = "okay"; /* enable OTG */}; I also enable usbphyc like this:&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>;};However , when I using the Uboot system ,I can use the otg port using the command ums to loa
..
I am new to STM32 boards and IDE but have an STM32MP157A-DK1 board which came with an SD Card / OS on it. We want to make our own OS image using the ST linux.In the downloads accompanying the workshop videos we have the DK2_TIMER1_OpenAmp_Solution to toggle an LED and present some ttyRPMSG devices to talk through.I can take the code and build it on STM32CubeIDE Version: 1.10.1 and get no errors to give an ELF file. I can also get the demo ELF file in the workshop zip.I can load both types of firmware into both the supplied SD Card OS and our development OS and in all cases I can flash the LED, start and stop the M4.With the workshop ELF file it works to provide the /dev/ttyRPMSG0 & 1 devices only on our OS build. The ELF file I can build provides the devices only on the supplied ST OS from the SD Card. But no ttyRPMSG devices appear with the alternate mixes.So what needs to be set compatible on the OS kernel / DTB's etc to make them appear.I have tested my build code to change the
Hi,We are using stm32mp157a processor in my custom board. I need to change MAC address because in uboot log it is showing it is showing invalid MAC address. I am setting MAC address using setenv ethaddr 11:22:33: 44:55:66 command. But when i set ethaddr i am getting following error messages in uboot log. you can see my log below. i have followed stm32mp1 trouble shooting guide.STM32MP1 bring-up troubleshooting guideHow can i come out of this issue. Please help us.
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
Hi, I got the result as below while I was building kernel images (uImage and vmlinux) and device tree (dtbs). Can anyone help me fix it?$ make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040 GEN Makefile CALL /home/rickweng/STM32MPU_workspace/STM32MP15-Ecosystem-v3.1.0/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.61-stm32mp-r2-r0/linux-5.10.61/scripts/checksyscalls.sh CALL /home/rickweng/STM32MPU_workspace/STM32MP15-Ecosystem-v3.1.0/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.61-stm32mp-r2-r0/linux-5.10.61/scripts/atomic/check-atomics.sh CHK include/generated/compile.hmake[3]: *** No rule to make target 'drivers/cpuidle/cpuidle-stm32.o', needed by 'drivers/cpuidle/built-in.a'. Stop.I wonder why there's no rule to make target. I didn't do any modification and just followed
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 have also deleted the OTG (USBC) hardware and have commented out the code to check for the OTG power., Otherwise we are using the basic defconfig and the DK2 devtree.
I've build chromium from meta-browser for stm32mp157 dk. When run chromium I'm getting:/usr/bin/chromium: error while loading shared libraries: libgbm.so: cannot open shared object file: No such file or directoryWhen use wayland version everything works fine. Any ideas what can be missing please? Thanks.
In AN5031 Rev4,Figure 49. Gigabit Ethernet 2-port switch example with VDD = 3.3 V (RTL8363NB-VG)There is the RTL8363NB used, but I can't find the driver anywhere.Can you provide the driver file or tell me where it is?
Hello!I am trying to replicate the workshop STM32MP1 - 11 Inter-Processor Communication Lab Example. I create a new STM32 project and copy all the data from the lab example. Then I connect the device (STM32MP157C-DK2) but the /dev/ttyRPMSG0 does not initialize (so I can´t send message between processors):My programSTM32MP1 - 11 Inter-Processor Communication Lab Example I create my program in STM32CubeIDE version 1.10.1.How can I initilize ttyRPMSG0 and ttyRPMSG1?Thanks!
We quite recently learnt of the move from U-Boot SPL to STM32DDRFW-UTIL and that the MX too would not longer work with the former. That wasted a decent amount of time.The problem is although the code for STM32DDRFW-UTIL is available our PMIC is on I2C6 and the code for the DK2 board doesn't abstract the connection of its PMIC to I2C4 cleanly.For example there's a function called BSP_I2C4_WriteReg that calls I2C4_WriteReg. Elsewhere it says#define DISCO_I2C4_CLK_DISABLE() __HAL_RCC_I2C4_CLK_DISABLE()and there are a load more defines that DISCO_I2C4 is I2C4_something. I feel a lot more of this could have been done making better use of pre-processing to reduce the repetition of things of the form#define <w>_I2C<n>_<x> <y>_I2C<n>_<z> .It should be that the disco's STPMU1_Register_Write calls I2C4_WriteReg and that's the board abstraction.Is there a guide to the simplest way to change the I2C port the PMIC is connected to in STM32DDRFW-UTIL ?Thanks,Jon
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 {
In engineering mode (BOOT0:off, BOOT2:On) I want to update my cortex-m4 firmware from CMD, not an IDE. What is the command to do so?Thank you!Note: I tried using the STM32_Programmer_CLI executable but it keeps seeing the a7 only, I cant communicate with the m4.Note: I think the IDE uses OpenOCD to do so but I can't find how to extract the command line it uses.
I'm having trouble closing a device as per the recommended method.STM32MP> fuse read 0 0 Reading bank 0: Word 0x00000000: 00000017  
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
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.