[beagleboard] Using C to access on board LEDs and GPIO Pins for Beagle Bone Black

2015-06-10 Thread Brendan Merna
I've hooked up my Beagle Bone Black through the micro USB cable to a computer running Windows 7. I was able to follow a project which involves cross compiling and remote connecting to the Beagle Bone through an the Eclipse Luna environment. It tuns a simple hello world program in C. Here's the

Re: [beagleboard] Using C to access on board LEDs and GPIO Pins for Beagle Bone Black

2015-06-12 Thread Brendan Merna
t; > debian@beaglebone:~$ sudo apt-get install linux-libc-dev > > Should do the trick. > > On Wed, Jun 10, 2015 at 12:00 PM, 'Mark Lazarewicz' via BeagleBoard < > beagl...@googlegroups.com > wrote: > >> For barebones use TI starterware supply example cod

[beagleboard] Issues with Enabling SPIDev on Beaglebone Black

2015-06-16 Thread Brendan Merna
I'm trying to enable SPI on boot up on my Beaglebone Black. I followed the wiki link below under the title SPI1 D1 Output and D0 Input I created the .dts file and compiled it. I then moved it to /lib/firmware/ and then enabled the device overlay tree. Finally, I changed the uenv.txt file by a

[beagleboard] Where is the SpiDev test program?

2015-06-17 Thread Brendan Merna
I have shored out my data pins on P9 and I keep seeing tutorials and code running SpiDev test program? I've tried to run and it says no files exists. Where are people getting this file? -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subs

Re: [beagleboard] Where is the SpiDev test program?

2015-06-17 Thread Brendan Merna
Thanks Bill! What about the header files below? I'm getting errors on some of the global variables and I think its because I don't have these header files. #include #include On Wednesday, June 17, 2015 at 3:26:39 PM UTC-4, Bill Traynor wrote: > > On Wed, Jun 17, 2015 at

Re: [beagleboard] Where is the SpiDev test program?

2015-06-18 Thread Brendan Merna
#x27;t find any package by regex 'linux-headers-3.8.13-bone72' I ran the kernel upgrade before this too. Any ideas? On Wednesday, June 17, 2015 at 3:40:09 PM UTC-4, Bill Traynor wrote: > > On Wed, Jun 17, 2015 at 3:35 PM, Brendan Merna > wrote: > > Thanks Bill! What a

Re: [beagleboard] Where is the SpiDev test program?

2015-06-18 Thread Brendan Merna
BeagleBoard.org BeagleBone Debian Image 2014-04-23 I ran the search and nothing happened. On Thursday, June 18, 2015 at 10:43:04 AM UTC-4, RobertCNelson wrote: > > On Thu, Jun 18, 2015 at 9:37 AM, Brendan Merna > wrote: > > I'm running the command to install the header file

Re: [beagleboard] Where is the SpiDev test program?

2015-06-18 Thread Brendan Merna
this in my beaglebone. According to the code it should be and . On Thursday, June 18, 2015 at 10:53:30 AM UTC-4, RobertCNelson wrote: > > On Thu, Jun 18, 2015 at 9:49 AM, Brendan Merna > wrote: > > BeagleBoard.org BeagleBone Debian Image 2014-04-23 > > > > I ran the se

[beagleboard] C Code to Access GPIOs-Getting permission denied when using open() to access /sys/class/gpio/export

2015-07-01 Thread Brendan Merna
I'm trying to manipulate my GPIOs using C code and running into "Permission Denied" when running my code and opening the file /sys/class/gpio/export. I'm using nano editor, compiling on the Beaglebone with gcc, and I'm under root user. I would like to do this, so I can set directions and value

Re: [beagleboard] C Code to Access GPIOs-Getting permission denied when using open() to access /sys/class/gpio/export

2015-07-02 Thread Brendan Merna
. However do note that what >> you're trying to do is "wrong". Meaning: it is insecure. You ( and I too ) >> need to read up on process forking. IN short, and perhaps somewhat >> incorrect( as I'm not 100% up to speed either ) is that you fork a process, >

[beagleboard] Reading the ADCs with C Code

2015-07-13 Thread Brendan Merna
Hey Everyone, I'm using the Beaglebone ADC on AIN0 (P9-39) to monitor a high voltage. I've used a divider (1/100) to put it within the 1.8V range of the ADC.I am using the cape overlay BB-ADC suggested by Derrick Molloy in Exploring BB. I've measured the voltage at the pin while using "cat /s