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?
Solved! Go to Solution.
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;
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;