To get started you'll need linux (WSL will also work on Windows)
whisk
buildsystem.arm-linux-gnueabihf-gcc
arm cross-compiler. (or aarch64)
$ sudo apt-get install gcc-arm-linux-gnueabihf
To build the project (for the Pi) simply run:
$ whisk build . arm-linux-32 # or aarch64-linux-64
You can also build the project for your own machine: (as long as you're on x86 64 bit linux)
$ whisk build
$ whisk run
For debugging you'll need gdb
, if you don't have it yet.
Install it (on Debian) using sudo apt install gdb
.
You can debug the program locally in vscode using F5
. (don't forget to whisk build
first)
To upload your program to the Pi I recommend using scp
.
It is a command line tool for uploading files over ssh
.
Example usage:
$ scp ./bin/whisk-rpi usr@127.0.0.1:/home/usr/Desktop
Don't forget to chmod +xwr ./whisk-rpi
on the Pi after uploading it.
Otherwise you will get a Permission denied
error when attempting to run it.
That's it, it's that simple, have fun programming! :D