• 1
    Step 1
    • Install rake:
    sudo apt-get install rake
    • Install prerequisites
    sudo apt-get install gcc-arm-none-eabi gcc-avr avr-libc git subversion unzip
    • Download REM buildsystem
    mkdir rem_build
    cd rem_build
    git clone https://github.com/franzflasch/REM.git
    • Prepare test project
    git clone https://github.com/franzflasch/rem_packages.git
    git clone https://github.com/franzflasch/rem_test_project.git
    • Prepare PATH
    cd REM
    export PATH=`pwd`:$PATH
    cd ..
    • Start Build
    • Atmega168
    rem ARCH=avr MACH=atmega168 PROJECT_FOLDER="rem_packages rem_test_project" -m -j4 package:test_project:image[hex]
    • STM32
    rem ARCH=arm MACH=stm32f3 PROJECT_FOLDER="rem_packages rem_test_project" -m -j4 package:test_project:image[bin]

    The image will end up in rem_workdir/#{arch}_#{machine}/deploy It will be either a binary or hex image, depending on what you've chosen to build. The arguments "-m -j4" mean to build with max 4 threads simultaneously. After the successful build you can flash the image with an appropriate tool for your microcontroller.