Skip to content
The Cascoda Software Development Kit for utilizing the CA-8211 and CA-8210
Branch: master
Clone or download
CiaranWoodward Version 0.2 Cascoda SDK Release
Improved Documentation
Added standalone zero-config server/sensor Thread demonstration
Added Keil (armclang) compiler support for the chili2 (M2351)
Added helper functions for waiting for messages
Added helper functions for analysing complex API messages
Added global version number for tracking git version in running code
Added sensorif library for easy interface between Chili modules and I2C sensors
Add ONE_SIDED/TWO_SIDED configuration option for chili2
Cleanup of APIs to improve standardisation
Improved testing procedures with automated unit testing
Improve functionality and stability
Latest commit a647933 Mar 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
baremetal
ca821x-api
etc/img Initial commit Feb 20, 2019
openthread
posix
third-party/cmocka-1.1.3
toolchain Version 0.2 Cascoda SDK Release Mar 18, 2019
.clang-format Version 0.2 Cascoda SDK Release Mar 18, 2019
CMakeLists.txt
README.md Version 0.2 Cascoda SDK Release Mar 18, 2019
cascoda.cmake Version 0.2 Cascoda SDK Release Mar 18, 2019
clang-format.cmake

README.md

Cascoda SDK

The Cascoda SDK includes a comprehensive set of tools for developing systems integrating Cascoda hardware. The SDK is designed to be cross platform and flexible, enabling designing on one system and porting to another with ease. Example applications are included in order to demonstrate use of the systems.

The SDK contains a general API which abstracts the functionality of the CA-8210 or CA-8211, and can be run on baremetal or Linux systems.

The Bare-Metal BSPs provide a set of common functionality for baremetal platforms, with a simple abstraction layer that can be easily ported to new systems. The Linux platform takes advantage of the extra functionality to enable control of multiple devices at a time, and dynamic selection of SPI/USB Cascoda devices.

Building

CMake

The Cascoda SDK makes full use of CMake as a build system, to enable advanced configuration and cross-platform development. In order to build the Cascoda SDK, you will require CMake version 3.12 or newer. This can be downloaded from the CMake Website.

Compilers

The Cascoda SDK can be built natively for Linux using any preferred native compiler.

For Cross-Compiling to baremetal, we have fully implemented the ARM GCC compilers for use. They can be downloaded here. The code can be built in other embedded compilers, and full integration in the CMake suite is coming soon. Currently the OpenThread library can only be built from a Linux system (Windows Subsystem for Linux also works).

Instructions

To build the Cascoda SDK, follow the following instructions (written for Linux):

# Make a working directory
mkdir cascoda
cd cascoda
# Clone the Cascoda SDK
git clone https://github.com/Cascoda/cascoda-sdk.git

# Create a build directory for native build, and build the SDK
mkdir sdk-posix
cd sdk-posix
cmake ../cascoda-sdk
make -j12
# Built for current system! To change configuration, the 'ccmake .' command can be used

#Go back to working directory
cd ..

#Now cross compile for the Chili2
mkdir sdk-chili2
cd sdk-chili2
cmake ../cascoda-sdk -DCMAKE_TOOLCHAIN_FILE="../cascoda-sdk/toolchain/arm_gcc_m2351.cmake"
make -j12
# Built for Chili 2! To change configuration, the 'ccmake .' command can be used

Libraries will be built into the lib/ directory, while application binaries will be built into the bin/ directory. For the Chili platforms, both elf format and binary .bin format files will be created.

In order to compile for the chili 1, or to use a different compiler, the CMAKE_TOOLCHAIN_FILE argument can be pointed to a different configuration file in the toolchain directory.

Debugging

The Chilis support flashing and debugging via the Segger J-Link using JTAG SWD. When using the GCC toolchain, the SEGGER GDB Server and arm-none-eabi-gdb can be used to flash and debug the chili. Simply setup the JLink GDB server for the NANO120 (Chili 1) or M2351 (Chili 2) with SWD, then target remote 127.0.0.1:2331 in gdb to connect to it. If debugging is not required, then the Segger J-Flash lite tool can flash plain binary files.

Directory layout

ca821x-api

ca821x-api contains the cross-platform api which abstracts all of the functionality of the CA-8210 and CA-8211. It is required for every project.

baremetal

baremetal contains the cross-platform baremetal drivers, some example applications, and a set of platform abstractions.

toolchain

toolchain contains the platform configuration files to enable cross compilation for different systems and compilers.

posix

posix contains the Posix-specific drivers and tools, as well as some example applications that can be run from a Linux system.

openthread

openthread contains the glue configuration to download the openthread repository from https://github.com/Cascoda/openthread, and configure it to be built with the SDK.

etc

etc contains miscellaneous resources.

You can’t perform that action at this time.