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
Hello.I want to use MCU (Cortex M4 core) as PMU for MPU (Cortex A7 core).Is it possible to use it in this way?For this I need the following:It's better to start MCU firmware from another source (not SRAM) - from non-volatile memory. Is it possible?Switch on/off MPU using MCU. For example toggle GPIO or using registers.Don't stop MCU firmware by MPU reboot.Move MPU to flashing mode and exit it using MCU.Is all this possible?
I already tried the site of st wiki. I only want to get to run the starter package for my work at the university. I saw that you can flash the sd-card wit windows-os. Is that right?I did it with CubeMxProgrammer. And the terminal said programming was succesfully.After I changed the switches on the backside. The Display stays black.Any ideas ?RegardsMax
In RM it is stated that in Engineering mode (BOOT pins at 3'b100) the MPU re-opens CA7 secure debug.I boot in that mode, then halt in openocd:stm32mp15x.cpu0: hardware has 6 breakpoints, 4 watchpoints > halt stm32mp15x.cpu0 rev 5, partnum c07, arch f, variant 0, implementor 41 target halted in Thumb state due to debug-request, current mode: Supervisor cpsr: 0x200001f3 pc: 0x00010fc0 MMU: enabled, D-Cache: disabled, I-Cache: enabled > mdw 0x5c005014 0x5c005014: 0000000fIn BSEC register 0x14 (DEBUG) there is 0xf - which means unsecure debug is enabled,but secure is disabled. Also MMU is enabled and 0x2ffc0000 is RO and 0x10000000 unmapped.Thus I can't upload and run A7 code via JTAG.Is it correct ? Is the only way to upload some code to new MP1 board only via USB/serialbootloader ?I ask because typical way for STM32 MCUs was to use Openocd to send some stub codefor Flash programming of new part but it doesn't seem to work here.Only way I found is to upload fake code via USB, break
I am having issues cross-compiling LinuxPTP. I've been able to work my way through some of the cross-compiling issues but now I am stuck with the compiler searching for crt1.o, crti.o and crtbegin.o files. Any help would be appreciated.
I just got my dk2 kit, played with it a little bit, but the performance is so bad. it takes a lot to boot ~30sec and after that it is unresponsive, you click something, then several seconds later something happens. Is this considered normal, or it is just my board?
I'm interested in learning about TF-A, OPTEE, are some demos concerning these topics available?Is it possible to debug the CortexA core, through the embedded ST-LINK? I mean working solution, not in theory?What would be limitations debugging very early boot stuff, trusted world?
See here
Hi,I am only a bit familiar with embedded linux. I will develop a demo project with STM32MP157C-DK2 with C language:on M4 side, a sensor(BME280) and a vantilator (5v) are connected. Sensor is to read periodically and three numerical values( temp, humidity, pressure) will be send to A7 sideon A7 side a QT application will receive these three values and display them continuosly. Over this QT application, the user will be able to send on or off command for vantilator to M4.M4 will receive this command and then will start or stop the vantilator.At first, I should say, I played a bit with the board, did all the work which is called getting started with DK2 (https://wiki.st.com). Then I saw an article in bootlin about using BME280 sensor. But this article doesnt help me because it explains how to read the sensor from A7 (linux side). However I will read the sensor from M4 side.Honestly, I don't know how my roadmap will be.I mean where to start and which mechanisms, middlewares, package (dev
Hello,I have 4 questions if you have time to answer, I would appreciate it very much.I prepared st-example-image-qt image. But there isnt any terminal like weston image. Should I run any other command before bitbake in order to have all the tools packages and freameworks that weston image has ?If you can, could you please write me all commands that I should run to prepare such a full featured -qt image ?How can I run an example in this image ?Can one do following things with this image ?modify, rebuild and run an example with opensourse qt license ?write a qt app from scratch with crosstoolchain in ubuntu laptop with open source qt license and load it to the dk2-board ?thanks in advance
HII've already run this commandContinue to runroot@stm32mp1:~# /usr/share/examples/opengl/hellowindow/hellowindowqt.qpa.input: X-less xkbcommon not available, not performing key mappingCould not queue DRM page flip on screen DSI1 (Device or resource busy)Could not queue DRM page flip on screen DSI1 (Device or resource busy)Could not queue DRM page flip on screen DSI1 (Device or resource busy)Could not queue DRM page flip on screen DSI1 (Device or resource busy)Could not queue DRM page flip on screen DSI1 (Device or resource busy)Could not queue DRM page flip on screen DSI1 (Device or resource busy)Could not queue DRM page flip on screen DSI1 (Device or resource busy)Could not queue DRM page flip on screen DSI1 (Device or resource busy)does not help!What can be the Issue here?I read this post https://community.st.com/s/global-search/Could%20not%20queue%20DRM%20page%20flip%20on%20screen%20DSI1%20%28Permission%20denied%29
Lets say I need to separate module, one will contain the pcb with mpu and other IC, the second will contain a touchscreen display and sensors. The modules are 2 meters apart. What should I use hdmi or mipi? How do I send mipi over distance?
Can anyone point me to an example on how to use bluetooth for this discovery board? Will it be possible to pair to two bluetooth sensors at the same time?
I wrote an application on the STM32MP157C-DK2, and m4 reads the data of an external adc and sends it to A7 for processing. The entire program got stuck after running for about 15 hours. The console has been outputting the following content[84306.511840] rpmsg_tty virtio0.rpmsg-tty-channel.-1.0: rpmsg_send failed: -512[84321.865507] rpmsg_tty virtio0.rpmsg-tty-channel.-1.0: timeout waiting for a tx bufferWhether it is restarting the program or m4 can not be solved, can only restart the system to solve.Any suggestions?
The routine I tested was stm32mp157\STM32Cube_FW_MP1_V1.0.0\Projects\STM32MP157C-DK2\Applications\OpenAMP\OpenAMP_TTY_echo, The test method is guided by the following address, 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_firmware.According to the test method, the virtual device /dev/ttyRPMSG0 needs to be initialized first by the stty command . The communication test between A7 and M4 can then be performed by echo and cat. As described in the routine, A7 sends data to M4 via the echo command, and M4 will send this data to A7 again. As shown below:Board $> stty -onlcr -echo -F /dev/ttyRPMSG0Board $> cat /dev/ttyRPMSG0 &Board $> echo "Hello Virtual UART0" > /dev/ttyRPMSG0Hello Virtual UART0The above test method is no problem. Then the problem is in the test below.I use the linux file IO operation method to read and write the virtual device /dev/ttyRPMSG0.As with the ca
I'm trying to image the provided SD Card. I'm trying to use `dd` but it seems to only be cloning about 33mb before saying it is finished with no other output. sudo dd if=/dev/disk2 of=~/stmicro.imgAny thoughts?
..
I want to setup a Boundary Scan project for the Deveklopment kit to learn Boundary Scan with STM32MP157C. Therfore it is very helpful to use ODB++ data of the development kit.Can you provide this (maybe under NDA)?
This is a new issue involved in running from SRAM. I recently posted an issue:https://community.st.com/s/question/0D50X0000BDnc5pSQB/stm32f7-uart5-issueand this is a second, possibly related issue.The software I am writing is a Built-in-Test and bootloader, which does the following:Tests all of the testable hardware on the board, saving the results to a RAM region. Depending on external events (IOs and communication), either runs an application or stays present to receive new application and application data files, and burns them to one of three different flashes on the board (the internal flash, an external SPI serial flash, and an external QSPI serial flash). Because it burns the internal flash, it was decided the easiest route would be to run the entire application from SRAM, eliminating the need to burn via DMA or copy bits and pieces of code to RAM and run them there.The process nearly works completely. The only two problems that appeared during testing were fa
Hi,I'm trying to reserve the pins for FMC that would be connected to NOR FLASH. The STM32CubeMX will give me some of the pins, mainly the data lines (FMC_D0:FMC_D15) for 16 bit data.Since the reference manual states that FMC has to be configured after reset, I have to manually pick the address pins (FMC_A0:FMC_A25).Couple of questions regarding this, as I did not find these questions from the documentation:Do I have to pick any other pins manually?What is the difference in nomenclature with FMC_AD6 and FMC_D6 as they are tied to the same pin?Am I correct to assume that the FMC connected memory is memory mapped and I'm able to read and write to it during execution? I just want to make sure as this is not the case with QSPI in memory mapping mode.Thank you!-Tero
Hi, I'm using STM32MP157A-DK1 with Starter Package.I'm trying to follow instruction on how to using Kermit here:https://wiki.st.com/stm32mpu/wiki/How_to_transfer_a_file_over_serial_consoleI can successfully send files using the following command:$ kermit kermit_ttyACM0.cfg -s myfile.txtBy using the command the file is downloaded in /home/root/myfile.txtHowever, I cannot able to get (download) file using the following command:$ kermit kermit_ttyACM0.cfg -g /etc/hostsThe prompt screen looks like it tries to get files several times but it failed:C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, KBUMSIK-Samsung-Arch.localdomain [125.132.95.109] Current Directory: /home/kbumsik/Dropbox/Projects/Current/stm32mp1/tmp Communication Device: /dev/ttyACM0 Communication Speed: 115200 Parity: none RTT/Timeout: 08 / 08 File Type: File Size: Bytes So Far: ...10...20...30...40...50...60...70...80...90..100 Estimated Time Left: (unknown) Transfer Rate, CPS: 0 Window Slots: 1 of 1 Pa
Hello, we are using a NAND Flash MT29F4G08 as boot device, which block size is 128KB. We program the 245KB size of FSBL(tf-a.stm32) to it with cubeProgrammer successfully, it does not boot up. When we replace the NAND Flash with MT29F8G08 as boot device, which block size is 256KB, and program the same FSBL(tf-a.stm32) with cubeProgrammer successfully, it boots up. So, I want to know whether the size of FSBL is limited to one block of NAND, and shell we tailor the FSBL(tf-a) within 128KB to fit MT29F4G08?
I've been trying to reduce power consumption of the STM32MP157C-DK2 board and have a very low power linux platform. But the power consumption seems somewhat agnostic of power rails and clock rates. For example, I removed the LCD, I boot to u-boot, then use the u-boot interface to disable the HDMI, Audio, and 3.3V rails, I all IO set to high Independence inputs, expect the I2C connected to the PMIC and the UART connected to the STLink interface, and I clear the clocks to all but the I2C and UART peripherals, I'm measuring 200mA at 5V or 1 watt. If I change the MPU to run directly off of the HSE clock the current drops from 200mA to 190-195mA. Per the datasheet, there should be a MUCH larger current drop.Per the datasheet Table 21, IDDCore with all peripherals disabled and the MPU running at 24 MHz, the current should be 51.5 mA. I still have the VCC and the DDR powered. If I disable DDR in u-boot (which causes u-boot to die) I measure 170 mA. So the DDR is only consuming roughly 20 mA w
I added nand flash to stm32mp157aac, but the nand startup mode is always DFU mode, may I ask what configuration is needed?Nand boot has been selected on the hardware
Hi. I am using the Uart Bootloader from the ROM.I want to write my Programm to the Sysram at 0x2FFC3000. I don't know why, but the Software ignores my commands.It accepts the write Command, it accepts the adress. But when i write the Address it twice sends the Ack byte.So when i want to send the number of bytes, the data and the checksum it threats them as Commands.Do i have to do something special to use the serial debug mode?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.