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
..
Hi,We are working on STM32MP151, with custom linux, no PMIC.We have a reset button connect to NRST line, it works fine in Uboot or during linux boots. But right after the login prompt occurs, the reset button is nolonger work. When we hit the button, system seems crashed, no response from command prompt. We have to disconnect power and reconnect again.Does anyone have experience with it?many thanks.
Hi everyone,I write a function to start all other functions without any parameter like Start(); in while, but in this funciton I write different function like thisvoid Start() { if(huart->Instance == USART1) measure(tx1_buffer); else if(huart->Instance == USART2) measure(tx2_buffer_buffer); }so I want to know in this function which UART is return to function, bcs It is a parameter of measure function. Can I use flags to specify which uart is? What would you recommend?
Hi, I want to debug OP-TEE on STM32 MPU board.Using 'st_stm32mp157f_dk2_demo_defconfig' configuration of STM32MP1 Buildroot external tree(buildroot-external-st), We indirectly confirmed that OP-TEE is built and ran normally on the board with Buildroot.I would like to customize the code in optee-os using the APIs provided by OP-TEE. Before I do that, I'd like to try to print out whether the code works at a certain point in time and the results of the modified code using the OP-TEE API and track the function calls.I followed the OP-TEE official document, but the debug log is not captured. In addition, the document only guides you on how to track function calls.Then, while reading the [How to debug OP-TEE] page on the STM32MP1 Wiki(wiki/How_to_debug_OP-TEE), I realized that the debug log is printed on the OP-TEE console(Marked by the cursor in the attached picture). So what I'm curious about are two things.1) Where do the OP-TEE debug results go? (What is an OP-TEE console?)2) Is the
STM32MP157C-dk2I am trying to update the Board using SUART3 (Pins PB10, PB12) over STM32CubeProgrammer. The connection to STM32CubeProgrammer is established successfully. Unfortently after downloading the fdbl-boot (tf-a-stm32mp157c-dk2-uart.stm32) the failure appears while system tries to start from downloaded part.See console:------------- 19:25:00 : File : tf-a-stm32mp157c-dk2-uart.stm32 19:25:00 : Size : 216.38 KB 19:25:00 : Partition ID : 0x01 19:25:00 : Download in Progress: 19:26:23 : File download complete 19:26:23 : Time elapsed during download operation: 00:01:23.074 19:26:23 : RUNNING Program ... 19:26:23 : PartID: :0x01 19:26:23 : Start operation done successfully at partition 0x01 19:26:54 : Timeout error occured while waiting for acknowle
Product: STM32MP153CAA3we are trying to debug the Cortex M4 over the SWD Interface. The setup of the Bank0,1,2 is configured correct (Engineering Mode) . During the analysis of SWD we see that Debugger fails to access ROM Table (Address: 0xE00FFFE4, CM4ROM_PIDR1) Expected alue is 0x004. Read value is 0x7310F507The IDCODE and the settings of registers before are matching the expectation.What are the reasons for failing to access those registers ? (clocks, voltage ...)
Hello,we are using STM32MP157AAA for our custom board.we are trying to boot from uboot 2021-10 version facing an issue like MMC card not found. But in the same board from uboot 2018 version it is working fine.Please help us in this regards.please find the image for reference. Regards..Navaneeth
We have a custom board based on STM32MP157 MPU and running AOSP, with AUO G101EVN010 LCD-TFT panel using an LVDS to LTDC converter for interface.Setup of the system is done using the STM32MP1 distribution for Android. I am able to get the panel to display the Android UI, but the issue is the colors on the UI.Below is an image of the Android home screen:Observation: RGB appears to be BRG.When I pull down the notification panel from the top, the notification overlay shows and it is observed that colors in the background appear correct as seen below: Not getting where the issue is.Using the MEDIA_BUS_FMT_RGB666_1X18 format for DRM and LTDC DT node settings as follows:&ltdc { /* compatible = "simple-panel"; */ status = "okay"; bits-per-pixel = <16>; bus-width = <18>; display-timings { timing { clock-frequency = <68930000>;
Using the STM32MP157 development kit, I have configured two "GPIO Analog" lines that are exposed through CN13 (pins 1 and 2).I am trying to set these up as such. From going down the rabbit trail of documentation:https://wiki.st.com/stm32mpu/wiki/GPIO_internal_peripheral#Software_frameworkshttps://wiki.stmicroelectronics.cn/stm32mpu/wiki/GPIOLib_overviewand then:https://wiki.stmicroelectronics.cn/stm32mpu/wiki/Overview_of_GPIO_pinshttps://wiki.stmicroelectronics.cn/stm32mpu/wiki/Pinctrl_overviewIt seems to confirm that I need to use "pinctrl" technique to set these. Okay. I have configured them with CubeMX. However, my DTS file doesn't reference these pins at all. I've gone through the exported DTS and I do not see anything referencing PG3, or PH6.So, I feel like this has failed at the outset. Is there a trick to this? I assume once I get these configured I can read the value using libgpio API functions.
I am using stm32mp157f-dk2 and followed https://wiki.st.com/stm32mpu/wiki/Getting_started with help of stmcubeIDE. I am able to debug M4 core and also see SWV prints with ST A7 image and M4 image. Both images are available through above ST web site. I want to try same thing with my Linux image but I am struggling because M4.elf is not getting transferred with default STMcube debug configuration as default debug configuration expects "root" and do not allow to modify username. Is there any way to modify username or is there any way to change debug launch configuration As User name field is "READ ONLY" thus I am not able to modify. Is there any way to modify these debug configuration
We are using ST32MP153 running mainline linux on the A7 cores. And we want to use the M4 for realtime processing and output. Therefore some resources shall be used by Linux at the A7 cores. Some by the M4. If we get it right, ST's solution for that is the resource manager https://wiki.st.com/stm32mpu/wiki/Resource_manager_for_coprocessing. But this driver is not available at kernel.org. What's the reason for that? Is it planned to add it? And what are the alternatives for mainline linux?
Hi Team,We are trying to boot the STM32MP157A-EV1 board with our eMMC device, but it is booting intermittently.As per our debugging the failure case, eMMC device will respond ACK within ~15ms but ROM code disable the CLK in ~50ms(before downloading the data).Is there any OTP configuration required for ROM code to wait more than 50ms.
I have a Ubuntu 22.04 server I use for building Yocto distros for the STM32 MPUs. I would like to install the programmer on that so I could run some automated tests and flashing on my build images. Is it possible to install the software without the GUI installer?
Board: STM32MP157F-DK2Distro: st-image-weston with kernel 5.15.67 (Starter Package)root@stm32mp1:~# modprobe rpmsg_tty root@stm32mp1:~# modprobe rpmsg_char root@stm32mp1:~# lsmod | grep rpm rpmsg_char 16384 0 rpmsg_tty 16384 0 root@stm32mp1:~# stty -onlcr -echo -F /dev/ttyRPMSG0 stty: /dev/ttyRPMSG0: No such file or directory uImage is recompiled and my own dtb file is in use.Why is the device file not created and how can I achieve the creation?Thank you.
Hi,my situation is this:We want to use a "liveSD" image and boot from emmc by default if "liveSD" isn't found.The SD card should be inserted even if it is not a "liveSD" card, boot eMMC should be running.I know we could override the OTP boot sequence, but can BootROM detect this from the "partition table" or device?
Hi All.I'm attempting to build an OpenSTLinux based software using a virtual machine VMWARE UBUNTU 16.2.5 build-20904516Using the command "bitbake -v -k <my_recipe_bb_name_file>" i have the error message: " ERROR: Nothing PROVIDES '–v' "Using the command "bitbake -k <my_recipe_bb_name_file>" i have the error message: " ERROR: Nothing PROVIDES '–k' "Using the command "bitbake <my_recipe_bb_name_file>" i have not errors but the compilation after many houres fails Using the command "bitbake -c cleanall <my_recipe_bb_name_file>" i have the error message: " ERROR: Nothing PROVIDES '–c' "If I use another PC with the same virtual machine and the same "layers" folder, I have no errorsWhy? Thanks
I am testing lan by connecting usb ethernet (LAN7850) to stm32mp157f-dk2 board.Drivers microchip.ko and lan78xx.ko are loaded automatically and device eth1 appears normally.But when I connect or remove the cable to the lan port it doesn't recognize it.It appears to be registered as an interrupt, but the log is 0.$cat /proc/interrupts92: 0 0 lan78xx-irqs 17 Edge usb-001:005:01However, once the cable is connected and rebooted, the ip is normal and the communication is normal.Connecting usb LAN7850 to ubuntu x86 works fine.When the cable is disconnected, the usb interrupt does not seem to be transmitted normally. What is the problem?Any solution?Fix lan78xx.c or microchip.c
An error appears when executing the crypto_skipher_decrypt(tfm)->decrypt(req) code inside the linux-custom directory of the buildroot. Some violation seems to occur when calling the decrypt(req) function. If I annotate that part, the error doesn't come up.I want to know the reason for the error and the solution.
I'm now trying to read OTP 13~15 from remoteproc driver to enc/decrypt m4 firmware.From NVMEM overview. I learn below informationOTP 13~15 are non-secured areaThe name of device is "stm32-romem0"NVMEM kernel APII can successfully get OTP 13~15 from user space.To get OTP 13~15 in linux kernel I write code that read nvmem device with the NVMEM kernel API.I define a match functionint rproc_nvmem_match(struct device *dev, const void *data){ const char *device_name = dev_name(dev); const char *p_name = data; int length = strlen(p_name); if (memcmp(p_name, device_name, length) != 0) return 0; return 1;}Then, use nvmem_device_find and nvmem_device_read to read OTP 13~15. ( I use offset both 0x5C005234 and 0x234. ) u8 *buf_uniqueId; buf_uniqueId = kmalloc(24, GFP_KERNEL); struct nvmem_device *nvmem = nvmem_device_find("stm32-romem0", rproc_nvmem_match); int err = nvmem_device_read(nvmem, 0x234, 24, (void*)buf_uniqueId); if (!nvmem) printk("nvmem error"); printk("err : %d", err);But I
Hi,I would like to make my STM32MP157 communicate with a FPGA in spi. I need to make long transfer (2-3 Mb) spi to get data acquired by the FPGA. But when I use the "spi_sync_transfer" function in my driver, I get the following kernel message:#spi_stm32 4000b000.spi: Overrun: RX data lost#spi0.0: SPI transfer failed: -5# spi_master spi0: failed to transfer one message from queueThis driver works on an ompa3 platform.I use a kernel linux 5.10, there is my device tree overlay :/dts-v1/; /plugin/; &spi2 { ifsttarhf8ch: ifsttarhf8ch@0 { compatible = "ifsttar,ifsttarhf8ch"; reg = <0>; spi-max-frequency = <100000000>; interrupt-parent = <&gpioi>; interrupts = <9 IRQ_TYPE_EDGE_RISING>; }; };and my device tree :#include "stm32mp157.dtsi" &spi2 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&spi2_pins_mx>; pinctrl-1 = <&spi2_sleep_pins_mx>; cs-gpios = <&gpiob 9 0>, <&gpioi 1 0>, <&gpi
Hi, I would like to set all 8 pins in port Z to unsecure so i use these pins as other ports. I read data sheet portz is set to secure mode as default after reset. And I tried write into it and system crashed.Thanks
I am currently developing using STM32mp157fad and have a question. Here are the steps I have taken:Used STM32CubeProgrammer to upload the stm32mp157f-ev1 image to an SD card.Used STM32CubeMX to configure the GPIOs to be used with stm32mp157fad, generated code, and copied the device tree generated by the code generator to the SD card with OpenSTLinux installed.I'm wondering if this method is valid for use. If this is not the correct approach, I would like to know more information.
I am using UART over RS-485 on an STM32MP153AAB3.The communication fails because the actual baudrate is off from the specified baudrate. With a specified baudrate of 9600 Bits/s, I am getting an actual baudrate of 9970 Bits/s, as you can see here (time per Bit is 100.3µs instead of 104µs): Changing the baudrate to 115200 Bits/s results in a time per Bit of 8.33µs, i. e. 120000 Bits/s: I set the USART2,4 Clock in the .ioc file to 64 MHz and chose PCLK1 as the source.The value in the BRR register is 0x1A0B which, if I understand it correctly, should correspond to a value for USARTDIV of 416, giving a baudrate of 9615 Bits/s (64,000,000/(16*416) = 9615). My settings are as follows:static void MX_UART4_Init(void) { huart4.Instance = UART4; huart4.Init.BaudRate = 9600; huart4.Init.WordLength = UART_WORDLENGTH_8B; huart4.Init.StopBits = UART_STOPBITS_1; huart4.Init.Parity = UART_PARITY_NONE; huart4.Init.Mode = UART_MODE_TX_RX; huart4.Init.HwFlowCtl = UART_HWCONTROL_RTS; hua
Hello, I use Optee on a stm32mp157f-dk2 board, version is the and the corresponding BSP :optee-os 3.16.0-stm32mpu-boot v2021.10-stm32mpLinux v5.15-stm32mpAll my changes are committed and built using a yocto meta-layer : https://github.com/embetrix/meta-stm32mp15xthe Optee build config is described here : https://github.com/embetrix/meta-stm32mp15x/blob/kirkstone/recipes-security/optee/optee-os-stm32mp_3.16.0.bb#L33I enabled the PKCS11 TA which is by the way not by default enabled and gave it a try:EC Prime256 Keypair generation:# time pkcs11-tool --keypairgen --key-type EC:prime256v1 --label "testkeyEC" --id 1 --login --usage-sign --module /usr/lib/libckteec.so.0 Using slot 0 with a present token (0x0) Key pair generated: Private Key Object; EC label: testkeyEC ID: 01 Usage: sign Access: sensitive, always sensitive, never extractable, local Public Key Object; EC EC_POINT 256 bits EC_POINT: 044104d7506303c183c36445ef2d5161a5cfe1effaeb12a7b41ef458bc27811d2ddd915518917cd385ec35720324
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.