Giter VIP home page Giter VIP logo

Comments (2)

christophevg avatar christophevg commented on July 19, 2024

Hi Drasko,

here's a session dump from zero to complete build, using only the command line...

1. Get sources and gcc cross-compiler

Depending on your platform, you'll have to download the appropriate gcc for arm. I tend to put it in a folder next to the Dash7 open source stack:

$ ls
gcc-arm-none-eabi-4_9-2015q3/

$ git clone https://github.com/MOSAIC-LoPoW/dash7-ap-open-source-stack.git
Cloning into 'dash7-ap-open-source-stack'...
remote: Counting objects: 19880, done.
remote: Total 19880 (delta 0), reused 0 (delta 0), pack-reused 19880
Receiving objects: 100% (19880/19880), 35.88 MiB | 1003.00 KiB/s, done.
Resolving deltas: 100% (12865/12865), done.
Checking connectivity... done.

2. Create a build folder and run cmake to generate the build instructions for the chosen platform:

$ mkdir build
$ cd build
$ cmake ../dash7-ap-open-source-stack/stack/ \
        -DTOOLCHAIN_DIR=../gcc-arm-none-eabi-4_9-2015q3/ \
        -DCMAKE_TOOLCHAIN_FILE=../dash7-ap-open-source-stack/stack/cmake/toolchains/gcc-arm-embedded.cmake \
        -DPLATFORM=EFM32GG_STK3700 \
        -DPLATFORM_EFM32GG_STK3700_RADIO=cc1101 \
        -DAPP_D7AP_TEST=on
-- Cross-compiling using gcc-arm-embedded toolchain
-- Cross-compiling using gcc-arm-embedded toolchain
-- detected supported platforms: EFM32GG_STK3700EFM32HG_STK3400ifestmatrix_tp1089
-- selected platform: EFM32GG_STK3700
-- The ASM compiler identification is GNU
-- Found assembler: /Users/xtof/Workspace/tmp/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/xtof/Workspace/tmp/build

A quick run-down of the different arguments:

  • we point cmake to the open source stack implementation: ../dash7-ap-open-source-stack/stack/
  • TOOLCHAIN_DIR points to our gcc cross compiler
  • CMAKE_TOOLCHAIN_FILE points to the cmake configuration for our gcc cross compiler
  • PLATFORM is one of the supported platforms (see: dash7-ap-open-source-stack/stack/framework/hal/platforms).
  • PLATFORM_<insert chosen platform here in capitals>_RADIO identifies the radio we want to use (see: also dash7-ap-open-source-stack/stack/framework/hal/chips).
  • turn on compilation of chose app: APP_<insert chosen application here in capitals> (see: dash7-ap-open-source-stack/stack/apps).

3. Build it!

$ make
Scanning dependencies of target CHIP_CC1101
[  1%] Building C object framework/hal/platforms/platform/framework/hal/chips/cc1101/CMakeFiles/CHIP_CC1101.dir/cc1101.c.obj
[  2%] Building C object framework/hal/platforms/platform/framework/hal/chips/cc1101/CMakeFiles/CHIP_CC1101.dir/cc1101_interface.c.obj
[  3%] Building C object framework/hal/platforms/platform/framework/hal/chips/cc1101/CMakeFiles/CHIP_CC1101.dir/cc1101_interface_spi.c.obj
[  3%] Built target CHIP_CC1101
Scanning dependencies of target CHIP_EFM32GG
...
[ 97%] Built target d7ap
Scanning dependencies of target d7ap_test.elf
[ 98%] Building C object apps/d7ap_test/CMakeFiles/d7ap_test.elf.dir/d7ap_test.c.obj
[100%] Linking C executable d7ap_test.elf
[100%] Built target d7ap_test.elf

I hope this helps you further in exploring the Dash7 open source stack. Good luck and have fun!

from sub-iot-stack.

glennergeerts avatar glennergeerts commented on July 19, 2024

Thanks, i integrated the steps above in the getting started guide on the site. You are right, the commandline instructions are actually easier compared to the GUI. Closing for now, please let us know if there is something wrong/missing.

from sub-iot-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.