EmbeddedRelated.com
Forums

SPI programing on at91sam9263

Started by denn...@yahoo.com December 19, 2009
Jerry,
I got the code to run, but I can never get any data in or out.

Dennis Kerrisk
720-542-8504
303-668-0736
d...@yahoo.com

________________________________
From: Jerry West
To: A...
Sent: Sun, December 20, 2009 10:50:16 PM
Subject: RE: [AT91SAM] SPI programing on at91sam9263 [2 Attachments]

[Attachment(s) from Jerry West included below]
This runs under linux

From:AT91SAM@yahoogroups .com [mailto:AT91SAM@ yahoogroups. com] On Behalf Of Dennis
kerrisk
Sent: Sunday, December 20, 2009 6:19 PM
To: AT91SAM@yahoogroups .com
Subject: Re: [AT91SAM] SPI programing on at91sam9263

But what user mode
programs do you use to read the adc via the SPI?

Dennis
Kerrisk
720-542-8504
303-668-0736
dennis_k85@yahoo. com

________________________________

From:Jerry West

To: AT91SAM@yahoogroups .com
Sent: Sun, December 20, 2009 4:08:31 PM
Subject: RE: [AT91SAM] SPI programing on at91sam9263

I am using Debian 5.0.2-1 and run on
atmel 6263 on a cogent computers csb737. I use spi for external 24 bit sigma
delta adc.

The linux is configured for that board.

jerry

From:AT91SAM@yahoogroups .com [mailto:AT91SAM@ yahoogroups. com] On Behalf Of Dennis
kerrisk
Sent: Sunday, December 20, 2009 5:01 PM
To: AT91SAM@yahoogroups .com
Subject: Re: [AT91SAM] SPI programing on at91sam9263

2.6.30, and I have the ATMEL drivers included in the
kernel. I just need to know how to access those from a use mode program?

Dennis Kerrisk
720-542-8504
303-668-0736
dennis_k85@yahoo. com

________________________________

From:Jerry
West
To: AT91SAM@yahoogroups .com
Sent: Sun, December 20, 2009 3:27:20 PM
Subject: RE: [AT91SAM] SPI programing on at91sam9263

What linux are you running? You need a
device driver in linux for your device.

jerry

From:AT91SAM@yahoogroups .com [mailto:AT91SAM@ yahoogroups. com] On Behalf Of Dennis
kerrisk
Sent: Sunday, December 20, 2009 9:58 AM
To: AT91SAM@yahoogroups .com
Subject: Re: [AT91SAM] SPI programing on at91sam9263

I tweaked it to run un linux. But I cannot access the
addresses for the registers of the SPI controller. I tried remapping the
physical addresses to virtual addresses that my program could use, but they are
all 0's. it seems like my mapping is not correct.

Dennis Kerrisk
720-542-8504
303-668-0736
dennis_k85@yahoo. com

________________________________

From:Jerry
West
To: AT91SAM@yahoogroups .com
Sent: Sat, December 19, 2009 12:52:21 PM
Subject: RE: [AT91SAM] SPI programing on at91sam9263 [2 Attachments]

This system is under Keil RL-ARM. Works
2 devices.

From:AT91SAM@yahoogroups .com [mailto:AT91SAM@ yahoogroups. com] On Behalf Of dennis_k85@yahoo.
com
Sent: Saturday, December 19, 2009 12:41 PM
To: AT91SAM@yahoogroups .com
Subject: [AT91SAM] SPI programing on at91sam9263

Does anyone have any examples of programing the SPI at91sam?

Dennis Kerrisk