Hardware bug in erasing?

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

Hardware bug in erasing?

跳至解决方案
934 次查看
oloooloo
Contributor III

In MPC5674f when FlashA M1 is erased it erase also H5 and other way execution erasing H5 destroys also M1.

The mask i am using for M1 erase_mask = 0xFFFDFFFF; and for H5 erase_mask = 0xFFFFFFDF;

Could anyone to confirm this? Is it hw bug?

0 项奖励
回复
1 解答
854 次查看
oloooloo
Contributor III

looks like problem solved, bootloader is stettng valuses in some registers, if i set them back to 0 erasing works fine, those registers are:

  *(unsigned int*)0xC3F91684 = 0x0;
  *(unsigned int*)0xFFF48008 = 0x0;
  *(unsigned int*)0xFFF4816D = 0;
  *(unsigned int*)0xC3FF0000 = 0;
  *(unsigned int*)0xC3FF0100 = 0;
  *(unsigned int*)0xC3FF0108 = 0;
  *(unsigned int*)0xC3FF010C = 0;

在原帖中查看解决方案

0 项奖励
回复
1 回复
855 次查看
oloooloo
Contributor III

looks like problem solved, bootloader is stettng valuses in some registers, if i set them back to 0 erasing works fine, those registers are:

  *(unsigned int*)0xC3F91684 = 0x0;
  *(unsigned int*)0xFFF48008 = 0x0;
  *(unsigned int*)0xFFF4816D = 0;
  *(unsigned int*)0xC3FF0000 = 0;
  *(unsigned int*)0xC3FF0100 = 0;
  *(unsigned int*)0xC3FF0108 = 0;
  *(unsigned int*)0xC3FF010C = 0;

0 项奖励
回复