Regarding the error 1005:
- If you see the section 10.8.7 of FX3 TRM, PP_ERROR register gives the GPIF and the PIB error.
- If you check the cyu3pib.h for CyU3PPibErrorType, then you will find that number 5 corresponds to CYU3P_PIB_ERR_THR0_WR_OVERRUN and if you check CyU3PGpifErrorType in the same file (cyu3pib.h) then you can see that 0x1000 corresponds to CYU3P_GPIF_ERR_DATA_WRITE_ERR.
- In the firmware let's say you have registered the piberror callback as follows:
Then in the callback function - void gpif_error_cb(CyU3PPibIntrType cbType, uint16_t cbArg)
The cbArg - will give you both PIB_ERR_CODE and GPIF_ERR_CODE - so in your case, the GPIF error tells Write to DMA data thread which is not ready and the PIB error tells "Write overrun (write beyond available buffer size) error on one of the Thread 0 sockets."