Hello,
We are debugging GPMC/EDMA data transfers on ICE3359 and facing strange phenomenon on GPMC BUS.
As the GPMC/EDMA data transfer, we transfer NOR FLASH to DDR2 by way of GPMC and EDMA.
Transfer Path: NOR FLASH -> GPMC -> EDMA -> DDR2
<GPMC/EDMA Settings>
GPMC Settings
-Asynchronous mode
-16Bit Bus Size
-Single Access
-Using CS0
EDMA Settings
-AB Transfer
-aCnt=2,cCnt=1 and choose number of word(16b) by setting bCnt.
-TCINTEN=1
-TCC=12
-TCCMODE=0
-STATIC=0
-DAM=0
-SAM=0
As the results, the number of GPMC Chip select signal is different from EDMA tranferred count number.
We checked the following combinations of the transfers, pls see the following table.
Desired Result of
aCnt bCnt # of Words # of Chip Select Comments
2 2 2 2 OK,the desired words is the same as the number of CS.
2 3 3 4 NG, CS should be three.
2 4 4 4 OK,the desired words is the same as the number of CS.
2 7 7 8 NG, CS should be seven.
2 9 9 16 NG, CS should be nine.
2 12 12 16 NG, CS should be twelve.
2 15 15 16 NG, CS should be fifteen.
2 17 17 24 NG, CS should be seventeen.
2 25 25 32 NG, CS should be twenty-five.
Why does not the bCnt value equal to the CS cycle?
The number of CS should be the same as bCnt value.
Is this a GPMC specification when we use GPMC/EDMA path?
Could you pls tell us how to accomplish the desired word transfer on GPMC/EDMA Path?
Best regards,
AY0689