>
> r...@alpha:/opt/ard# cat /proc/interrupts
>             CPU0       CPU1
>    0:     153590     153124   IO-APIC-edge      timer
>    1:          0          2   IO-APIC-edge      i8042
>    5:          0          0   IO-APIC-edge      can0
>    7:          0          0   IO-APIC-edge      can1
>    8:          1          0   IO-APIC-edge      rtc0
>    9:          0          0   IO-APIC-fasteoi   acpi
>   12:          2          2   IO-APIC-edge      i8042
>   14:          0          0   IO-APIC-edge      ata_piix
>   15:       2433       2423   IO-APIC-edge      ata_piix
>   19:          0          0   IO-APIC-fasteoi   uhci_hcd:usb3
>   23:          0          0   IO-APIC-fasteoi   ehci_hcd:usb1,
> uhci_hcd:usb2
>   24:      59852      60280   PCI-MSI-edge      eth0
>  NMI:          0          0   Non-maskable interrupts
>  LOC:      92974      58404   Local timer interrupts
>  SPU:          0          0   Spurious interrupts
>  PMI:          0          0   Performance monitoring interrupts
>  PND:          0          0   Performance pending work
>  RES:        185        273   Rescheduling interrupts
>  CAL:         11         39   Function call interrupts
>  TLB:        131        108   TLB shootdowns
>  TRM:          0          0   Thermal event interrupts
>  THR:          0          0   Threshold APIC interrupts
>  MCE:          0          0   Machine check exceptions
>  MCP:         72         72   Machine check polls
>  ERR:          1
>  MIS:          0
> r...@alpha:/opt/ard#
>


Everything sounds normal to me. I am quite sure of the interrupts as I am
willing to use the default configuration (I have jumpers to choose this and
I am sure I did not change them) and it's written IRQ5<=> CAN1 and
IRQ7<=>CAN2
Can1 is at Basisadresse=0hD000 and CAN2 is at Basisadresse+Offset=0h0200h,
it it exactly what I configured.

Here is my dmesg when I load and configure modules :

> 20537.719019] can: controller area network core (rev 20090105 abi 8)
> [20537.719114] NET: Registered protocol family 29
> [20537.725995] can: raw protocol (rev 20090105)
> [20537.734246] can: broadcast manager protocol (rev 20090105 t)
> [20537.740686] sja1000 CAN netdevice driver
> [20537.746588] sja1000_isa sja1000_isa.0: sja1000_isa device registered
> (reg_base=0xc00d0000, irq=5)
> [20537.749266] sja1000_isa sja1000_isa.1: sja1000_isa device registered
> (reg_base=0xc00d0200, irq=7)
> [20537.755180] Legacy sja1000_isa driver for max. 8 devices registered
> [20537.759795] sja1000_isa sja1000_isa.0: setting BTR0=0x00 BTR1=0x1c
> [20537.763583] sja1000_isa sja1000_isa.1: setting BTR0=0x00 BTR1=0x1c
> r...@alpha:/opt/ard#
>



2010/11/14 Wolfgang Grandegger <[email protected]>

> On 11/14/2010 08:14 PM, Willy Lambert wrote:
> > At the moment I have :
> >
> > r...@alpha:/opt/ard# ip -d -s link show can0
> >> 17: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN
> >> qlen 10
> >>     link/can
> >>     can state ERROR-ACTIVE restart-ms 10000
> >>     bitrate 500000 sample-point 0.875
> >>     tq 125 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1
> >>     sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
> >>     clock 8000000
> >>     re-started bus-errors arbit-lost error-warn error-pass bus-off
> >>     0          0          0          0          0          0
> >>     RX: bytes  packets  errors  dropped overrun mcast
> >>     0          0        0       0       0       0
> >>     TX: bytes  packets  errors  dropped carrier collsns
> >>     0          0        0       0       0       0
> >>
> >
> >
> >
> > candump does not show anything !
>
> What does "cat /proc/interrupts" show? Are you sure you are using the
> correct interrupt numbers?
>
> Wolfgang.
>
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to