Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: AT91SAM9263 Virtual Adress for TWI
PostPosted: Fri Mar 25, 2011 10:11 am 
Offline

Joined: Tue Nov 23, 2010 9:14 am
Posts: 2
I am working on the TWI driver for the AT91SAM9263 controller. When I am trying to access the TWI registers it gives me the segmentation fault error as follows

Unable to handle kernel paging request at virtual address fef88010.

will anyone please guide me how to calculate the virtual adress for the TWI
I have done the calculations as follows

#define L_TWI_VIRT_BASE (TWI_PHY_BASE - L_IO_PHY_BASE) + L_IO_VIRT_BASE

where

TWI_PHY_BASE 0xFFF88000
L_IO_PHY_BASE 0xFFF78000
L_IO_VIRT_BASE 0xFEF78000

Thank you


Top
 Profile  
 
 Post subject: Re: AT91SAM9263 Virtual Adress for TWI
PostPosted: Thu Apr 14, 2011 6:16 pm 
Offline
User avatar

Joined: Wed May 12, 2004 6:59 pm
Posts: 161
Location: Bergamo, Italia
It's very difficult to guess what are you doing and how.
Please provide more details and the source code.

_________________
Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
Embedded and Real-Time Software Engineering
- Atmel Third Party Consultant
Tel. +39-(0)35-255.235 - Fax +39-178-223.9748
http://www.KoanSoftware.com | http://www.KaeilOS.com


Top
 Profile  
 
 Post subject: Re: AT91SAM9263 Virtual Adress for TWI
PostPosted: Thu Apr 14, 2011 9:34 pm 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 204
Location: USA
Hi there

> will anyone please guide me how to calculate the virtual adress for the TWI

The base virtual address (for the register set) should not be calculated using constants.
You should be calling request_mem_region() and ioremap().

What does your driver's init look like?

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Baidu [Spider] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: