I am using LPC54606J512BD100 and facing issue that after uploading the flash from the hex generated by command using keil IDE the flash data microcontroller has is changed. Using LPC-Link 2 Rev B and Ulink2 as debugger.
I am using the following command
.\bin\srec_cat .\Objects\project.hex -Intel -fill 0x00 0x00 0x7FFFE -crop 0x00 0x7FFFE -CRC16_b_e 0x7FFFE -O .\Objects\project.hex -Intel -line-length=44
This is the part of hex generated by keil
:020000040000FA
:1000000000800220A1040000C1040000C50400001B
:10001000C9040000CD040000D1040000000000006D
:10002000FFFFFFFF0000000000000000D5040000FB
Flash data downloaded from microcontroller
Command used in KEIL IDE
SAVE memoutput.hex 0x00,0x7FFF
Portion of hex where the change is
:020000040000FA
:1000000000800220A1040000C1040000C50400001B
:10001000C9040000CD040000D10400007263FDDFBC
:10002000FFFFFFFF0000000000000000D5040000FB
So, the second line last 4 bytes are changing unable to know why?
Original: 10001000C9040000CD040000D1040000000000006D
From Controller: 10001000C9040000CD040000D10400007263FDDFBC