pyboard - SPI capture issue
Posted: Wed Jun 01, 2022 9:38 am
Hi All,
I'm using pyboard connected to SPI lines. Those lines have messages that each message is 128Bytes.
when I'm using spi.recv(128) I'm getting a mess of messages ( some from the middle of a message some from the end of the message).
The SPI CLK is: 10Mhz
SPI space between messages is: 0.2mS
other properties:
pyb.freq() --> (168000000, 168000000, 42000000, 84000000)
SPI(2, mode=2, baudrate=25000000, polarity=0,phase=1,bits=8,firstbit=SPI.LSB)
Does someone have an idea how to capture the message as a complete message (when CS enables) and save it?
Thanks
I'm using pyboard connected to SPI lines. Those lines have messages that each message is 128Bytes.
when I'm using spi.recv(128) I'm getting a mess of messages ( some from the middle of a message some from the end of the message).
The SPI CLK is: 10Mhz
SPI space between messages is: 0.2mS
other properties:
pyb.freq() --> (168000000, 168000000, 42000000, 84000000)
SPI(2, mode=2, baudrate=25000000, polarity=0,phase=1,bits=8,firstbit=SPI.LSB)
Does someone have an idea how to capture the message as a complete message (when CS enables) and save it?
Thanks