IOsonata multi-platform multi-architecture optimized software library for fast and easy iot products development
Turorial blog posts :
Bluetooth Low Energy firmware with a few lines of code
Nordic nRF51 & nRF52 series firmware development with Eclipse
Eclipse IDE installation guide
Although this library supports multiple IDE/Compilers, the preferred IDE is still Eclipse/GCC. GCC is the de facto standard for embedded software development. Eclipse is 100% free and the most flexible IDE. It could be little overwhelming for newbies at first (like any other IDE if you are new to it anyway).
For desktop PC version of the library, native compiler and IDE are used. XCode for OSX, Visual Studio for Windows, Eclipse for Linux.
- Eclipse & GCC : Full C++ support, full file io support.
- IAR : Full C++ support, no system support for file io. File io only available with semihosting. Bug in IAR : It cannot debug or flash Nordic nRF series using CMSIS-DAP.
- uVision : Requires compiler version 6. Minimal support for file IO. However uVision can be configured to GCC instead.
- CrossWorks : GCC C++ is stripped down to bare bone, no file io support, no atomic support and many others. In order to use full GCC C++, CrossWorks must be configured to use an external compiler.
- Segger Stusio : Stripped down version of CrossWorks. Even less functional. Only supports jlink, cannot be used with any other jtag. SES is not recommended for heavy firmware development.
In order to compile the IOsonata target libraries these external SDK & lib are required. Follow the instructions below to download and install into appropriate folder locations and naming.
nRF5_SDK : Nordic nRF5x Bluetooth Low Energy
nrf5_SDK_Mesh : Nordic nRF5 SDK for Bluetoth Mesh
ICM-20948 Motion_Driver : Create a user at https://invensense.tdk.com/developers/software-downloads/. In the "Development Kits" block, download "DK-20948 SmartMotion eMD 1.1.0". Unzip the downloaded file and navigate to EMD-Core/sources. Copy the folder Invn
to external/Invn
as indicated in the folder tree bellow.
BSEC : Bosch Sensortec Environmental Cluster (BSEC) Software for #BME680 environmental sensor. BSEC is needed for calculating Air Quality Index. Go to https://github.com/boschsensortec/Bosch-BSEC2-Library. Clone it to external/BSEC
as indicated in the folder tree below.
LWIP : A Lightweight TCP/IP stack. This library is required for IoT network connectivity over Ethernet, Wifi, LTE, ... Download it via this link https://download.savannah.nongnu.org/releases/lwip/. Rename the extracted folder as lwip
and copy it to external
.
IDK-BLYST-NANO : nRF52832 Bluetooth 5.2/Bluetooth Mesh development board with builtin IDAP-M CMSIS-DAP Debug JTag
Buy : IDK-BLYST-NANO (BLYST Nano development board).
Buy : BLUEIO-TAG-EVIM (BLYST Nano sensor board).
Nordic Thingy App compatible firmware project
The way the IOsonata folder is structured is simple. The deeper you go inside the more it is specific to the architecture or platform. The parent folder contains all that is commonly available to the child folder. Which means, source file from child folder can access any source in the upper parent folder but not the other way around. This is the way to keep the abstraction separated from implementation and easier to keep track of things.
/your_root - Development root directory
|-- external - Contains downloaded SDKs from silicon vendors
| |-- nRF5_SDK - Latest Nordic SDK (https://developer.nordicsemi.com)
| |-- nrf5_SDK_Mesh - Latest Nordic SDK for Mesh (https://www.nordicsemi.com/eng/nordic/Products/nRF5-SDK-for-Mesh/nRF5-SDK-for-Mesh/62377)
| |---nRF5_SDK_12 - Last version of Nordic SDK12 for nRF51 series
| |-- BSEC - Bosch Sensortec Environmental Cluster (BSEC) Software (https://www.bosch-sensortec.com/bst/products/all_products/bsec) for #BME680
| |-- Invn - Invensense SmartMotion Driver (download https://www.invensense.com/developers)
| | |-- Devices
| | |...
| |-- lwip - Lightweight TCP/IP stack (download https://download.savannah.nongnu.org/releases/lwip/)
| |-- Others as require
| |...
| |
|-- IOsonata - Put IOsonata here
| |-- include - Generic include common to all platforms
| | |-- bluetooth - Generic definition for Bluetooth
| | |-- converters - Generic definition for ADV, DAC, etc...
| | |-- coredev - Generic definition MCU builtin devices such as i2c, uart, spi, timer, etc...
| | |-- miscdev - Generic definition for other non categorized devices
| | |-- sensors - Generic definition for all sort of sensors (environmental, motion, etc...)
| | |-- usb - Generic definition for USB
| | |...
| |-- src - Generic implementation source common to all platforms
| | |-- bluetooth - Generic source for Bluetooth
| | |-- converters - Generic source for ADV, DAC, etc...
| | |-- coredev - Generic source for MCU builtin devices such as i2c, uart, spi, timer, etc...
| | |-- miscdev - Generic source for other non categorized devices
| | |-- sensors - Generic source for all sort of sensors (environmental, motion, etc...)
| | |-- usb - Generic source for USB
| | |...
| |
| |-- ARM - ARM series based MCU
| | |-- include - Common include for all ARM platform
| | |-- src - Common source for all ARM platform
| | |-- DbgConfig - Debugger configuration files.
| | |-- ldscript - Linker script files
| | |
| | |-- Nordic - Nordic Semiconductor based MCU
| | | |-- nRF51 - nRF51 series MCU
| | | | |-- include - Common include for this target series
| | | | |-- src - Common source for this target series
| | | | |-- lib - IOsonata library for this target
| | | | | |-- Eclipse - Eclipse project for this lib
| | | | | |-- IAR - IAR project for this lib
| | | | | |-- CrossWorks- CrossWorks project for this lib
| | | | | |...
| | | | |
| | | | |-- exemples - Example projects for this target
| | | | | |-- Blink - Blink example
| | | | | | |-- src - Source code for this exaple
| | | | | | |-- Eclipse - Eclipse project for this example
| | | | | | |-- IAR - IAR project for this example
| | | | | | |-- CrossWorks- CrossWorks project for this example
| | | | | | | |...
| | | | | |-- Many other examples same
| | | |
| | | |-- nRF52 - nRF52 serie MCU
| | | | |-- include - Common include for this target series
| | | | |-- src - Common source for this target series
| | | | |-- nRF52832 - Target MCU
| | | | | |-- lib - IOsonata library for this target
| | | | | | |-- Eclipse - Eclipse project for this lib
| | | | | | |-- IAR - IAR project for this lib
| | | | | | |-- CrossWorks- CrossWorks project for this lib
| | | | | | |...
| | | | | |
| | | | | |-- exemples - Example projects for this target
| | | | | | |-- Blink - Blink example
| | | | | | | |-- src - Source code for this exaple
| | | | | | | |-- Eclipse - Eclipse project for this example
| | | | | | | |-- IAR - IAR project for this example
| | | | | | | |-- CrossWorks- CrossWorks project for this example
| | | | | | | |...
| | | | | | |-- Many other examples same
| | | | | | |
| | | | |-- nRF52840 - Target MCU
| | | | | |-- lib - IOsonata library for this target
| | | | | | |-- Eclipse - Eclipse project for this lib
| | | | | | |-- IAR - IAR project for this lib
| | | | | | |-- CrossWorks- CrossWorks project for this lib
| | | | | | |...
| | | | | |
| | | | | |-- exemples - Example projects for this target
| | | | | | |-- Blink - Blink example
| | | | | | | |-- src - Source code for this exaple
| | | | | | | |-- Eclipse - Eclipse project for this example
| | | | | | | |-- IAR - IAR project for this example
| | | | | | | |-- CrossWorks- CrossWorks project for this example
| | | | | | | |...
| | | | | | |-- Many other examples same
| | | |
| | | |-- nRF53 - nRF53 series MCU
| | | | |-- include - Common include for this target series
| | | | |-- src - Common source for this target series
| | | | |-- nRF5340_App - Target MCU
| | | | | |-- lib - IOsonata library for this target
| | | | | | |-- Eclipse - Eclipse project for this lib
| | | | | | |-- IAR - IAR project for this lib
| | | | | | |-- CrossWorks- CrossWorks project for this lib
| | | | | | |...
| | | | | |
| | | | | |-- exemples - Example projects for this target
| | | | | | |-- Blink - Blink example
| | | | | | | |-- src - Source code for this exaple
| | | | | | | |-- Eclipse - Eclipse project for this example
| | | | | | | |-- IAR - IAR project for this example
| | | | | | | |-- CrossWorks- CrossWorks project for this example
| | | | | | | |...
| | | | | | |-- Many other examples same
| | | | | | |
| | | | |
| | | | |-- nRF5340_Net - Target MCU
| | | | | |-- lib - IOsonata library for this target
| | | | | | |-- Eclipse - Eclipse project for this lib
| | | | | | |-- IAR - IAR project for this lib
| | | | | | |-- CrossWorks- CrossWorks project for this lib
| | | | | | |...
| | | | | |
| | | | | |-- exemples - Example projects for this target
| | | | | | |-- Blink - Blink example
| | | | | | | |-- src - Source code for this exaple
| | | | | | | |-- Eclipse - Eclipse project for this example
| | | | | | | |-- IAR - IAR project for this example
| | | | | | | |-- CrossWorks- CrossWorks project for this example
| | | | | | | |...
| | | | | | |-- Many other examples same
| | | | | | |
| | | |
| | | |-- nRF91 - nRF91 series MCU
| | | | |-- include - Common include for this target series
| | | | |-- src - Common source for this target series
| | | | |-- nRF9160 - Target MCU
| | | | | |-- lib - IOsonata library for this target
| | | | | | |-- Eclipse - Eclipse project for this lib
| | | | | | |-- IAR - IAR project for this lib
| | | | | | |-- CrossWorks- CrossWorks project for this lib
| | | | | | |...
| | | | | |
| | | | | |-- exemples - Example projects for this target
| | | | | | |-- Blink - Blink example
| | | | | | | |-- src - Source code for this exaple
| | | | | | | |-- Eclipse - Eclipse project for this example
| | | | | | | |-- IAR - IAR project for this example
| | | | | | | |-- CrossWorks- CrossWorks project for this example
| | | | | | | |...
| | | | | | |-- Many other examples same
| | | | | | |
| | |
| | |-- NXP - NXP based MCU
| | | |-- LPC11xx - LPC11xx series MCU
| | | | |-- include - Common include for this target series
| | | | |-- src - Common source for this target series
| | | | |-- LPC11U35 - LPC11U35 target
| | | | | |-- lib - IOsonata library for this target
| | | | | | |-- Eclipse - Eclipse project for this lib
| | | | | | |-- IAR - IAR project for this lib
| | | | | | |-- CrossWorks- CrossWorks project for this lib
| | | | | | |...
| | | | | |
| | | | | |-- exemples - Example projects for this target
| | | | | | |-- Blink - Blink example
| | | | | | | |-- src - Source code for this exaple
| | | | | | | |-- Eclipse - Eclipse project for this example
| | | | | | | |-- IAR - IAR project for this example
| | | | | | | |-- CrossWorks- CrossWorks project for this example
| | | | | | | |...
| | | | | | |-- Many other examples same
| | | | | | |
| | | |-- LPC17xx - LPC17xx series MCU
| | | | |-- include - Common include for this target series
| | | | |-- src - Common source for this target series
| | | | |-- LPC176x - LPC176x target
| | | | | |-- lib - IOsonata library for this target
| | | | | | |-- Eclipse - Eclipse project for this lib
| | | | | | |-- IAR - IAR project for this lib
| | | | | | |-- CrossWorks- CrossWorks project for this lib
| | | | | | |...
| | | | | |
| | | | | |-- exemples - Example projects for this target
| | | | | | |-- Blink - Blink example
| | | | | | | |-- src - Source code for this exaple
| | | | | | | |-- Eclipse - Eclipse project for this example
| | | | | | | |-- IAR - IAR project for this example
| | | | | | | |-- CrossWorks- CrossWorks project for this example
| | | | | | | |...
| | | | | | |-- Many other examples same
| | | | | | |
| | |
| | |-- ST - ST based MCU
| | | |-- STM32F0xx
| | | |-- STM32F4xx
| | | |-- STM32L0xx
| | | |-- STM32L1xx
| | | |-- STM32L4xx
| | | | |-- include - Common include for this target series
| | | | |-- src - Common source for this target series
| | | | |-- STM32L476 - Target MCU
| | | | | |-- lib - IOsonata library for this target
| | | | | | |-- Eclipse - Eclipse project for this lib
| | | | | | |-- IAR - IAR project for this lib
| | | | | | |-- CrossWorks- CrossWorks project for this lib
| | | | | | |...
| | | | | |
| | | | | |-- exemples - Example projects for this target
| | | | | | |-- Blink - Blink example
| | | | | | | |-- src - Source code for this exaple
| | | | | | | |-- Eclipse - Eclipse project for this example
| | | | | | | |-- IAR - IAR project for this example
| | | | | | | |-- CrossWorks- CrossWorks project for this example
| | | | | | | |...
| | | | | | |-- Many other examples same
| | | | | | |
| | |
| | |-- Other silicon vendors
| |...
| |-- Linux
| | |...
| |-- OSX
| | |...
| |-- Win
| | |...
| ...