Skip to main content
ABayl.2
Associate
November 14, 2022
Solved

STM32MP157-EV kit with led blink

  • November 14, 2022
  • 2 replies
  • 1917 views

Hello, I have dual core STM32MP157F-EV evaluation kit. I can connect via ST-link and install an application (This is installing on M4). And when I press the reset button, the application is deleted because the M4 core is RAM. I want it to work again every time I reset it. How can I do that ? How can I create an application-specific yocto project?

This topic has been closed for replies.
Best answer by Erwan SZYMANSKI

Hello @ABayl.2​ ,

Did you not forget that this fw_cortex_m4.sh should be called with a "start" argument ?

If you want to use it, maybe try to do a such script in /etc/profile.d

#!/bin/sh
 
(cd <fw_script_dir> && ./fw_cortex_m4.sh start)

I was not complete in my first answer saying that it was not possible. We have solutions not recommended but I put you here the link of the article: https://wiki.st.com/stm32mpu/wiki/Linux_remoteproc_framework_overview#How_to_use_the_framework

Kind regards,

Erwan.

2 replies

Erwan SZYMANSKI
Technical Moderator
November 14, 2022

Hello @ABayl.2​,

You are right, M4 firmware are not reloaded by default at reset time, but you can configure it yourself with a little workaround.

As A7 cortex is consider as a kind of master for M4 cortex, it will start first. You can create a script placed in /etc/profile.d (this folder runs all the scripts inside after Linux boot time) that starts your M4 firmware with remoteproc interface. (see https://wiki.st.com/stm32mpu/wiki/Linux_remoteproc_framework_overview)

Kind regards,

Erwan

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
ABayl.2
ABayl.2Author
Associate
December 6, 2022

My own application I uploaded it to the card using ethernet via CubeIDE. Then I went to /usr/local/project on the card and copied the fw_cortex_m4.sh file inside the project to the /etc/profile.d folder. I pressed the reset button but nothing happened.

Erwan SZYMANSKI
Erwan SZYMANSKIBest answer
Technical Moderator
December 6, 2022

Hello @ABayl.2​ ,

Did you not forget that this fw_cortex_m4.sh should be called with a "start" argument ?

If you want to use it, maybe try to do a such script in /etc/profile.d

#!/bin/sh
 
(cd <fw_script_dir> && ./fw_cortex_m4.sh start)

I was not complete in my first answer saying that it was not possible. We have solutions not recommended but I put you here the link of the article: https://wiki.st.com/stm32mpu/wiki/Linux_remoteproc_framework_overview#How_to_use_the_framework

Kind regards,

Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
ABayl.2
ABayl.2Author
Associate
November 15, 2022

Thanks Erwan. I will try it.