Thread (29 messages) 29 messages, 8 authors, 2009-10-22

Re: MPC5121 CAN and USB

From: Paul Gibson <hidden>
Date: 2009-10-15 23:03:26

quoted
The kernel from the BSP on Freescale site is crashing on the CAN in my c=
ase
quoted
=A0(might be a hardware bug).
I don;t think so. There are some problems in this code, for example
the clocks seem to be wrong. Not toi menthin that the whole code is
hoplessly old and without chance of ever being merged into mainline.
The clocks are definitely wrong, but should not cause the crashing.
The only fix I needed for the ADS512101 board was to set the clock to
66MHz, instead of 100MHz in drivers/can/mscan/mscan.c:
clk->rate =3D 66000000;

Its a hack I know.
The "ltib-mpc5121ads-20090602" branch reflects the exact state of the
kernel contained in the LTIB with this name (dated July 2009, despite
the name; based at 2.6.24.6, i. e. 7+ kernel versions behind).
I have diff'ed this and it is very similar to the ltib in the BSP.
The MBX patches may be missing though.  These patches can be obtained
via the Freescale SDK for the OpenGL on the MPC5121e webpage.

Paul
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help