Open Winnaries opened 3 years ago
test_data[1024] values obtained from slave via READ_BLOCK should contains four repeats of numbers 0 to 255 and it should not skip any values.
test_data[1024]
READ_BLOCK
test_data[1024] values obtained from slave via READ_BLOCK skips 4 bytes for every 64 bytes sent. Already checked using Logic Analyzer.
/* intended */ idx : [..., 62, 63, 64, 65, 66, 67, 68, 69, ...] test_data[idx] : [..., 62, 63, 64, 65, 66, 67, 68, 69, ...] ⌃⌃ /* actual */ idx : [..., 62, 63, 64, 65, 66, 67, 68, 69, ...] test_data[idx] : [..., 62, 63, 68, 69, 70, 71, 72, 73, ...] ⌃⌃
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 in the slave itself.
test_data_temp[1024]
WRITE_BLOCK
Provide a Minimal, Complete, and Verifiable example which will reproduce the problem.
/* slave test_data init */ for (int i = 0; i < 1024; i++) { test_data_temp[i] = i % 256; }
I'm on branch develop.
develop
Sipeed M1W
linux_x86
Expected behavior
test_data[1024]
values obtained from slave viaREAD_BLOCK
should contains four repeats of numbers 0 to 255 and it should not skip any values.Actual behavior
test_data[1024]
values obtained from slave viaREAD_BLOCK
skips 4 bytes for every 64 bytes sent. Already checked using Logic Analyzer.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 in the slave itself.Provide a Minimal, Complete, and Verifiable example which will reproduce the problem.
Document version
I'm on branch
develop
.Hardware
Sipeed M1W
System
linux_x86