Get ready for the STM32 Summit 2026 | Online, November 3
Ask questions and find answers on STM32 microprocessors, including hardware, power, DRAM, flashing, interfacing, device tree, and peripherals.
Most recent activity
Hi,Can anyone provide dac sine wave genearation Example using stm32mp1 processor.
I loaded my custom built yocto image into my SD card using the STM32CubeProgrammer and the process was completed successfully.However, when I toggled the boot switches to boot from SD card, I was not able to connect my host computer (a Ubuntu 20.04 desktop PC) to STM32MP1 board via CN11. When I plugged the micro USB cable from my host computer into CN11 on the STM32MP1 board, my host computer did not detect any new USB device. Can you please advise the steps to troubleshoot this?
HiWe are using stm32mp157a processor in my custom board.We want to configure DAC in cortex M4.In stm32h745xi DAC has Default Timer for interrupt.Where as in stm32mp157a we dont have that timer configuration for DAC .you can see the difference in below attachments.
Hi,I've finally reached the stage where I can test the SSP flowI burned a debug AES128GCM key on my ST-HSM-v2 cardI created a 148 bytes secrets file and passed it through TrustedPackageCreator tool to get the 244 bytes fileI created a signed ssp-tf-a binAnd I have a stm32mp157f-ev1 board to sacrificeI am following commands inhttps://www.st.com/resource/en/application_note/an5510-overview-of-the-secure-secret-provisioning-ssp-on-stm32mp1-series-stmicroelectronics.pdfandhttps://www.st.com/resource/en/user_manual/dm00403500-stm32cubeprogrammer-software-description-stmicroelectronics.pdfHere is where I am currently stuck at:The command: "STM32_Programmer_CLI.exe -c port=USB1 -ssp .\secrets.ssp .\tf-a-ssp-stm32mp157f-ev1-ssp-signed.stm32 hsm=1 slot=2" always failsscenario #1:board is started into DFU mode -> I execute the command (as suggested by the first doc as a valid method)I get:USB speed : High Speed (480MBit/s) Manuf. ID : STMicroelectronics Product ID : DFU in HS Mode @Device ID
..
Could you explain to me what is the purpose of the different bits associated to the tampers?I am mainly focus on using the passive tampers of the STM32MP1 and I have seen the following configuration bits I don't fully understand:What I understand:Register CR1 - TAMPxE = Enables/Disables the tamperRegister CR2 - TAMPxTRG = In PASSIVE mode determines if the tamper is triggered in logic level 0 or 1.Register CR2 - TAMPxNOER = Does not erase the backup register/does not block reading of the BCKSRAM.Register SR - TAMPxF = Flag set when the tamper is triggered.Register CSR - CTAMPxF = Bit to clear the SR tamper flag.What I am confused about:Register CR2 - TAMPxMSK = Does this bit stops the system to execute the interrupt and stops the backup register erasure? What is the difference between setting this to 1 and setting TAMPxIE to 0 + TAMPxNOER to 1?Register IER - TAMPxIE = I do understand this enables/disables the interrupt generated by the tamper triggered but I do not understand the relati
HI,I'm not able to get the FDCAN filter working on a STM32MP157C-DT2. I'm able to receive valid ID' with no problem, however, invalid ID's are getting through.Would someone be kind enough to take a quick look at my setup to make sure I did not miss anything. Please see attached code.Thank you!
I was working on the STM32MP157A-DK1 board which has Cortex-A7 + Cortex-M4 processors. I wanted to configure the watchpoints present specifically on the Cortex-A7 processor via C code. The Cortex-A7 technical reference manual indicates the use of MRC and MCR instructions for the same, which I think should be inlined into my C code. But I am not completely sure about this. If I try to configure using MCR instruction, it would involve configuring the general-purpose register first(R0-R14) first to move some value into the debug register, which I was not able to do. Kindly someone help me with some required documentation.
Hi all,I was wondering whether we can achieve a PWM frequence of 1-3Hz with the existing timer which we have. I am targeting to generate a PWM signal within the same frequency range but using A7 as primary.How can we achieve that ?? I do have some idea looking at the blog here : https://wiki.st.com/stm32mpu/wiki/PWM_overviewWhat shall be the reference period value here? How can we perform calculation for any period value?
Hello,I am having a hard time setting the DDR clock at pll2 for an stm32mp157.The clock has been configured to 528MHz using CubeMX. I checked cfg for pll2 in the DeviceTree against the Datasheet / Referance Manual and all settings seem correct.Yet /sys/kernel/debug/clk/clk_summary returns 533MHz for pll2_r.PLL2 gets 24MHz from HSE. My current configuration for tf-a:&rcc { ... pll2:st,pll@1 { compatible = "st,stm32mp1-pll"; reg = <1>; cfg = < 2 65 1 1 0 PQR(1,0,1) >; frac = < 0x1400 >; }; ...PLL2 gets configured in the dts-file for tf-a only. For kernel and u-boot there are only empty rcc-nodes:&rcc{ u-boot,dm-pre-reloc; status = "okay"; /* USER CODE BEGIN rcc */ /* USER CODE END rcc */ };Any ideas?
Hi,We are using stm32mp157a processor in my custom board.I need to select SPI2_NSS for PB9 But when i configure PB9 as SPI2_NSS it is not configured as SPI2_NSS.We are unable to enable Hardware NSS signal Option in Stm32 cube MX but it is mentioned in Data Sheet.How can i come out of this?Thank You.
On the host computer, i try to connect the terminal to the STM32MP157F-EV1 board using ssh with Ethernet cable but I can't access I use STM32MP157F-EV1 board. I set manually the IP adress of board with Board $> ifconfig eth0 uuu.***.yyy.zzzthen I try connect ssh root of board with this command on my Terminal:ssh root@xx.xx.xx.xxand then I get ssh: connect to host xx.xx.xx.xx port 22: Connection timed out error. How i can fix this issue. Can anyone help me?Kind regards
I followed the guide from the following ST's video: https://www.youtube.com/watch?v=PsiFDHH87vo&t=407s In the guide, the A7 core is initiating the communication. I have been playing with the code to make M4 the one to initiate the communication, but still no luck.Any guidance would greatly be appreciated.
HiI try to implement a virtual UART communication between the A7 and the M4 on a STM32MP157 device based on OpenAMP. I used the OpenAMP_TTY_echo example from the cube firmware package and adapted it to my own board. The virtual UART is working. But there are log commands in the example like " log_info("Virtual UART0 OpenAMP-rpmsg channel creation\r\n");" and this messages are not printed.Is there a way to print this logs on the Linux terminal that is connected to the A7 or to forward it to an additional UART or something similar?Thanks.
Hi.... there Hope you all are doing well From past few days, I'm playing with STM32MP1I need to integrate the Quectel EG25G module with the image having ppp functionality To do so, i have enable ppp support at Make-menuconfig and build the image Now the problem is, after building the image from scratch, i haven't found the directory /etc/pppEven i have also try with the installation from apt-get But unfortunately, it's not working Any suggestions ?Thanks
Hi everyone,I'm new to using STM32MP1, in particular I bought a STM32MP157A-DK1 and I wanted to know if it was feasible to load Linux with the classic GUI, open a TCP-IP server and run some python code that I had already developed.Thank you all
Same situation as before - using a STM32MP157C based design + KSZ9021GN PHY but now actually wired for MII mode. Previous board was wired for GMII mode, even verified by Microchip/Micrel, not realizing the MPU did not support that mode (should have checked with CubeMX!) . So, we made the change to actually MII wiring into a different but similar board being designed at the time. That board is now being brought up. Again, PHY issue, but different this time and I hope its not another design error. I suppose there could be an assembly problem of course. I only have one board currently to test. Here is the TL;DR of the bootup relating to ethernet. Note "device missing", and we are at address 3. ... [ 2.510008] stm32-dwmac 5800a000.ethernet: PTP uses main clock [ 2.514391] stm32-dwmac 5800a000.ethernet: no reset control found [ 2.520607] stm32-dwmac 5800a000.ethernet: No phy clock provided... [ 2.527384] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42 [ 2.533753] stm32-dwmac
I am debugging a STM32MP1 boot but the bootrom does not manage to boot the FSBL from the SDMMC interface.I extracted the traces and ran the bootrom trace analyzer script. However, some of the error messages contain error codes for which I could not find an explanation.The relevant lines are:< @ 00981105 | [ERR ] - SD_OverallRetryCnt ( 0x00000003 ) > < @ 00981491 | [ERR ] - SD_InitDetailedErrorDesc ( 0x00000029 ) > < @ 00981907 | [ERR ] - SD_InitFailed >What do the hexadecimal codes mean (the 0x00000003 and 0x00000029)?In case it is needed, the full output from the script is attached.Thank you for your help
Hi,I want to perform the SSP process as detailed at:https://www.st.com/resource/en/application_note/an5510-overview-of-the-secure-secret-provisioning-ssp-on-stm32mp1-series-stmicroelectronics.pdf(I also went over the STM32_prog documents)I am now trying to program my HSMv2 card and I don't understand which file I need to provide in "Personalization data file"(Trusted Package Creator - HSM Tab)There are 2 options:STM32MP1_5000200A_SSP_01000000_00000000.enc.binSTM32MP1_5000300A_SSP_01000000_00000000.enc.binI don't understand which one I need to pickmy MPU is "STM32MP157CAB3" (Rev Z)is it 5000300 because of the "3" after the "CAB" ?The "5000" part I understand, I can see this value in the DFU device infoThe "200" vs "300" I don't understandAccording to the Docs, I need to know the product ID of my MPUAnd they suggest using "STM32_Programmer_CLI –c port=swd –gc "certificate.bin"" to find out this valuebut this command is failing:"an error occurred while uploading data from the virtual part
Our board is similar to STM32MP157C-DK2 Disco board - All the Developer packages has been installed, At the initial FSBL stage itself board is not booting whereas required power supply is provided, In which the Voltage (VDDCORE_1V2) value related to DDR circuit has fallen below Threshold voltage to 0.88V , so the voltages related to it has also went down to 0v. What is the solution to wake up the MPU ?
Hello. I've been trying to make the ADC work in my stm32mp157f-ev1 board. It is my understanding that I need BSP to make it work because when I disabled BSP in the ADC example code I noticed receiving the same result as my code. When I try to add the BSP files provided in the mp1 package I get errors saying that the I2C_HandleTypeDef is not defined. I tried to work around the issue but to no avail. Is there something I'm missing that I should do or what? Thanks for any help provided
[ 0.056781] Serial: AMBA PL011 UART driver[ 2.010824] stm32-usart 40010000.serial: interrupt mode for rx (no dma)[ 2.010858] stm32-usart 40010000.serial: interrupt mode for tx (no dma)[ 2.010901] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 56, base_baud = 4000000) is a stm32-usart[ 3.202640] stm32-usart 5c000000.serial: interrupt mode for rx (no dma)[ 3.207831] stm32-usart 5c000000.serial: interrupt mode for tx (no dma)[ 3.214512] 5c000000.serial: ttySTM1 at MMIO 0x5c000000 (irq = 57, base_baud = 4000000) is a stm32-usart[ 3.224238] serial serial0: tty port ttySTM1 registered
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.