Illegal BP

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

Illegal BP

1,132 次查看
abhijithshankarenn
Contributor I

Hi NXP Team,
   I am using S12GA64 µC in my project.
   While I am trying to flash, the program is going to ILLEGAL_BP.
    Suppose if I am calling MCU_init just before calling the flash program driver command, the program is NOT going to illegal BP.
   Kindly let me know any insights or suggestions to solve this problem.

Regards
Abhijith Shankar

0 项奖励
回复
2 回复数

1,110 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Abhijith Shankar,

I understand that the issue is solved if you call the MCU_init() function.

So, what does the function do?

I can only guess, but since you mentioned a flash program command, do you set FDIV correctly?

danielmartynek_0-1646043635185.png

 

Regards,

Daniel

 

0 项奖励
回复

941 次查看
abhijithshankarenn
Contributor I

This issue is solved when you disabling the interrupt before writing the flash memory.
And re-enabling the interrupt as soon as the write is over. 
 
TE register needs to be made 0 before any flash operations are carried out. And re-enabled after the flash operation is done

0 项奖励
回复