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
We have several STM32MP157A-DK1 used for an european project and we have several problem about the Ethernet network configuration. We have to change the IP address and we followed the ST wiki about network configuration using the “ip addr add……�?, but the edits are volatile and vanishes after the board reboot. We have not found other methods (like “/etc/network/interfaces/eth0 “) to edit network settings. Could we have a support on that configuration?
Hi, I'm currently working with the STM32MP157-DK2. I built a firmware to run on the Cortex M4. To load/start/stop the firmware by the A7 I use :echo -n "firmware_name" > /sys/class/remoteproc/remoteproc0/firmwareecho -n start > /sys/class/remoteproc/remoteproc0/stateecho -n stop > /sys/class/remoteproc/remoteproc0/stateSo far it works fine.If I run the firmware the first time after a reboot all works fine. But if I stop the firmware, load and start again it begins to run and hangs up.periphery the fw uses: SPI, GPIO, TIM, DMA, DDR, UARTthird party: openAMP, FreeRTOS, virtUart, RESMGR_UTILITYIs it possible to reset M4 and the peripherals without rebooting A7?thanks in advanceregardsLukas
I am using the STM32MP157C-DK2 board. I fixed the stm32mp157a-dk1 file as shown belowGenerated the device tree blobs (* .dtb) and updated the device tree blob on the board.I sent an echo "hello!" > /dev/ttySTM1and I see that the RTS pin is held for too long, I think that this pin is held all the time while the file is open by the operating system. Then I launched the Modbus-RTU test application. reception and transmission work correctly, but the RTS pin does not switch. The RTS pin was pressed to the ground when I launched the application and released when I closed the application.How to enable hardware flow control (rs485)?
I want to install Midnight Commander (MC) with following command:root@stm32mp1:/root# apt-get updateReading package lists ... Doneroot@stm32mp1:/root# apt-get install mcReading package lists ... DoneE: Unable to locate package mcUnsuccessfully, need your help
I see that the MAC address of the Ethernet is stored in the OTP memory, how to program the OTP data, and whether there are relevant instructions. Is there an editing tool for OTP data?
Hi,We're using a STM32MP157C on a custom board and trying to get ethernet over USB to work. We have a type B USB connector on the board and when a cable is connected, the USB peripheral seems to get suspended as the logs from dwc2 shows. We've seen that there are patches for forcing sessions to be valid and added "force-b-session-valid" to the DT node. Yet the only thing we see when we connect is the suspend interrupts firing. Any ideas what's going wrong here?Thanks
Hi,not sure if I am missing something obvious here:https://github.com/STMicroelectronics/logicanalyserI cloned the sources and imported everything into CubeIDE, however it does not see any make targets, when I try to build how2eldb's main.c I get:**** Build of configuration Debug for project how2eldb **** Nothing to build for project how2eldbI can build other M4 examples just fine, so it does not seem to be a general setup issue with my IDE. Any hints on how to proceed?I am using STM32CubeIDE version 1.3.0 Build: 5720_20200220_1053 (UTC) on Linux with an STM32MP157A-EV1 board.Kind regards,Jin
Hello, we are going to develop an application which requires the usage of a cortex-m core that communicates through ethernet.Both the wiki and the migration guide (AN5253) from cortex-m4 to MP1 says this is not possibile. Is it really true? Looking at the reference manual this is not clear. Moreover, if I look at this page, https://wiki.st.com/stm32mpu/wiki/File:STM32MP1IPsOverview.png in old Overviews, back to 2018, it seems possibile to use the eth module via the cortexM4.Can anybody help? Thank you very much, best regards.Cesare
Has anyone used OPENAMP in their projects without HAL? I usually do not use HAL in my projects. IDE SW4STM32 for Linux. with thanksAlexander
I want to exchange data between M4(running custom firmware) and A7(running OpenSTLinux) by using the Linux RPMsg framework.The ST-wiki refers to https://www.kernel.org/doc/Documentation/remoteproc.txt.I tried to run the example given by kernel.org, but without success.It seems the problem is the linux/rpmsg.h file delivered by the developer package ecosystem release 1.20 (file attached below). Simply replacing the rpmsg.h file with a common one (attached below) does not solve the problem because further .h files are missing.I don't want to use the normal read() / write() functions on the ttyRPMSG.Any suggestions?thanks in advanceLukas
Can I use STM32MP1 without an operating system?Linux is harder for me to master than a microcontroller.It would be convenient if the cube generated code hal for the processorIs there a similar feature planned?If not, is there a step-by-step instruction on how I can run custom bsp for Linux and compile it?
I made linux configuration by virtualbox. and I did copy to board kernel file by ssh(scp command). now I am testing M4 firmware .https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157C-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-M4/Modify,_rebuild_and_reload_a_firmwareI can't connect consol using ssh by STM32CUBEIDE. (7.stard debug session)157C-DK2 board's ip 192.168.0.39 (ifconfig)my linux in vitual box ip 172.19.0.1 (ifconfig)Debug configration -> Dubugger -> Inet Address : 192.168.0.39 but it is not working. I don't know why it's not working. beause I already used ssh when i downloaded kernal image. let me know how to solve the issue. thanks.
I need to develop M4 and how do I configure system resources,for example,we need to configure uart on M4,the modification as follows,but it doesn't work:&m4_rproc { m4_system_resources { status = "okay"; }; }; &m4_uart3{ status = "okay"; };
Hello,Sorry for the easy question but I am facing an issue while connecting STM32MP1 to wifi. I have followed steps 1 to 3 (reference link). At the end of step 3, I can connect my STM32MP1 device from remote machine using the following command:ssh root@10.0.0.88However, when I execute the following command:ping google.com or ping -c 6 google.comIt returns the following output:ping: google.com: Temporary failure in name resolutionSomething is wrong with the wifi setup (or not established properly). Could you please guide me how can I resolve this?Thanking you,Saurabh
I'm using STM32MP157A-EV1.It configured boot from eMMC mode.This is because SDIO is used as interface.I inserted the uSD card into the slot for trial.The information of SDIO is as follows.root@stm32mp1:~# cat /sys/kernel/debug/mmc0/iosclock: 99000000 Hzactual clock: 99000000 Hzvdd: 17 (2.9 ~ 3.0 V)bus mode: 2 (push-pull)chip select: 0 (don't care)power mode: 2 (on)bus width: 2 (4 bits)timing spec: 6 (sd uhs SDR104)signal voltage: 1 (1.80 V)driver type: 0 (driver type B)When the same uSD card is inserted in another company's evaluation board, it is as follows. (CPU is Cortex A53)root@localhost:/home# cat /sys/kernel/debug/mmc0/iosclock: 208000000 Hzactual clock: 200000000 Hzvdd: 21 (3.3 ~ 3.4 V)bus mode: 2 (push-pull)chip select
Hi all! Can anybody give advice about other methods of working with interconnect between MPU and MCU. I saw example working with RPMsg, but in this case we have a problem with memory, because we need a big buff in MCU for data. Now we trying to use DDR SDRAM, but STM doesn't recommended to use it. So, maybe anybody faced with it or solved it?
I want to build image with appliance of build development and network features? I cant understand the process. Where can I find a manual for yocto and stm?
Hi, I'm currently porting OpenAMP virtio to Arduino platform: https://github.com/stm32duino/Arduino_Core_STM32/pull/766I would like to share one thing about the OpenAMP examples in CubeMP1.Here is the implementation of MAILBOX_Poll:int MAILBOX_Poll(struct virtio_device *vdev) { /* If we got an interrupt, ask for the corresponding virtqueue processing */ int ret = -1; /* USER CODE BEGIN PRE_MAILBOX_POLL */ /* USER CODE END PRE_MAILBOX_POLL */ if (msg_received_ch1 == RX_BUF_FREE) { /* USER CODE BEGIN MSG_CHANNEL1 */ /* USER CODE END MSG_CHANNEL1 */ OPENAMP_log_dbg("Running virt0 (ch_1 buf free)\r\n"); rproc_virtio_notified(vdev, VRING0_ID); msg_received_ch1 = RX_NO_MSG; ret = 0; } if (msg_received_ch2 == RX_NEW_MSG) { /* USER CODE BEGIN MSG_CHANNEL2 */ /* USER CODE END MSG_CHANNEL2 */ OPENAMP_log_dbg("Running virt1 (ch_2 new msg)\r\n"); rproc_virtio_notified(vdev, VRING1_ID); msg_received_ch2 = RX_NO_
Hi,We are currently developing on the STM32MP1. Our goal now is to be able to debug the core at the different running stages : TF-A, Optee, U-boot and kernel. We are using the DK2 with a ST-link and openOCD.When using your Setup.gdb we experience some issue during the debug session : We can't use the step instruction but we can use the stepi instruction. When we use the step instruction we have the following error on openOCD :Error: Timeout waiting for cortex_a_exec_opcode Error: Timeout waiting for InstrCompl=1 Error: Timeout waiting for dpm prepare Error: Timeout waiting for cortex_a_exec_opcode Error: can't add breakpoint: unknown reason Warn : negative acknowledgment, but no packet pending Warn : negative acknowledgment, but no packet pendingThe exact same error message is found when loading u-boot symbol after gdb is connected to openOCD.The software breakpoint doesn't work, only the hardware breakpoints break the core.We also have some questions regarding this debug script :Wha
Hi,i build a yocto and now my goal is to flash the M4 from the yocto system. I tried with echo to the Proc system but geht the following Error. Are there any hint to flash the m4? Is there a better tool for do it?[88303.356298] remoteproc remoteproc0: powering up m4[88303.359833] remoteproc remoteproc0: Direct firmware load for ./OpenAMP_TTY_echo.elf failed with error -2[88303.369746] remoteproc remoteproc0: request_firmware failed: -2[88303.375106] remoteproc remoteproc0: Boot failed: -2many thx to everbody and best regardsNiklas
Hi all,If I dedicate the MCU SRAM2 for data and MCU SRAM4 for DMA as shown here, do I get CCM like performance or do I have a risk to have contention on the SRAM2 ?After looking at the bus matrix, I suspect there is no risk but I want to make sure it is the case.
Hi There,When the STPMIC1 goes into POWER_ON ALTERNATE mode via the PWRCTRL pin, does the activation of other Turn-ON condition sources like PONKEY or WAKEUP pins will have a resulting effect to the state of POWER_ON mode? (i.e. also triggers the PMIC back to POWER_ON MAIN mode etc?)Thanks,Regards,Steven
Hello, We are building a custom board using STM32MP157A-DK1 and we want to boot the board using EMMC of 4GB.Now I am looking for the procedure to partition the EMMC flash the yocto image in to the EMMC partition.Can Anyone help me to know how to do these.RegardsSrikanth.
Hi,I am using STM32MP1 and setup STM32MP1_artificial_intelligence_expansion_packages to run AI algorithm.Could you please guide me on: Is there any recommendation on which camera to use for AI application from ST side? Can I use Raspberry Pi camera or something like that with STM32MP1?Thanking you,Saurabh
Hi,I have followed the steps described here https://wiki.st.com/stm32mpu/wiki/STM32MP1_artificial_intelligence_expansion_packages to setup AI package on STM32MP1. Everything is working fine.However, I have my own object detector model file i.e. model.tflite file. I know there are two ways to run object detector model 1) using Python code and 2) using C/C++ code. I tried to run my object detector model using above both approaches. Model works fine with python code but it doesn't detect anything using C/C++ code. I used the following command to run object detector using python code:root@stm32mp1:/usr/local/demo-ai/ai-cv#python3 python/objdetect_tfl_multiprocessing.py -m models/model.tflite -l models/labels.txt -i models/images/Similarly I used the following command to run object detector using C/C++ code:root@stm32mp1:/usr/local/demo-ai/ai-cv/bin# ./objdetect_tfl_gst_gtk -m ../models /model.tflite -l ../models/labels.txt -i ../models/images/In my opinion C/C++ code should take less infer
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.