beagleboard / beaglebone-ai

BeagleBone AI - the fast track for embedded machine learning
Creative Commons Attribution 4.0 International
137 stars 54 forks source link

Cortex-M4 sample code #34

Open reneherrero opened 4 years ago

reneherrero commented 4 years ago

There's a lot of focus on the AI pieces of this board, but I find the 2x dual Cortex-M4 co-processors aren't getting the attention they deserve.

To anyone possibly sharing my sentiment, here's the closest I've been able to find:

Hope this helps

silver2row commented 4 years ago

Hello,

Nice!

Seth

pra-dan commented 4 years ago

The Processor SDK 3.15 for the AM572x can be found here : http://downloads.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components/Machine_Learning/tidl.html

The following snippets help in highlighting the role of the A15 processors, although not in the form of a pseudocode or sample codes.

In cases when user uses TIDL + DSPs or alternatively TIDL + EVEs or a combination of both (TIDL + DSPs + EVEs), the software layers used are:

In case TIDL uses DSP as accelerator there are three software layers:

  • TIDL Library that runs on DSP C66
  • OpenCL run-time, which runs on A15, and DSP
  • TIDL API host wrapper, user space library

In case TIDL uses EVE as accelerator there are four software layers:

  • TIDL Library that runs on EVE
  • M4 service layer, acting as proxy between EVE and A15 Linux (considered to be part of OpenCL)
  • OpenCL run-time, which runs on A15, but also on M4 (IPU1 which is reserved for TIDL OpenCL monitor role)
  • TIDL API host wrapper, user space library
aditya-gumparthi commented 3 years ago

hey @reneherrero did you find any more resources? c++ ? i'm in the same place today 😄

reneherrero commented 3 years ago

This seems to be the only option: https://www.ti.com/tool/PROCESSOR-SDK-AM57X