Xingyu Li

.MX53: Failure of Simultaneous usage of SPI and SD Memory in WinCE

Discussion created by Xingyu Li Employee on Jan 18, 2012
Latest reply on Jan 18, 2012 by Xingyu Li

A customer is facing issues in using SPI and SD card simultaneously.

 

   Please find the attached code and observations observed by the team.

1. SPI NOR Read Write

Pre-requisite:   SPI NOR with DMA burst Len = 64*32, Exchange Count = 64. Logging in "SDMemory".

Operation:  A. Read/write operations on SPINOR and log messages stored in SDMemory.

                        B. From file manager  copy file >100KB file to SDMemory.

Result:  SPI DMA Communication Failed, Not able to access SDMemory and got hanged.

 

2. SPI NOR Read Write

Pre-requisite:     SPI NOR without DMA (ECSPI_Test32bit.cpp line no. 159 buscnfg.usedma = FALSE) burst Len = 64*32, Exchange Count = 64. Logging in "SDMemory".

Operation:  A. Read/write operations on SPINOR and log messages stored in SDMemory.

                        B. From file manager  copy file >100KB file to SDMemory.

Result:  Works Fine. No Hang.

 

3. SPI NOR Read Write

Pre-requisite:     SPI NOR with DMA burst Len = 64*32, Exchange Count = 64. Logging in "Hard Disk"

Operation:  A. Read/write operations on SPINOR and log messages stored in "Hard Disk"(USB stick).

                        B. From file manager  copy file >100KB file to SDMemory.

Result:  Works Fine. No Hang.

Outcomes