In my application, I needed to extend a global variable from 32 bits to 64 bits using MPC5644A.
unsigned long long extendedVar1 = 0x0ULL;
void function (unsigned long long var2 )
{
extendedVar1 |= var2;
}
The program builds every time, but sometimes it fails to be flashed to the ecu, the flash memory is not fully used, but still this problem occurs when it's extended to 64 bits.
I tried an absolute addressing for this variable at the end of the flash and everything went well.
please find attached 2 screenshots from the memory allocations logs:
1- Problem has been solved with absolute memory allocation (mem.txt)
2- The same globale variable declared with no absolute memory allocation. (mem.txt)
Thank you!