MM9S1J638 D2D error interrupt

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MM9S1J638 D2D error interrupt

1,132 次查看
vivek_sri
Contributor II

Hi

I'm working on MM9S1J638 bootloader based project where I'm doing PFlash erase and Write operations.

Sometimes the operation is successful But most of the time during flash erase or write operation, the code gets stuck somewhere.

When I pause the debugger I see that the program counter stays inside below isr.

interrupt VectorNumber_Vd2di_err void isrD2DErr(void) {

while(1) {
    if(D2DSTAT0_ERRIF) {
    D2DSTAT0_ERRIF = 1; // clear flag
}else{
    PCRReset(); // issue an analog die reset
}
}
}

I'm referring MM9Z1J638-Demo-APPSW and  AN12086SW Simple Serial Bootloader for my project.

My Bus clock freq is 25Mhz

D2D freq is 25Mhz

FCLKDIV value is 18 (Referred from datasheet )

What could be the possible reason for D2D error interrupt during flash erase and write operation.

Thanks!!

Vivek

0 项奖励
回复
0 回复数