> > *Rob:* > > * I would read the Molloy book/Website/Videos.* > > *He explains in detail how to set up Eclipse + gcc cross-compile > toolchain. under Windows.* > *I have also done the same thing on a VM running Ubuntu under windows, or > directly on a PC running Ubuntu.* > > *Molloy, unfortunately does all of his C I/O examples via the Linux > pseudo-file I/O method, which is very slow.* > > *If you are looking for a low level, public domain, C I/O package for > GPIO, SPI and I2C, try:* > *https://github.com/VegetableAvenger/BBBIOlib > <https://github.com/VegetableAvenger/BBBIOlib>* > > *If you find a better one, please report back. There are not many out > there.* > > *I have had good luck with it running GPIO, high speed SPI transfers, lots > of I2C etc.* > > *In a tight ON/OFF loop, the fastest I can toggle a GPIO pin using Linux > pseudo-file I/O is about 6 kHz.* > > *Using BBBIOlib, I can toggle a GPIO pin at about 2.4 MHz, almost a three > orders of magnitude improvement.* >
I will agree that the Derek Molloy book (exploring beaglebone )is a fairly good start into the tools, and techniques used for the software used with the hardware. But it is by no means an exhaustive resource when it comes to many things. BBBIOlib is also no longer maintained*. *which means it could have issues working with the newer kernels*. *The good news however is the it basically looks like an abstraction for /dev/mem/ and mmap(). Which surely if Rob has had 30 years embedded programing experience he'll have zero problems twiddling around directly with the device registers. On Mon, Apr 4, 2016 at 4:33 PM, Graham <[email protected]> wrote: > Rob: > > I would read the Molloy book/Website/Videos. > > He explains in detail how to set up Eclipse + gcc cross-compile > toolchain. under Windows. > I have also done the same thing on a VM running Ubuntu under windows, or > directly on a PC running Ubuntu. > > Molloy, unfortunately does all of his C I/O examples via the Linux > pseudo-file I/O method, which is very slow. > > If you are looking for a low level, public domain, C I/O package for GPIO, > SPI and I2C, try: > https://github.com/VegetableAvenger/BBBIOlib > > If you find a better one, please report back. There are not many out there. > > I have had good luck with it running GPIO, high speed SPI transfers, lots > of I2C etc. > > In a tight ON/OFF loop, the fastest I can toggle a GPIO pin using Linux > pseudo-file I/O is about 6 kHz. > > Using BBBIOlib, I can toggle a GPIO pin at about 2.4 MHz, almost a three > orders of magnitude improvement. > > --- Graham > > == > > -- > 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/d/optout. > -- 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/d/optout.
