Hardware bug in erasing?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hardware bug in erasing?

Jump to solution
891 Views
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 Kudos
Reply
1 Solution
811 Views
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;

View solution in original post

0 Kudos
Reply
1 Reply
812 Views
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 Kudos
Reply