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
  • I have already try at 1 MHz. Yes both the side I have configured Mode 0. And Sometime I receive proper data so i think mode is not problem. When I am debugging I noticed when I send 0x00 to 0x3F and read 64 bytes, I get correct data in nordic . But when I send

    0x40 to 0x7F to same buffer and read this data I got error. I have attached screen shot of received data and send data.

    Please look at this Right one is Slave send Data and Left one is received data.

      Slave Send Data

Reply
  • I have already try at 1 MHz. Yes both the side I have configured Mode 0. And Sometime I receive proper data so i think mode is not problem. When I am debugging I noticed when I send 0x00 to 0x3F and read 64 bytes, I get correct data in nordic . But when I send

    0x40 to 0x7F to same buffer and read this data I got error. I have attached screen shot of received data and send data.

    Please look at this Right one is Slave send Data and Left one is received data.

      Slave Send Data

Children
Related