> I was wondering if it is possible to write a c/c++ code in vi through SSH on > Putty and then generate an output file and run directly on the beaglebone?
Yes, if your program is simple (small), this is the easiest approach since you dont have to setup a cross development environment. I used the code by Derek Molley on his website: That uses "FILE, fopen, fclose, sleep, NULL, " etc. I'm getting errors about these. Am I supposed to install some kind of libraries or a arm-gnueabi compiler before I try to run programs that access the GPIOs and the LEDs ? make sure you use glibc stdio library. AFAIK, everything on the beagleboard is memory mapped; but if you ever need to io access, make sure you use ioperm to request io access permission, and outb or inb to write and read from io address. Do, if you compile on the board, you do not to install a cross compiler. > Also is there a better OS than Angstrom for beginners on BBB? How is the Ti > SDK? Angstrom distro comes with a package manager already, use opkg command to install and search for packages. I, however, have a custom distribution that i geared for embedded, industrial application, it is harder to develop on it because it does not come with a package manager. On Mon, Nov 11, 2013 at 8:05 AM, <[email protected]> wrote: > hello siddharth, > > Personally I prefers nano than vi to write code, but this doesn't change a > lot and it's possible to write code this way. > > Perhaps you could show us your error messages, this could help. > > Le lundi 11 novembre 2013 08:12:59 UTC+1, [email protected] a écrit : >> >> I was wondering if it is possible to write a c/c++ code in vi through SSH >> on Putty and then generate an output file and run directly on the >> beaglebone? >> I tried the simple helloworld.c program and it worked. >> But I tried to write LED blink program and I'm getting error messages. >> >> I used the code by Derek Molley on his website: That uses "FILE, fopen, >> fclose, sleep, NULL, " etc. I'm getting errors about these. >> Am I supposed to install some kind of libraries or a arm-gnueabi compiler >> before I try to run programs that access the GPIOs and the LEDs ? >> >> Please also let me know the commands for installing the needed packages or >> an example LED code that would work this way. >> >> Also is there a better OS than Angstrom for beginners on BBB? How is the >> Ti SDK? >> >> Thank you >> > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
