The first bit transmitted to the master, after READ_BLOCK, is 0xff.
Actual behavior
The first bit transmitted to the master, after READ_BLOCK, is 0x7f where the first and MSB is dropped, as you can see in the picture.
Test code
Please follow this implementation https://github.com/kendryte/kendryte-standalone-demo/tree/develop/spi_slave, but instead of initializing test_data_temp[1024] values via master's WRITE_BLOCK, please initialize it on the slave to the values in the shown in the picture above. Notice that we have to reorder the bytes as followed, because default frame_width for READ_BLOCK is 32.
FYI: Those values are a part of JPEG header, namely the first four bytes.
Expected behavior
The first bit transmitted to the master, after
READ_BLOCK
, is0xff
.Actual behavior
The first bit transmitted to the master, after
READ_BLOCK
, is0x7f
where the first and MSB is dropped, as you can see in the picture.Test code
Please follow this implementation https://github.com/kendryte/kendryte-standalone-demo/tree/develop/spi_slave, but instead of initializing
test_data_temp[1024]
values via master'sWRITE_BLOCK
, please initialize it on the slave to the values in the shown in the picture above. Notice that we have to reorder the bytes as followed, because defaultframe_width
forREAD_BLOCK
is32
.FYI: Those values are a part of JPEG header, namely the first four bytes.
Document version
Q: Which branch are you on? If you know the Git revision then add it here as well. A:
develop
Hardware
Which hardware do you use? A:
Sipeed M1W
System
Q: What system do you use? A:
linux_x86