Skip to content

loic-fejoz/beaglebone-ai64-tutorial

Repository files navigation

BeagleBone AI 64 Tutorial

A step by step introduction to programming the BeagleBone AI 64 Tutorial board, especially with DSP target in mind.

How to Build

This project supports two compilation workflows: native compilation directly on the BeagleBone board, and cross-compilation on a host PC using Docker.

1. Native Compilation (On the BeagleBone AI-64 itself)

Install the necessary TI compilers, support packages, and headers:

sudo apt update
sudo apt install ti-c7000-cgt-v2.1 ti-c6000-cgt-v8.3 ti-pru-cgt-v2.3 ti-pru-software linux-headers-$(uname -r)

Compile all examples from the root of the project:

make

Or build a single example by navigating into its directory and running make.

2. Cross-Compilation (On a Host Linux PC via Docker)

This method containerizes the exact same compiler toolchain so you can build the firmware on your computer without modifying your host's package manager.

  1. Install Prerequisites: Install QEMU user emulation so your host can execute ARM64 container instructions:
    sudo apt update
    sudo apt install qemu-user-static binfmt-support
  2. Build and Compile: Use the helper script to build the compiler container and run the Makefiles:
    # Compile all examples
    ./build.sh all
    
    # Clean build files
    ./build.sh clean
    
    # Compile a specific example folder
    ./build.sh -C example-00-pru

Tutorial Steps

  1. simplest PRU software
  2. Simple Hello World with remoteproc trace
  3. Simplest DSP firmware
  4. Blinking LED (PRU)
  5. Dual Blinking LEDs (PRU Simultaneous Toggling)
  6. Direct Digital Synthesis & RPMsg (PRU + RTU)
  7. Hardware-Accelerated Blinking via EPWM (Enhanced PWM)

Inspiration

About

A step by step introduction to the programming of BeagleBone AI 64 board.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors