|
Hi blue_z,
There is only the one SPI device on my board, the DataFlash part, so unless the 10 MHz clock setting is inappropriate, then the clock speed should not be an issue.
I know the writes work because when I do a multi-page 'blind' write (without trying to read-back and verify) and reboot, I can recover the data eventually (I can recognize success because it is crc checked), but my experience is that:
1) If I read immediately after boot, I get a good read consistently (once). 2) If I wait a few seconds after boot, I get good reads intermitently (perhaps once every 5 tries).
Today I tried to port my application forward onto the 2.6.30.5 kernel level, and have *almost* succeeded. The primary problem I am having now is that I can't get the SPI layer to work at all on the 2.6.30.5 kernel! During kernel initialization, I get an error about spi0.0 initialization failing, and then of course the MTD subsystem doesn't come up at all, so my /dev/mtdx devices are never created. This is ironic to say the least. I was hoping that the changes between 2.6.26.5 and 2.6.30.5 would improve the reliability of the SPI subsystem, but instead it seems to be completely broken. I will look into it more tomorrow, perhaps there is something simple that I can adjust.
_________________ - Michael / Tampa, FL
|