RAM Parity error in RL78 D1A controller

I am working RL78D1A controller (R5F10 DMJ). while running this below code controller is getting reset due to RAM parity error. The controller is resetting after k = 0x4821. RPEF bit in the RPECTL register is 0x01. If i execute step by step after k = 0x4820 RAM parity error is not coming. Please let me know the solution for this.

uint16_t crc16( uint8_t *data, uint32_t length)
{
uint16_t crc = INIT_CRC;
uint16_t i = 0;
uint8_t j = 0;
//uint32_t K = 0;
uint16_t crc_entry;

// Generate the CRC lookup table
if (!crc_table[1]) {
for ( i = 0; i < 256; i++) {
crc_entry = i << 8;
for (j = 0; j < 8; j++) {
crc_entry = (crc_entry & 0x8000) ? (crc_entry << 1) ^ POLY : crc_entry << 1;
}
crc_table[i] = crc_entry;
}
}

for (K = 0; K < length; K++)
{
crc = (crc << 8) ^ crc_table[(crc >> 8) ^ data[K]];

if(K == 0x4820)
{
NOP();
NOP();
}
if(RPECTL&0x01)
{
NOP();
NOP();
}

}

return crc;
}

Top Replies