STM32MP157 M4 Coprocessor programming

Started by Ste_trat, April 15, 2022, 09:36:07 PM

Previous topic - Next topic


i am currently looking for a way to program the M4 coprocessor (preferably with CubeIDE and CubeProgrammer), and i am reading trough all examples and wiki-pages from ST, but so far without any success.

Is there a way to enter a "production" or "engineering" mode with this board?
Also: What type of connection do you recommand to do so? (i ran into several issues trying to establish a connection with SWD and UART)

Thank you,


Bare metal programming of STM32STMP157 requires significant knowledge, the chip is meant to be used and programmed with operating system like Linux or RTOS.

If you still wish to see how it is done maybe check this effort here:

If you decide to go for Linux (as I would recommend you), then maybe check the resources related to Olimex board with the same chip like STMP157-OLinuXino-LIME2:
Technical support and documentation manager at Olimex



Update on this:
managed to enter debug mode with ST-Link V2.1.

i still would like to know if there is an easy way to change the device tree of the STMP157-board without the need to know about all the settings in CubeMX, so that i can program the M4 with the use of HAL lib.
The task is:
Use a M4 and it´s DAC + ADC for DSP stuff + PID control something, it doesn´t need to be bare-metal. + a µ-Processor for Python stuff.