Comments (2)
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 compilerCMAKE_TOOLCHAIN_FILE
points to the cmake configuration for our gcc cross compilerPLATFORM
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: alsodash7-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.
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)
- noise_logger.c compile fails - userbutton.h not found HOT 2
- sniffer.c compile fails - alp_cmd_handler.h not found HOT 1
- I2C on B_L072Z_LRWAN1 platform HOT 2
- Sensor Action example: assertion "is_fs_init_completed" failed HOT 1
- Sensor Action example: incorrect value in RTT logs HOT 4
- STM32 hw_get_unique_id() bug HOT 4
- Gateway software ? HOT 1
- RTT Logging does not work well with Sleep
- Performance results available? HOT 1
- Bug scheduling messages in the unsollicited response callback HOT 8
- Board resets when sending message using default access class at index 1 set to normal rate. HOT 6
- Scheduler hangs when scheduling a task through interrupt service routine HOT 1
- Unkown hardfault when running C++ on B-L072Z-LRWAN1 HOT 2
- Enforce .clang-format
- Assertion fail in timer_fired() HOT 5
- Some compiler flags that cause errors now that might be worth it to be fixed HOT 2
- ALP_ITF_ID_D7ASP interface config format doesn't seem to match spec (same with pyd7a impl) HOT 2
- alp_received_unsolicited_data_cb does not get called anymore HOT 5
- ALP layer: unsolicited commands are sent back in the response HOT 1
- Compilation Error while running make HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sub-iot-stack.