PFDL_Execute problem

Hi,

I'am developing a program on a R5F10WMAA microcontroller and I have a problem using PFDL_Execute function with the following code:

status = R_FDL_Erase(0);

The program stops @ ret=ret = PFDL_Execute(&request_pstr); inside the following function

uint8_t R_FDL_Erase(uint16_t block)
{
__near pfdl_request_t request_pstr = { 0x00 }; /* FDL function parameter */
uint8_t ret;

/* ---- Set FDL parameter ---- */
request_pstr.index_u16 = block; /* Set to erase block */
request_pstr.command_enu = PFDL_CMD_ERASE_BLOCK; /* Set to FDL erase command */

ret = PFDL_Execute(&request_pstr);

/* ---- Waiting for finish erase process ---- */
while (PFDL_BUSY == ret)
{
ret = PFDL_Handler();
R_WDT_Restart();
}

/* ---- Succeeded to erase process ---- */
if (PFDL_OK == ret)
{
ret = RET_OK;
}
/* ---- FDL access error ---- */
else
{
ret = RET_NG_DEVICE;
}

return ret;
}