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  [ 2 posts ] 
Author Message
 Post subject: SAM9X25 (and others) How to enable CAN1 interface?
PostPosted: Mon Oct 31, 2011 3:27 pm 
Offline

Joined: Wed Sep 08, 2010 9:52 am
Posts: 6
Hi all

I'm working with the SAM9X25-EK and I am trying to figure out the CAN interfaces.

A 'ifconfig -a' reveals a can0 interface and using the canconfig, ifconfig can0 up and candump/cansend seems to work. But it doesn't. It could be that can0 is sharing resources with the DBUG port. Viewing the 'ip -details -statistics link show can0' show an ever increasing numbers of packets received!. So something is wrong! :-)

can1 should not conflict with anything but this interface is not available.
How do I enable this interface?

I'v searched through the patched kernel source for can0 and can1 and didn't find any mismatching showing that only can0 should be enabled...

BR

Thomas S


Top
 Profile  
 
 Post subject: Re: SAM9X25 (and others) How to enable CAN1 interface?
PostPosted: Tue Nov 01, 2011 4:33 pm 
Offline

Joined: Wed Sep 08, 2010 9:52 am
Posts: 6
Ahhh... One of those days...

Write a post, hit enter and the answer is at the screen. (Doh!)

Running 'dmesg | grep can' returns:
at91_can at91sam9x5_can.1: can0: Features changed: 0x00004804 -> 0x00004004
at91_can at91sam9x5_can.1: device registered (reg_base=c88d0000, irq=30)

IRQ is CAN1 on the chip. So the interface can0 uses the hardware interface CAN1(!). :-)

It works. Great.

Cheers

Thomas S


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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: