Hello,
The problem is - when you use the board on the mikromedia, you will have to slow down the "fast SPI mode". You have to search for this line of code:
' Reinitialize SPI at higher speed
SPI2_Init_Advanced(_SPI_MASTER, _SPI_8_BIT, 4, _SPI_SS_DISABLE, _SPI_DATA_SAMPLE_MIDDLE, _SPI_CLK_IDLE_HIGH, _SPI_ACTIVE_2_IDLE)
and replace it with this :
' Reinitialize SPI at higher speed
SPI2_Init_Advanced(_SPI_MASTER, _SPI_8_BIT, 8, _SPI_SS_DISABLE, _SPI_DATA_SAMPLE_MIDDLE, _SPI_CLK_IDLE_HIGH, _SPI_ACTIVE_2_IDLE)
The numbers that are changed ( 4 to 8 ) are SPI baudrate divisors and if you set SPI too fast, it will have problems with the "elongated" conductors - when you plug it in the board, it's lines become a part of the circuitry and can introduce some interferences. It worked for me with the divisor of 8.
Best regards