Freezing and second recall of SPIReadWritePolling

Hi support,
I have some issue using spi dll (last V5.3) on Colibrì T20 working on CE6 (original image provided by Toradex “Tegra_WinCE_Image_1.4”) .NET CF 2.0.

The first time it is initialized it works properly, but if I call

SPIDeinit(txSSPport); to deallocate it and after that I try to restart with

spiError = SPIInit(txSSPport, Constant.dataBits, Constant.SPI_CLOCK_1_MHZ, false, 0, null); ///< Initialize SSP (master)

SPIReadWritePolling(txSSPport, buffIn, buffOut, 1, 0);

This function of write read freezes in an infinite waiting. No windows Exeptions but I lose program control that need to be be closed.

Thanks in advanced for any suggestion.

We quickly tried to reproduce this issue without success. Could you please test once using native code (C). If the issue still apears there, could you send us the project you have tested with.

I have the exact same problem. Using C# .NET 3.5 and VC2008. Colibri T20 WCE7.0

If SPIInit and SPIdeinit are called. And then SPIInit again and try to write to SPI, it freezes. No exceptions called. Just frozen.

spiError = SPIInit(txSSPport, Constant.dataBits, Constant.SPI_CLOCK_18_MHZ, false, 1, null);
SPIDeinit(txSSPport);
spiError = SPIInit(txSSPport, Constant.dataBits, Constant.SPI_CLOCK_18_MHZ, false, 1, null);
SPIreturn = SPIReadWritePolling(4, read_buffer, write_buffer, 1, 10);

Frozen at SPIReadWritePolling.