I have been playing with the DM355 EVM and gpio, with the montavista kernel and 
userland that came with the board (1.30 beta SDK).

 

It could be a PINMUX issue, most of the onboard gpio are muxed to other 
functions.

 

However by default GPIO6 is available, it’s on DC5 pin 5 (I think).

 

Also you don’t have to write any code, have a look in /proc/gpio/

if you execute “echo 1 > /proc/gpio/gpio6” the pin will go high, change it to 
echo 0 to drive it low.

 

I used a scope, as Stephen says there may not be enough current to light a LED.

 

hth,

 

Jon

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Berry
Sent: 08 February 2008 12:41
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: Re: toggle GPIO port pin

 


Most LED's will need a reasonable amount of current to turn on - and GPIO's are 
generally not capable of driving them directly.

Try putting a DVM or scope probe on the pin to check it's state.

    Steve

kaja gopi wrote: 

Hi,

 

I tried to toggle the bit on 6 GPIO ports given on DM355 EVM board.

I tried using mmap and the base address given was 0x01C67000.

I tried to toggle GPIO64 pin.

DIR45 offset is 60h.

OUT_DATA45 is 64h.

I have made DIR45 = 0x00; configuring all the ports in bank 4 and 5 to output 
ports.

and then OUT_DATA45=0x01 making 0th bit high which is GPIO64.

I also tried SET_DATA45 =0x01;

I have kept an LED ont that port and tried but it was not working.

Any body help me please.

 

thanks

regds

Gopi K 





________________________________

Meet people who discuss and share your passions. Join them now. 
<http://in.rd.yahoo.com/tagline_groups_7/*http:/in.promos.yahoo.com/groups>  

 


________________________________



 
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
  

 


Racelogic is a limited company registered in England. Registered number 
2743719. 
Registered Office 5 Little Balmer, Buckingham Ind Pk, Buckingham MK18 1TF.

The information contained in this electronic mail transmission is intended by 
Racelogic Ltd for the use of the named individual or entity to which it is 
directed and may contain information that is confidential or privileged. If you 
have received this electronic mail transmission in error, please delete it from 
your system without copying or forwarding it, and notify the sender of the 
error by reply email so that the sender's address records can be corrected. The 
views expressed by the sender of this communication do not necessarily 
represent those of Racelogic Ltd. Please note that Racelogic reserves the right 
to monitor e-mail communications passing through its network 

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to