I'm revisiting the Harting MICA Complete IIoT Starter Kit.

A new Debian 10 Buster container is available. I'm discussing the minimal steps to get it running as a Linux service with remote C++ debugging.

 

 

 

Get Debian Buster Running


The image is available form the Harting Mica container repository. It's a full debian, lightweight.

I want to use it in a C++ scenarrio. It has to be able to run my C++ executables and if possible, allows me to debug them from my Windows computer.

 

Although the Debian distro does not come with a compiler, it can execute GCC-made Linux executables compiled for Arm architecture.

So by default the only thing you need is a mechanism to get your executables on the system.

There are two easy options. One is using an sd card.

You can then move your binaries, set the executable flag, and you're done.

 

 

Turn it into a Debugable Environment, and other user tricks

 

Change the password. Even better, also create a new non-root user. Install sudo.

 

Provide a secure way to uploade your developments via scp: install an ssh server and use (win)scp to deploy the files.

This is as easy as running:

 

apt update
apt-get install openssh-server

 

Put your public key in the ~/.ssh/authorized_keys file and allow Putty, WinSCP and Eclipse to connect, upload, debug without password.

 

Install gdbserver so that you can use Eclipse on your Windows PC to build, upload and remotely debug your application.

 

apt install gdbserver

 

 

A 20 minute activity to turn the Debian Buster container into a lean environment, where you can develop and debug with IDE support and native Linux, with little load on the Mica..

Later you can uninstall the gdbserver and ssh server.

 

Related Blog
HARTING MICA: Develop and Debug a C GPIO Example in Eclipse - Part 1: User Experience
HARTING MICA: Develop and Debug a C GPIO Example in Eclipse - Part 2: MICA Debian Stretch Setup
HARTING MICA: Develop and Debug a C GPIO Example in Eclipse - Part 3: Eclipse Configuration on Windows
HARTING MICA: Develop and Debug a C GPIO Example in Eclipse - Part 4: Build and Debug the GPIO Example
HARTING MICA: Make a Safe(r) MQTT Container with Certificate and TLS/SSL
HARTING MICA: Manage Access to USB and other Devices
HARTING MICA: SD Card as Shared Storage
HARTING MICA: Alpine Linux and another MQTT Container with Certificate and TLS/SSL
HARTING MICA: Connect to Amazon Web Services
HARTING MICA: Install Java 8 VM in a Debian Stretch Container
HARTING MICA: Read BOSCH CISS Sensor with Java - part 1: USB Connect and Listen
HARTING MICA: Get Debian Buster Running
Harting MICA Complete IIoT Starter Kit - Review