This tests an underlying 32-bit entropy generator and the library
transformations between 8-bit and 32-bit entropy. To run this test,
add this line to the imix boot sequence:
A SPI test which read/writes and expects MOSI to
be loopbacked to MISO. It checks that what it writes
is what it reads. The values put in the buffer are
a circular ring of 8-bit values, starting with an
initial value and incrementing by 1 on each write.
So if the first write is [33, 34, … , 32],
the next write will be [34, 35, …, 34]. You can set
the speed of the operation to check that configurations
are being set correctly: running two tests in parallel
with different bit rates should see different clock
frequencies.
notice that there will be 18 tests, 6 for each,
and the test output will make the debug buffer full,
please go to boards/components/src/debug_writer.rs and change
let buf = static_init!([u8; 1024], [0; 1024]);
to
let buf = static_init!([u8; 4096], [0; 4096]);
Thanks!
To run this test, include the code