Where do you find the meaning of GPIF Error 1005? I am doing bulk reads on a 32 bit GPIF and am getting this error.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
jene_286096
Level 1
Level 1

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.

0 Likes
1 Solution
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

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

Hemanth

View solution in original post

0 Likes
1 Reply
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

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

Hemanth
0 Likes