Skip to content

Latest commit

 

History

History
48 lines (44 loc) · 1.77 KB

README.md

File metadata and controls

48 lines (44 loc) · 1.77 KB

To use this project properly you will need to install some packages and software.

Project submodule

First make sure that the cc2538-bsl submodule is installed. Run the following commands on a terminal at the openmote-fw root folder.

git submodule init
git submodule update

SCONS

Install SCONS.

pip3 install scons

Install intelhex package, this package is for scons to understand and write .hex files in openmote.

pip3 install intelhex

Dependencies

For ubuntu/debian systems install this packages.

sudo apt-get install gcc-arm-none-eabi gdb-arm-none-eabi openocd lm4flash libstdc++-arm-none-eabi-newlib

SCONS usage

To generate a .hex file in ./build/openmote-fw/projects/project-name you should run the following command:

scons board=openmote-b project=experiment-tx compiler=gcc verbose=0

If you want to write the .hex file in the openmote-b run the following command:

scons board=openmote-b project=experiment-tx compiler=gcc verbose=0 bootload=/dev/ttyUSB1

On bootload device you can pass a list, a range or a wildcard character.

list  -> /dev/ttyUSB0,ttyUSB1,/dev/ttyUSB2
range -> /dev/ttyUSB[0-2] = /dev/ttyUSB0,ttyUSB1,/dev/ttyUSB2
all   -> /dev/ttyUSBX = /dev/ttyUSB0,ttyUSB1,/dev/ttyUSB2

To erase the build files run the command with -c flag

scons board=openmote-b project=experiment-tx compiler=gcc verbose=0 -c

You can find more information in openmote-b user guide.

The original github project.