Boot loader using CAN protocol for RL78

Hi,

I am developing boot loader for RL78 using CAN. I am able to develop completely. But problem is after flashing 256 Bytes of data(reading data from CAN),MCU is resetting at the point of data read from CAN.