Problem when erasing boot flash.

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

Problem when erasing boot flash.

2,195件の閲覧回数
jeypi
Contributor I
Hello guys,
 
I'm working with 56F8346 and CodeWarrior 5.6.1.1658.  I'm using the processor expert bean IntFlash and when I try to erase boot flash occurs problems. I debug the code and discover that two flags (PVIOL and ACCERR) of the FMUSTAT register are set when the process of erase boot flash finishes. The code is write below:
 
 BootFlash_SetGlobalProtection(FALSE);
  if(BootFlash_EraseFlash(BOOT_FLASH_BLOCK) != ERR_OK);
  bootError(INDICATE_ERROR_FLASH);
 
bootError was created to report errors. But the two first methods belongs to IntFlash. I don't understand why these flags are set, because I disable the boot area protection. The mass erase command (0x41) is also being write in the FMCMD register. Does anyoney already passed through this situation? Is there any properties that has to be configured in the IntFlash bean ?
 
Thanks,
 
João Paulo.
ラベル(1)
タグ(1)
0 件の賞賛
返信
2 返答(返信)

787件の閲覧回数
FTSolutions
Contributor III
Hello,

Your code is not executing in bootflash when it attempts to erase it, is it ?   If so, you will
see an error occur .   One cannot reliably erase a section of flash while one is executing from it.
0 件の賞賛
返信

787件の閲覧回数
jeypi
Contributor I
Thanks guy,
 
I figured out to erase the boot flash.
 
Thanks,
 
João Paulo.
0 件の賞賛
返信