Wiring / Arduino based Skeleton Embedded Application, powered by PlatformIO
The project has initially been created for and tested on an Arduino Mega 2560 controller module.
This project builds up an Arduino Framework based application skeleton and it comprises of several components helping with debugging and integrating embedded applications on Arduino based contoller modules.
This skeleton application can help you to build up your own Arduino Framework based applications with focus on IoT.
It demonstrates the usage of the following copmonents:
- Create a directory where your Eclipse Workspace will be stored and where this project shall be cloned into. E.g.
C:\git\pio-prj
- Clone this repository recursively into the folder you created before,
git clone --recursive git@github.com:dniklaus/wiring-skeleton.git
- Open a command shell in the just cloned project folder, i.e in
C:\git\pio-prj\wiring-skeleton
- Run the command
pio init -b megaatmega2560 --ide eclipse
- Run the command
pio run
- Open Eclipse CDT, choose the folder you created before as workspace, i.e
C:\git\pio-prj
- Import the project with File->Import->General->Existing Projects into Workspace, choose the
wiring-skeleton
(i.eC:\git\pio-prj\wiring-skeleton
)
In order to test and run the CLI commands, a terminal emulation program shall be used. The one giving you the best experience will be the HTerm. Load the hterm-com18.cfg file to configure HTerm properly. Alter the COM18 accordingly to the one that has been selected on your computer.
dbg Debug CLI root node
tr Debug Trace Port config access
heap Particular Trace Port (heap: see below in chapter Trace Port)
out Trace Output config access for the current trace port
get Show the assigned Trace Output
set <outName> Set a particular Trace Output name
list Show all available Trace Output names (and the currently selected)
lvl Trace Level config access for the current trace port
get Show the current trace level
set <level> Set a particular trace level
list Show all available trace levels (and the currenntly selected)
dbg tr heap lvl set debug
Trace Port | default level | functionality |
---|---|---|
heap | info | if set to debug level: automatically print free heap memory [bytes], every 10 seconds |
This chapter lists all the libraries this project is using.
ID | Name | URL | Description |
---|---|---|---|
173 | SerialCommand | https://github.com/kroimon/Arduino-SerialCommand | A Wiring/Arduino library to tokenize and parse commands received over a serial port. |
Name | URL | Description |
---|---|---|
Timer | https://github.com/dniklaus/arduino-utils-timer | Universal recurring or non-recurring Timer |
Debug-Cli | https://github.com/ERNICommunity/debug-cli | Debug CLI for Embedded Applications - Command Line Interface for debugging and testing based on object oriented tree structure. |
Dbg-Trace | https://github.com/ERNICommunity/dbg-trace | Debug Trace component for Embedded Applications - Debug and Trace Log message system based on trace ports with adjustable levels. |
RamUtils | https://github.com/dniklaus/arduino-utils-mem | Arduino Memory Utilities |