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 am working with STM32MP157 device based on OpenStlinux. Everything is working fine on the main processor and the cortex M4 MCU. Now I am trying to create a systemd service to launch the M4 firmware with systemctl commands from the user space in the linux, but with no success. Here are contents of my .service file: [Unit]Description= Cortex M4 Firmware Programe[Service]Type=simpleExecStart=/lib/firmware/fw_cortex_m4.sh 'start'ExecStop=/lib/firmware/fw_cortex_m4.sh 'stop'ExecReload=/lib/firmware/fw_cortex_m4.sh 'start'[Install]WantedBy=multi-user.targetPlease note that I can start/stop the firmware by the script fw_cortex_m4.sh. The systemd service lauche does not throw any error but the firmware does not run. I would appreciate any help to make it work. Thanks
how to use vbat in dtsi configuration for RTC back up, i had checked in evk and dk1 and dk2 dtsi, no reference available. any one please share you thoughts
Hi,I'm trying to make a custom board boot, using buildroot with all the official ST releases (tf-a, u-boot, kernel) but it's getting blocked at some point.[ 0.911310] stm32mp1_rcc 50000000.rcc: deferred probe timeout, ignoring dependency [ 0.922691] stm32-usart 40010000.serial: deferred probe timeout, ignoring dependency [ 0.930944] stm32-usart 40019000.serial: deferred probe timeout, ignoring dependency [ 0.940229] mmci-pl18x 58005000.sdmmc: deferred probe timeout, ignoring dependency [ 0.948062] mmci-pl18x 58007000.sdmmc: deferred probe timeout, ignoring dependency [ 0.957626] Warning: unable to open an initial console. [ 0.963738] Waiting for root device /dev/mmcblk0p6...Full boot logs + full kernel (decompiled) dts + other dts:https://gist.github.com/fpoussin/1201546cb9875be12528d363687e0a93It looks like it's waiting on pincontrol, but my DTS is identical to the discovery kits in this regard... Maybe trustzone is blocking? I've tried to copy the etzpc node from the DK board but tha
I have board based on MB1277 design but on my custom board I'm getting this issue:NOTICE: CPU: STM32MP157AAC Rev.B NOTICE: Model: STMicroelectronics STM32MP157C eval daughter on eval mother INFO: Reset reason (0x15): INFO: Power-on Reset (rst_por) INFO: PMIC version = 0x21 INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe3000 INFO: FCONF: Reading firmware configuration information for: stm32mp_io INFO: Using SDMMC INFO: Instance 1 INFO: Boot used partition fsbl1 ERROR: stm32_sdmmc2_send_cmd_req: timeout 10ms (cmd = 0,status = 2000) WARNING: CMD0, Retry: 1, Error: -60 ERROR: stm32_sdmmc2_send_cmd_req: timeout 10ms (cmd = 0,status = 2000) WARNING: CMD0, Retry: 2, Error: -60 ERROR: stm32_sdmmc2_send_cmd_req: timeout 10ms (cmd = 0,status = 2000) WARNING: CMD0, Retry: 3, Error: -60 ERROR: SDMMC1 init failed PANIC at PC : 0x2ffeb033 Exception mode=0x00000016 at: 0x2ffeb033Any ideas what can cause that? It's booting from SDcard.
Hi,we have designed a custom board, based on STM32MP151 and OpenSTLinux 5.10. On this board we use the switch NXP SJA1105S with 3 phys and a MAC-MAC interface between the MPU and the switch. All ports are configured for RGMII mode. At startup(via modprobe) the SJA1105 driver tries to load a default configuration that assigns multiple vlan ids to the ports. Unfortunately it looks like, that the stm32-dwmac driver does not support this by default, because it outputs the message "Only single VLAN ID supported". Is there a possibility to change this behavior of the stm32-dwmac driver?Example Output:[ 80.801160] sja1105 spi2.0: Probed switch chip: SJA1105S[ 80.934971] sja1105 spi2.0: Updating VLAN 1025[ 80.943584] sja1105 spi2.0: Updating VLAN 1025[ 80.952858] sja1105 spi2.0: Updating VLAN 1025[ 80.961709] sja1105 spi2.0: Updating VLAN 1025[ 80.967525] sja1105 spi2.0: Updating VLAN 1025[ 80.977959] stm32-dwmac 5800
root@stm32mp1:~# timedatectl status Local time: Thu 2021-10-14 15:10:06 UTC Universal time: Thu 2021-10-14 15:10:06 UTC RTC time: Sat 2000-01-01 00:00:38 Time zone: UTC (UTC, +0000) System clock synchronized: no NTP service: active RTC in local TZ: noMy RTC is out of sync.This is the date loaded after every boot. Where does system clock get it? This is the timesyncd service.[[0;1;32m*[[0m systemd-timesyncd.service - Network Time Synchronization Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled) Active: [[0;1;32mactive (running)[[0m since Thu 2021-10-14 15:09:43 UTC; 2min 23s ago Docs: man:systemd-timesyncd.service(8) Main PID: 373 (systemd-timesyn) Status: "Idle." Memory: 576.0K CGroup: /system.slice/systemd-timesyncd.service `-373 /lib/systemd/systemd-timesyncd Sep 20 10:44:02 stm32mp1 systemd[1]: Starting Network Time Synchronization... Sep 20 10:44:03 stm32mp1 systemd-timesyncd[373]: System clock time unset or jumped
Hi,On the DK2 board, there is a LBEE5KL1DX-883 from Murata. But I want to use their LBEE5HY1MW (Type 1MW - LBEE5HY1MW | Wi-Fi® Modules / Wi-Fi® + Bluetooth® Modules | Murata Manufacturing Co., Ltd.) in my design. But on their site, they only mentions 'NXP I.MX Linux' . As ST has tried 1DX, will 1MW work on ST's Linux distribution? Furthermore, what about other WiFi modules on the market? Is it easy to run them with STM32MP15x?Thanks.
I am able to flash and debug code on the M4 core for STM32MP1using IAR in the engineering mode.Can you please help me with a similar procedure for Production mode?
Hi, everybody!Referring to this topic, I'm still have issue with USB2514 USB HUB:https://community.st.com/s/question/0D53W000015a2V8SAI/-120369992-dwc2-49000000usbotg-overcurrent-change-detectedThe description of the problem changed a lot. Currently I'm have two same board with same components and schematic and same images loaded.One of the board have no problem with USB HUB. All working fine, second board have problem with high speed USB devices:Here are dmesg's:keyboard/mouse (full speed):[ 1449.719724] usb 1-1.1: new full-speed USB device number 11 using ehci-platform[ 1449.882209] input: Logitech USB Receiver as /devices/platform/soc/5800d000.usbh-ehci/usb1/1-1/1-1.1/1-1.1:1.0/0003:046D:C534.0001/input/input1[ 1449.961800] hid-generic 0003:046D:C534.0001: input: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-5800d000.usbh-ehci-1.1/input0[ 1449.987711] input: Logitech USB Receiver Mouse as /devices/platform/soc/5800d000.usbh-ehci/usb1/1-1/1-1.1/1-1.1:1.1/0003:046D:C534.0002/i
Hi all,I am trying assign DMA to USART3 channel on STM32MP1.I assigned it appropriately in the CubeMX but it looks like it was not able to auto-generate any code regarding the DMA assignment to the USART3.The device-tree bindings look pretty confusing to me. How can I assign it correctly? I checked option use MDMA in the CubeMX and I can see a mdma block generated which is empty. So any directions on how to assign dma to USART3 will be really helpful and appreicated.Thanks.
HiIn my application we need to read the last rest status, whether its a POR or WDOG ret = ioctl(wdog, WDIOC_GETBOOTSTATUS, &status);looks like this support is not available in drivers/watchdog/stm32_iwdg.ccan anyone tell me how add a patch in stm32mp1 board ?
Whether there is a bare - machine routine for MP1?
In STM32mp157f-dk2 board, sdmmc2 is used for inbuilt wifi over SDIO and I am using sdmmc3 with esp32 chip to connect it to wifi over SDIO. I am able to connect ST board to wifi over sdmmc3 but with iperf it is giving constant throughput of 1 Mbps irrespective of change in max-frequency. I was going through kernel module in st linux and found that in sdio_card_irq_get function which will be called while claiming sdio irq, it is creating a kernel thread with name ksdioirqs/mmcX. This thread continuously polls for rx data. This kthread has schedule_timeout() function for minimum 1 jiffies. In my case, 1 jiffies = 10msec as CONFIG_HZ=100. So I think because of this schedule_timeout, I am getting less throughput (with change in CONFIG_HZ=1000 throughput is increased). Is it correct behavior? and if yes then why sdmmc2 throughput is 12Mbps for same frequency as sdmmc2? (sdmmc2 and sdmmc3 is using same driver which is mmci.c)
Hi. I'm using the v2.1.0 ecosystem to build for a target that will boot TF-A & U-Boot from a single ISSI IS25LP016D-JNLE 2 mebibyte quad-SPI NOR flash connected with the rest of the system in e.MMC. (This is to work around the bug in the rev.B STM32MP1 silicon BOOTROM regarding e.MMC boot.)I've used STM32CubeIDE 1.5.1 on Ubuntu 20.04 Linux to configure the device tree and I can read and write the device in Linux booted from e.MMC and have enabled NOR & nor-sdcard features in the machine/config/stm32mp153c-veethree-mx.conf file.However I cannot get U-Boot to detect the 'nor0' flash device in the same way as I can on my STM32MP157A-EV1 kit using mtd list so that attempting to program the NOR flash with STM32CubeProgrammer results in a 'no such device nor0' error.I've added CONFIG_SPI_FLASH_SFDP_SUPPORT=y CONFIG_SPI_FLASH_ISSI=yto build-veethreeconnectbox2-stm32mp1-connectbox2/workspace/sources/u-boot-stm32mp/configs/stm32mp15_trusted_defconfig and I've added the line &
Hi ST Community,We are using STM32MP157C-DK2 board and OpenSTlinux Firmware (v3.1-Openstlinux-5-4-dunfell-mp1-20-11-12) for our development. Currently for DFU from PC, we are triggering USB Boot mode by configuring Boot mode Switch (SW1) manually. But our product have a requirement to trigger USB boot mode from the running firmware automatically. Is there any way to trigger USB Boot mode in STM32MP157C-DK2 board without any manual configuration ?
Hi,We are using stm32mp157a-dk1 target.I have an issue i.e,when i use uboot source code dts file in u boot source code its works fine.when i replace original dts with stm32 cubemx generated dts it didn't works.Can i use cube mx generated dts in place of original dts in u boot.Thanks in advance
Correct me if I'm wrong. UART4 is used to program eMMC via the ROM monitor. Exactly what GBA pins are used? Is there any "special" circuitry involved?
Is it possible to use the STMCUBE expansion for IOTA on STM32MP157DK-2 or is there anyway to use IOTA client libraries.I tried installing the Python library but it would not install.I have the STM32CubeExpansion_IOTA1_V2.0.0 but do not know how to run it on STM32MP157DK-2 or cross compile it for this kit.
Hi!I am following the instructions of this wiki page:https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let%27s_start/Populate_the_target_and_boot_the_imageI have the DK2 connected to my system using the USB OTG port.The boards dip switches are in the correct position.I copied the udev rules to /etc/udev/rules.d/.Pressing "Connect" results in following error: 16:44:36 : STM32CubeProgrammer API v2.8.0 16:50:03 : USB speed : High Speed (480MBit/s) 16:50:03 : Manuf. ID : STMicroelectronics 16:50:03 : Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000 16:50:03 : SN : 003300293030510D32313933 16:50:03 : FW version : 0x0110 16:50:03 : Device ID : 0x0500 16:50:03 : Error: CUBEPROGRAMMER_ERROR_NOT_SUPPORTEDWhat am I doing wrong? Thank you in advance,Gunther
Details:HW: Phytec Sargas Board, which is similar to the STM32MP1-DK2.Build environment: Cross compiling with SDK generated by Yocto.Linux: Yocto build, based on st-image weston.Device Tree configuration: As far as I understood not needed to access single GPIOs.Any help is appreciated :)Code (only partially):#define MEM_DEV "/dev/mem" #define GPIOF_START_ADDR 0x50007000 #define GPIOF_END_ADDR 0x500073FF #define GPIOF_MAP_SIZE (GPIOF_END_ADDR - GPIOF_START_ADDR) #define GPIO_REG_MODER 0x00 /**< GPIO port mode register */ #define GPIO_REG_OTYPER 0x04 /**< GPIO port output type register */ #define GPIO_REG_BSRR 0x18 /**< GPIO port bit set/reset register */ #define GPIO_PIN_4 ((uint16_t)0x0010U) #define GPIO_PIN_OUTPUT_DIRECTION 0x01 /**< Output */ #define GPIO_PIN_OUTPUT_PUSHPULL 0x00 /**< Output Push Pull Mode */ int main(int argc, char **argv) { int ret = EXIT_SUCCESS; static void *mmapBase = NULL; /* Virtual base address */ signal(SIGINT, intHandl
As above, the Altium components point to a library source called "MCD_PARTS_database.DbLib" however I don't have access to this. Is there any way to get the footprints? ThanksDave
Hi all,I am working with a STM32MP157F-DK2 board, and I am trying to implement a Node-Red web application. I use the Openstlinux Developer package on the board and thanks to the package repository given by ST, I was able to install the NodeJS LTS version and npm. Node-Red works well, I can see all my flows in the web browser. In my application, I would like to use the node-red-node-sqlite node to access a database hosted in the STM32MP157F-DK2. Here is my problem: During the installation process, node-pre-gyp is trying to reach an URL where are stored pre-built binaries. However, this URL returns a "Forbidden access" (see image attached), and so node-pre-gyp calls the compiler of the board to build the necessary files. Thus, I cannot install the SQLite node because it requires a compiler during the installation process, compiler that does not exist on the STM32 board. According to the internet, this error from node-pre-gyp seems to be quite common and I did not find a solution that wor
Hi, I'm working on a project based on the STM32mp153 MPU with linux OS.I have configured the TF-A module to manage the tamper with timestamp.When the tamper event occurs, it is reported in stdout.I would like to propagate to the kernel and user space the event detected by the TF-A and the possibility of storing the event itself in a system log.Possibly avoiding polling the deletion of the backup registers.Do you have an Application note where a standard Tamper management procedure is described?RegardsRenato Borromeo
Hi everyone,I'm new to using MPUs.For an application, I need to transfer data from the SRAM (data obtained with the M4) to a DDR buffer in order to communicate with the A7. I based my application on the example here : How to exchange large data buffers with the coprocessor - example - stm32mpuBut in this code, the address of the buffer where to transfer the data by DMA is not given explicitly.So I'm trying to find these addresses to develop my application.I am using STM32MP157C-DK2 board.I hope my question is not too confusing.Thanks,PComb.1
Hi,I have a firmware doing permanent acquisition and processing of a signal coming from SPI on the M4 side - consider it an audio stream.On-demand I would like to save the processed buffer (say ~10 consecutive buffers once in a while, e.g. 1s every 10s) from the SRAM to a permanent file accessible from the A7 Linux userspace.What would be the best way to do this with the least impact on the M4 load ?My first guess was DMA from SRAM to DDR and then have Linux write from DDR to eMMC/SD but isn't there a more direct way ? Thanks a lotYann
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.