Can anyone help me waking up Cortex M4 core on BB AI?

Hi,

I have BB AI working with linux on it’s A15 core. Currently i am trying to wake up Cortex M4 core. I tried to install TI’s RTOS SDK on BB AI, which i could not proceed with, as didn’t find any clear steps to do so.
Has anyone woke up cortex M4?
Can anyone help me with the steps to wake up Cortex M4?

Thanks & Regards,
Tejas

Hello,

these cores should be accessible by default.
With the remoteproc system you can simply check this by navigating to /sys/class/remoteproc. There you should find two IPUs. (In my case remoteproc4 and 5).

To generally use remoteproc, you can echo the name of your code to the firmware (place your code under /lib/firmware) and start it with echo ‘start’ > remoteprocX/state.

Stephan

Hi Stephan,

IPU_Firmwares.png

As you said “you can echo the name of your code to the firmware (place your code under /lib/firmware) and start it with echo ‘start’ > remoteprocX/state.” , Could you please explain how to do this?
Under lib/firmware folder, i found the IPU related files as mentioned in the screenshot.

regards,
Tejas

Hello Tejas,

here you find a description on how to use the remoteproc system:
https://www.element14.com/community/community/designcenter/single-board-computers/next-genbeaglebone/blog/2019/05/14/coding-for-the-beaglebone-pru-with-c-in-2019

This only addresses the PRUs, but maybe it might help you.

Stephan

The PRU is not the cortex M4 :frowning: