IDE and SDK for BeagleBone AI Cortex-M4?


What IDE and SDK are expected for the Cortex-M4 of the BeagleBone AI?


Take a look at

In the latest Debian images, the TI OpenCL tools are there, including /usr/share/ti/examples/opencl.

This stuff covers running code on the DSPs, but you can run code on the M4 processors the same way.

…or, you can just load M4 code using remoteproc the same as we do for the PRUs.

Anyway, that said, I haven’t quite figured out the magic outside of TIDL. Below is where I’m at with TIOpenCL, but I’ll forward this on to the respective folks within TI to figure out what I’m missing.


#include <CL/TI/cl.hpp>

int main() {
std::vectorcl::Platform platforms;
std::vectorcl::Device devices;
std::string str;

platforms[0].getInfo(CL_PLATFORM_VERSION, &str);
std::cout << str << “\n”;
std::cout << platforms.size() << “\n”;
std::cout << platforms[0].getInfo<CL_PLATFORM_NAME>() << “\n”;

platforms[0].getDevices(CL_DEVICE_TYPE_ALL, &devices);
std::cout << devices.size() << “\n”;
std::cout << devices[0].getInfo<CL_DEVICE_NAME>() << “\n”;


debian@beaglebone:/var/lib/cloud9$ g++ clplat.cpp -lTIOpenCL && sudo ./a.out
OpenCL 1.1 TI product version (Jan 3 2019 15:42:47)
TI AM57x
TI Multicore C66 DSP

I think this page has quite a lot of information to get started

Following the above, you’ll be developing on a Linux host machine (ubuntu 18.04 required) and cross compiling for the AM57x processor. Its a lot to download but the build environment is pretty much set up for you.