TI E2E Community
The wrong return value of DDC_spiTransfer()
Hi, everyone. I'm debugging the SPI, however, the return value of calling GIO_write() is -13. finally, we've found that -13 come from the return value of DDC_spiTransfer(). But we can't find what wrong the -13 means. So, Please tell me what causes the return value -13, and how to solve it? Thank you.
By the way, the pspdriver of SPI is pspdriver_1_10_09, and the program run correctly on the EVM board(DM648), it run wrongly on our custom board on the loopback_disable mode.
Please help me as soon as possible. Thanks.
Hi maoyang wu,
I guess you are using "pspdriver_1_10_00_09". Please confirm this.
The spi sample application does a read/write data transfer test to EEPROM. Is this working on your custom board?. Also, the spi driver is no where returning -13 and I am not sure how you are getting this error code. Could you probe into the driver and check from where exactly(inside DDC_spiTransfer()) it is returning.
And, are you calling GIO_write with "IOM_FLUSH" or "IOM_ABORT" commands? or using any of the Mini driver ctrl functions(Like IOCTL's)?
If you refer the BIOS Userguide, "SYS_ENOTIMPL" error code has a value 13 which means "An attempt was made to use an action that is not implemented".
Does this help with your question? If not, please send back more information. If it answers your question, please click the Verify Answer button below.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.