This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Description
the attached testcode shows weird behaviors when varying the settings.
Its meant to be run on an arduino101 with looped miso mosi
A frequency setting of zero gives a system crash
a frequncy setting of several 100 mhz works fine
At all frequency seems not to change no matter what value is put in there
The calculation function mraa_spi_frequency uses hardcoded sys clock value
Really weird: when disconnecting the loop cable the reading of course becomes 0xFF.. or 0x00
but it seems like the printout of the input pattern (after the failed write) changes -> memory corruption seems possible
spi_test.zip