ä½ å„½ļ¼ęę³å©ēØCYUSB3014å äøäøåNANDflashåäøę¬¾Uēļ¼éå°äŗäøäŗéŗ»ē¦ćęå°DQ0-DQ1设置为ę°ę®å°åå¤ēØēŗæļ¼ē¬¬äøļ¼ęéč¦åflashåå
„8byteēå½ä»¤ļ¼FX3 APIäøęēøå
³å½ę°åļ¼ē¬¬äŗļ¼ęę³å©ēØGPIFē¶ęęŗčæč”FIFO读åFIFOåļ¼åƹFLASHēęåŗčæč”读åęä½ļ¼ęä¹ę§å¶GPIFäøę¬”čæč”读å512byte?第äøļ¼ęåŗčÆ„å¦ä½č®¾ē½®DMAééļ¼ę¢č½ę¢č½č§£ęę„čŖHOSTēUFIå½ä»¤ļ¼åč½čæč”ę°ę®ēä¼ č¾ļ¼
ęå¾
ęØč½åå¤ć
Hi,
For transferring 8 byte commands, you may use the GPIF register read write APIs such as CyU3PGpifWriteDataWords. Also, in order to send 512 bytes, you need to have your DMA Buffers configured for 512 bytes, Please create a Tech Support case for more guidance.
Regards,
-Madhu Sudhan
ä½ å„½ļ¼
ęåØå¼åčæēØäøéå°äŗé®é¢ćęå建äŗäøäøŖ GPIF TO USB ēDMAééļ¼å¹¶č®¾ē½®äŗDMAåč°å½ę°ļ¼å½ę°ę®åéå®ęÆåļ¼čæč”äøäŗęä½ļ¼ē¶åčæåē»§ē»ę§č”ēØåŗćåÆęÆęåØäøäøŖå½ę°äøvoid CyFxMscSendCsw (ļ¼ č°ēØäŗapiRetStatus = CyU3PDmaChannelSetupSendBuffer (&glChHandleMscOut, &dmaMscOutBuffer)å½ę°åļ¼ę°ę®åéęåļ¼å¹¶äøå½ę°ę®åéå®ęÆåčæå „äŗCyFxMscApplnDmaCbļ¼ļ¼å½ę°ę§č”ļ¼ä½ęÆå½ę§č”å®čæäøŖå½ę°åļ¼ēØåŗå°±ę²”ęåå¾äøę§č”ļ¼ę²”ęčæåvoid CyFxMscSendCsw (ļ¼čæäøŖå½ę°ē»§ē»čæč”ćęę³ē„éčæęÆäøŗä»ä¹ļ¼
ē„儽ļ¼
ä½ å„½ļ¼
ęå·²ē»ęäøé¢ēé®é¢č§£å³äŗćdmaåč°å½ę°ę§č”å®ęÆåäøčæåēåå ęÆę设置äŗå¤Ŗå¤ēCyU3PDebugPrintčÆå„ļ¼äø²å£ęå°éåŗ¦å¤Ŗę ¢ļ¼åƼč“ēØåŗę»ęäŗć
Hi,
I want to send 8 bits command to NANDflash via GPIF, You suggest me to use CyU3PGpifWriteDataWords() function, but i note that in the FX3 firmware API Guide, it says "Please note that each data word in the buffer is expected to be padded to 32 bits. " How can i do ? Can you give me a example code? Besides, the parameter "numWords" means how many times of 32 bits or how many times of 16 bits?
Looking forward to get a reply.
Regards,
-Feng Li
Hello,
Another question I want to consult you. I want to write or read NANDflash 512 bytes every time via GPIF state machine. But I don't know how to control state machine very well. The picture is my configuration of GPIF state machine. I want to use CyU3PGpifSMSwitch() function to realize it. Is it right? How can I set the parameters to control state machine to transfer 512 bytes every time? Can you give me the example code?
Looking forward to get a reply.
Thank you very much!
Regards,
-Feng Li