Illegal BP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Illegal BP

1,065件の閲覧回数
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,043件の閲覧回数
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 件の賞賛

874件の閲覧回数
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 件の賞賛