- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm using the UsbSpiDmaMode example to test on SPI flash, I have gone through the code, and for writing and reading the limit for the length I found is, the length should be multiple of 256 and less than 4096, but what I'm trying to do is, I'm trying to write/read 250KB at once, but while doing this I got this error:
CONTROL IN transfer
CONTROL IN transfer failed with Error Code:997
how can I write 250KB data at once to SPI flash in the Denebola kit?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In a single SPI read/write operation, 27136 bytes (0x6A00) can be read/written.
This is a limitation from the Flash side.
Could you let us know why such high amounts of data are to be written to the Flash?
Best Regards,
AliAsgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Subhash,
Please confirm if you are aware of "Program > FX3 > SPI FLASH" in the control center to program the completer firmware to SPI Flash.
If yes, kindly refer to the source of the Control Center application and USBFlashProg (path : C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\basic_examples\) example from SDK which is used by control center to read/write to SPI FLASH
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I used example what you have referred, but even by reading 40KB I'm getting error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Subash,
Is the below error seen, when writing to flash or reading from flash?
"CONTROL IN transfer
CONTROL IN transfer failed with Error Code:997"
Please send the screenshot of the control center when the error is seen.
Are you able to read/write 256 bytes of data from/to the flash?
Best Regards,
AliAsgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Subhash,
Is your problem solved?
Best Regards,
AliAsgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved means I'm just able to write 256 bytes to 4096 bytes smoothly but unable to read 40K bytes at once.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Subhash,
Could you share with us your firmware project?
Best Regards,
AliAsgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@AliAsgar I did not modified anything, I just imported the code from firmware examples, spidmamode example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In a single SPI read/write operation, 27136 bytes (0x6A00) can be read/written.
This is a limitation from the Flash side.
Could you let us know why such high amounts of data are to be written to the Flash?
Best Regards,
AliAsgar