Software Setup

Requirements

  • A Linux host computer with USB-C connections
    • TB4+ if you plan on powering APB with it.

Workflow 

APB was conceived to be developed and debugged from a host computer holding a cross-compiling toolchain that is built for the specific image that you will use.

All APBs come flashed with the default image you will be able to download as well should you need to reset the state of APB.

Host Setup

Download the APB image and its matching SDK installation script from XXX.

Launch the script and follow the instructions.

> cd /path/to/install/script/script.sh

Start Coding

Download the sample codes to get yourself familiar with the flow.

Choose your scenario of choice.

> cd /path/to/scenario
> make

Wait for the compilation to finish and then copy the built binary to the APB

> scp ./bin/program [email protected]:/path/of/choice

Connect to APB and run the program

> ssh [email protected]
> /path/to/program

And observe the code running

Debugging

APB comes preloaded with gdbserver. This allows you to remotely debug your program from the host, through the network.

If you need more information on gdbserver and how to use it, please refer to this page: https://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_130.html.

Exploring the sample codes 

Now that you have your development environment setup and you know how to get apps compiled and loaded on APB, you can continue exploring the scenarios illustrated in the sample codes.

Troubleshooting

Coming Soon