• Really an hard to be logically fixed BUG.
    The code is written properly.
    I tested introducing inside the interrupt routine additional checks for the OVR or BSY flags but nothing changed.
    I then thought about introducing a delay between reads in order to give the sensor enough time to compute results from a CS to the next , but nothing changed.
    Interrupts are received in a proper way ( I measured 5 of them ) for the 1 write + 2 reads, but if ZERO is assigned instead of the first dummy 0x255 it "is likely" that this content is got from another SPIBuffer instead of the one addressed by the SPI port in use.
    But looking at the code this cannot be…

    Mah ???

About

Avatar for user6350 @user6350 started