Start M4 firmware from A7 application
Hi!
I am using STM32MP157C-DK2 board to create an application on the screen (using GTK library). My idea is to start coprocessor firmware from the A7 application with the following commands (system commands):
int main (int argc, char **argv)
{
GtkApplication *app;
system("su root -c 'echo core_communication_new_CM4.elf' > /sys/class/remoteproc/remoteproc0/firmware");
system("su root -c 'echo start' > /sys/class/remoteproc/remoteproc0/state");
app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
g_signal_connect (app, "activate", G_CALLBACK (Window_info), NULL);
status = g_application_run (G_APPLICATION (app), argc, argv);
g_object_unref (app);
return status;
}With these two system commands, I want to boot the M4 firmware (core_communication_new_CM4.elf). Then, I initialize A7 program (probak_GTK) with the following command:
- su -l weston -c "/usr/local/probak_GTK"
However, when I run the A7 application, I get the following message in the Linux terminal:
Does anyone know how I can boot M4 firmware from A7 application?
Thanks!
