Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

Difference between revisions of "ECE497 Notes on gpio"

From eLinux.org
Jump to: navigation, search
m (Initial page)
 
m (Added Notes tag)
Line 1: Line 1:
[[Category:ECE497]]
+
[[Category:ECE497 |Notes]]
 +
{{YoderHead}}
  
 
Here are some notes on how to access the gpio pins from the DSP.  So far it doesn't read the push button.
 
Here are some notes on how to access the gpio pins from the DSP.  So far it doesn't read the push button.
Line 40: Line 41:
  
 
Success, but if you run it, it doesn't respond to the push button.
 
Success, but if you run it, it doesn't respond to the push button.
 +
 +
{{YoderFoot}}

Revision as of 14:35, 18 July 2012

thumb‎ Embedded Linux Class by Mark A. Yoder


Here are some notes on how to access the gpio pins from the DSP. So far it doesn't read the push button.

Here is the starting point for this. It appears to be a working example that reads the pushbutton (gpio 4) on the Beagle xM from the DSP.

Everything is in a git repository. Here are notes to how to set it up.

beagle$ cd exercises/DSPgpio
beagle$ ls -F
Makefile  readPushbuttonViaDSP*  readPushbuttonViaDSP.c
beagle$ make
/opt/toolchains/c6run_binary/bin/c6runapp-cc   readPushbuttonViaDSP.c -o readPushbuttonViaDSP
"readPushbuttonViaDSP.c", line 35: warning #225-D: function declared implicitly
"readPushbuttonViaDSP.c", line 46: warning #225-D: function declared implicitly
"readPushbuttonViaDSP.c", line 47: warning #225-D: function declared implicitly
"readPushbuttonViaDSP.c", line 50: warning #225-D: function declared implicitly
"readPushbuttonViaDSP.c", line 52: warning #225-D: function declared implicitly 

 undefined        first referenced             
  symbol              in file                  
 ---------        ----------------             
 _HWI_enableWugen ./readPushbuttonViaDSP.temp.o

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking;
   "readPushbuttonViaDSP.dsp_image.out" not built
make: *** [readPushbuttonViaDSP] Error 1

It appears HWI_enableWugen isn't defined. Let's comment it out and see what happens.

beagle$ make
/opt/toolchains/c6run_binary/bin/c6runapp-cc   readPushbuttonViaDSP.c -o readPushbuttonViaDSP
"readPushbuttonViaDSP.c", line 35: warning #225-D: function declared implicitly
"readPushbuttonViaDSP.c", line 46: warning #225-D: function declared implicitly
"readPushbuttonViaDSP.c", line 50: warning #225-D: function declared implicitly
"readPushbuttonViaDSP.c", line 52: warning #225-D: function declared implicitly 

readPushbuttonViaDSP successfully created

Success, but if you run it, it doesn't respond to the push button.




thumb‎ Embedded Linux Class by Mark A. Yoder