This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI data bytes are missing

When I am receiving data from slave data is missing. Means if o am reading 255 bytes then 127 bytes are right after that I am receiving alternate bytes. Some times I am receiving some bad data.Please help me as soon as possible. I think this is SPI over run case..But how to handle this.?

Parents
  • Nordic is SPI master and bad data means If I am sending 0 to 255 from Slave to master I am receiving 0x01,0x02,....upto some number of bytes after that 0x44,0x46,0x48,,0x4A.....like this not corrupted data but alternate bytes are missing..some times I am receiving 0x84,0x88,0x8C,0x90,....in this sequence every 3 byte are missing.

    Data is not corrupted but Data is missed and out of 10, 8 times I am getting this kind of data and SPI speed is 8MHz and currently I am just trying with 255 bytes but I have to receive 90 kb data from Slave device and Its a Image data so data should be so accurate.

Reply
  • Nordic is SPI master and bad data means If I am sending 0 to 255 from Slave to master I am receiving 0x01,0x02,....upto some number of bytes after that 0x44,0x46,0x48,,0x4A.....like this not corrupted data but alternate bytes are missing..some times I am receiving 0x84,0x88,0x8C,0x90,....in this sequence every 3 byte are missing.

    Data is not corrupted but Data is missed and out of 10, 8 times I am getting this kind of data and SPI speed is 8MHz and currently I am just trying with 255 bytes but I have to receive 90 kb data from Slave device and Its a Image data so data should be so accurate.

Children
Related