---------- Forwarded message ---------- From: Lei Luo <[email protected]> Date: Thu, 10 Jun 2010 17:43:02 +0800 Subject: Re: [Socketcan-users] data not been recieved correctly To: christian pellegrin <[email protected]>
Hi, 2010/6/10 christian pellegrin <[email protected]> > On Thu, Jun 10, 2010 at 6:00 AM, Lei Luo <[email protected]> wrote: > > Hi, > > > > Hi, > > > The bitrate is 500000, the SPI speed is 5*1000*1000. Is That too high? > > the maximum SPI speed for mcp2510 is 5 Mhz, for 2515 is 10 Mhz. Try to > lower a bit to see if something improves please. What I am using is mcp2510, the problem is still after set SPI speed to 2MHz. I set it in kernel/arch/arm/board-dk.c as follows, then re-compiled the kernel, is that right? static struct spi_board_info dk_spi_devices[] = { { .modalias ="mcp251x", .platform_data = &mcp251x_info, .irq = AT91_PIN_PC14, .max_speed_hz = 2*1000*1000, .chip_select = 2, .controller_data = (void *) AT_91_PIN_PA5, }, ... > > Another thing to try is to add > > .delay_usecs = 1, > > It does not affect too. > > ASAP I will do some tests, unfortunately right now I don't have the > hardware (this is the sad life of consultants, when you finish a job > you are thrown on something else and left without hardware). > > > Thanks for your helps! Regards Robert _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
