- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
we are using an example code "UsbSpiGpioMode", from FX3 SDK 1.3 and verified a few transactions(Read, Write, and Erase) in the CX3 Denebola Eval board using the Control Center utility. When trying to erase the page in SPI Flash memory, an error occurred as "CONTROL OUT transfer failed with Error Code:997".
Detail info:
1. Write to SPI flash - working
2. Read from SPI flash - working
3. Erase SPI flash sector - CONTROL OUT transfer failed with
Error Code:997
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
The Error Code 997 stands for ERROR_IO_PENDING i.e., Overlapped I/O operation is in progress. The data stage for the Control Out transfer is not complete in your case and hence resulted in this error code.
As per the SPI Erase implementation, there is no data stage for the SPI Erase command. You can provide the Sector number to be erased in the wIndex field and that sector will be erased on the execution of that command.
Thanks,
Ajeeth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
The Error Code 997 stands for ERROR_IO_PENDING i.e., Overlapped I/O operation is in progress. The data stage for the Control Out transfer is not complete in your case and hence resulted in this error code.
As per the SPI Erase implementation, there is no data stage for the SPI Erase command. You can provide the Sector number to be erased in the wIndex field and that sector will be erased on the execution of that command.
Thanks,
Ajeeth