[ELDK] FW: spi driver

Bharathi K bharathik at icommtele.com
Mon Oct 24 07:18:05 CEST 2011


 

 

From: Bharathi K [mailto:bharathik at icommtele.com] 
Sent: Monday, October 24, 2011 10:48 AM
To: BHARATHI KANDIMALLA
Subject: spi driver 

 

 

I am trying to develop spi driver  for mpc885 processor 

I am  able to write to the device  , but in master mode when I am trying to
read from the device  We are getting segmentation fault,As it is master  we
are generating the clock by dummy write 

 

If I am  trying to write using memset ,I am not getting any segmentation
fault.

 I think it is the alignment problem 

 

I am attaching the code we are using 

Please give me the suggestion

 

Regards

Bharathi

 

 

 

 

 

 

 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mpc885_spi1.c
Url: http://lists.denx.de/pipermail/eldk/attachments/20111024/9baae7bd/attachment.asc 


More information about the eldk mailing list