cancel
Showing results for 
Search instead for 
Did you mean: 

Systemd Service to Launch Cortex M4 Firmware from User-space of OpenStLinux

Jatala
Associate II

Hello,

I am working with STM32MP157 device based on OpenStlinux. Everything is working fine on the main processor and the cortex M4 MCU. Now I am trying to create a systemd service to launch the M4 firmware with systemctl commands from the user space in the linux, but with no success. Here are contents of my .service file:

[Unit]

Description= Cortex M4 Firmware Programe

[Service]

Type=simple

ExecStart=/lib/firmware/fw_cortex_m4.sh 'start'

ExecStop=/lib/firmware/fw_cortex_m4.sh 'stop'

ExecReload=/lib/firmware/fw_cortex_m4.sh 'start'

[Install]

WantedBy=multi-user.target

Please note that I can start/stop the firmware by the script fw_cortex_m4.sh. The systemd service lauche does not throw any error but the firmware does not run. I would appreciate any help to make it work.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Jatala
Associate II

I found a way out, by adding RemainAfterExit=yes under [Service] it works.

View solution in original post

1 REPLY 1
Jatala
Associate II

I found a way out, by adding RemainAfterExit=yes under [Service] it works.