The only way to run a native arm-linux executable is via the BricxCC GUI using the latest (10/7 or later) test release build. Earlier releases did not recognize arm-linux executables within the Explorer tool but would allow you to compile, download, and run the current project via the compiler menu/toolbar options. Now you can launch these arm-linux binaries from the Explorer tool also.
A simple "hello world" app that draws to the screen is below:
Code: Select all
#include "ev3_lcd.h"
#define TextOut(_x, _y, _str) LcdText(1, (_x), (_y), _str)
int main()
{
LcdInit();
TextOut(0, 100, "hello world");
Wait(SEC_10);
LcdExit();
}
Add ev3_lcd.c, ev3_command.c, and ev3_timer.c to the Project Manager tool window for your source program (ex_textout.c). Then just press Ctrl+F5 and watch the screen.
John Hansen