Krolyxon
Commit 3120783

Branches

Tags

Refs →

orion-rf.piolibdepsesp32-s3-n16r8RF24docscross_compile.md

63 lines · 1.9 KB

Linux cross-compilation

@tableofcontents

@warning These instructions are no longer recommended because they involve disabling security measures for the target system. Please try the instructions using CMake.

RF24 library supports cross-compilation. Advantages of cross-compilation:

Following prerequisites need to be assured:

Cross compilation steps

  1. clone RF24 to a machine for cross-compilation
    git clone https://github.com/nRF24/RF24
    cd RF24
  2. configure for cross compilation
    ./configure --remote=pi@target_linux_host
    eventually
    ./configure --remote=pi@target_linux_host --driver=<driver>
  3. build
    make
  4. (optional) install library to cross-compilation machine into cross-environment - important for compilation of examples
    sudo make install
  5. upload library to target machine
    make upload
  6. (optional) compile examples
    cd examples_linux
    make
  7. (optional) upload examples to target machine
    make upload