Skip to main content
Visitor II
October 18, 2021
Solved

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

  • October 18, 2021
  • 1 reply
  • 1098 views

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

    This topic has been closed for replies.
    Best answer by Jatala

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

    1 reply

    JatalaAuthorAnswer
    Visitor II
    October 19, 2021

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