[En-Nut-Discussion] SJA1000
Petri Hyötylä
phyotyla at cc.hut.fi
Thu Aug 30 18:06:24 CEST 2007
Quoting Ole Reinhardt <ole.reinhardt at embedded-it.de>:
> Hi,
>
> please try out the attached sja1000.c. I corrected the ID settings for
> standard 11Bit ID frames. If it works better I'll checkin the file to
> the CVS.
>
> Sorry... I never notices this bug because I always use 29bit IDs.
>
> Bye,
>
> Ole Reinhardt
>
> --
> _____________________________________________________________
> | |
> | Embedded-IT Hard- und Softwarelösungen |
> | |
> | Ole Reinhardt Tel. / Fax: +49 (0)271 7420433 |
> | Luisenstraße 29 Mobil: +49 (0)177 7420433 |
> | 57076 Siegen eMail: ole.reinhardt at embedded-it.de |
> | Germany Web: http://www.embedded-it.de |
> | UstID / VAT: DE198944716 |
> |_____________________________________________________________|
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
a couple of tests
1) Debugger sends std and receives ext
Seems to me like the ethernut shifts bits left 18 bits.
sent received sent bits received bits
0x400 0x10000000 00 0000 0000 1 0000 0000 0000 0000 0000
0000 0000
0x200 0x08000000 010 0000 0000 0 1000 0000 0000 0000 0000
0000 0000
0x100 0x04000000 001 0000 0000 0 0100 0000 0000 0000 0000
0000 0000
0x080 0x02000000 000 1000 0000 0 0010 0000 0000 0000 0000
0000 0000
0x040 0x01000000 000 0100 0000 0 0001 0000 0000 0000 0000
0000 0000
0x020 0x00800000 000 0010 0000 0 0000 1000 0000 0000 0000
0000 0000
0x010 0x00400000 000 0001 0000 0 0000 0100 0000 0000 0000
0000 0000
0x008 0x00200000 000 0000 1000 0 0000 0010 0000 0000 0000
0000 0000
0x004 0x00100000 000 0000 0100 0 0000 0001 0000 0000 0000
0000 0000
0x002 0x00080000 000 0000 0010 0 0000 0000 1000 0000 0000
0000 0000
0x001 0x00040000 000 0000 0001 0 0000 0000 0100 0000 0000
0000 0000
2) Debugger sends ext and receives std
Seems to me like the ethernut shifts bits right 21 bits
sent received sent bits
received bits
0x10000000 0x080 1 0000 0000 0000 0000 0000 0000 0000 000
1000 0000
0x08000000 0x040 0 1000 0000 0000 0000 0000 0000 0000 000
0100 0000
0x04000000 0x020 0 0100 0000 0000 0000 0000 0000 0000 000
0010 0000
0x02000000 0x010 0 0010 0000 0000 0000 0000 0000 0000 000
0001 0000
0x01000000 0x008 0 0001 0000 0000 0000 0000 0000 0000 000
0000 1000
0x00800000 0x004 0 0000 1000 0000 0000 0000 0000 0000 000
0000 0100
0x00400000 0x002 0 0000 0100 0000 0000 0000 0000 0000 000
0000 0010
0x00200000 0x001 0 0000 0010 0000 0000 0000 0000 0000 000
0000 0001
7FF standard id from ethernut is received as 000 by the debugger.
--
Petri
More information about the En-Nut-Discussion
mailing list