- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where do you find the meaning of GPIF Error 1005? I am doing bulk reads of on a 32 bit GPIF an am getting this error in the console window.
Solved! Go to Solution.
- Tags:
- 32-bit gpif ii
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jeff,
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:
CyU3PPibRegisterCallback(gpif_error_cb,0xffff);
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."
Regards,
Hemanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jeff,
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:
CyU3PPibRegisterCallback(gpif_error_cb,0xffff);
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."
Regards,
Hemanth