Setting up development environment on Embedded Linux

Solved
BoschTT's picture
BoschTT
Junior(0)

I currently have an IoT Starter kit 2 with a WNC M18Q2 module. I wished to know if there was any way I could install a gcc compiler or a python compiler on the device to test my codes in real time on the device?

jflynn129's picture
jflynn129
Moderator(3)

WNC delivers the device with the filesystem locked except for the '/CUSTAPP' directory which is where applications are pushed to.  All development has to take place on a seperate development machine and cross compiled.  The WNCSDK (https://github.com/Avnet/AvnetWNCSDK) is provides the gcc compile/tools so you can cross compile for it, but at this time, that is the only way available to run custom code on the device.

You may find videos under 'Training' helpful (http://cloudconnectkits.org/product/global-lte-starter-kit)

BoschTT's picture
BoschTT
Junior(0)

Suppose I am to run a simple hello world c code, How exactly am I to proceed to do that? I created an executable using gcc but the executable did not run the the device and gave me the following error: Unterminated quoted string

jflynn129's picture
jflynn129
Moderator(3)

You may find videos under 'Training' helpful (http://cloudconnectkits.org/product/global-lte-starter-kit). They walk you all the way through setting up the development environment and building the iot_monitor software that runs on the kit.  after you have successfully build the software and ran it on the kit as the training shows, you could change the program to run the "Hello World"  you want.

An error of "Unterminated quoted string" indicates to me that you didn't have a closing quote on the "Hello World" string.

the readme file associated with the github (https://github.com/Avnet/M18QxIotMonitor) also walk you through the development environment and building the iot_monitor code.