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(4)

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(4)

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.

dawoodjr's picture
dawoodjr
Junior(0)

This may be a wacky idea, but would it be feasible to run a MicroPython interpreter in the /CUSTAPP directory? I know it would take a fair bit of work on your part, but it seems like folks have ported MicroPython to the ARM Cortex A7 (https://github.com/micropython/micropython/wiki) and the amount of porting activity seems to be increasing daily (https://us10.campaign-archive.com/?e=97d0ad693f&u=86903b65c84293425f40fa...). I think that would give you access to a huge new demographic -- start-up companies who don't yet have someone with good c and c++ skills on their staff. I wish I had the skills to help you do this. At this point, all I can offer you is encouragement.

jflynn129's picture
jflynn129
Moderator(4)

you may want to check out https://github.com/att-iotstarterkits/sk2-Users-Guide

AT&T has posted this and it explains using Python.  This is something AT&T is working on with another company so I am not able to offer any assistance, sorry.