Hello NXP,
I am facing a CRC check routine failure during the flashing when I am learning the DEMO bootloader, more detail are the following:
1. Hardware: S32K3X4EVB-T172
2. Software:
a). Demo FBL: unified_bootloader_demo_v2.1 -> Download from NXP website.
b). Demo App: S32K344_CAN_App_RTD200 -> Download from NXP website.
c). My App -> Just a simple app with 1 CAN message periodic sending which works well without a FBL.
d). Flashing tool: ECUBus -> Download from NXP website.
3. Issue description:
a). When I was using the combination of DEMO FBL + DEMO app + ECUBus, everything is fine: flashing ok, demo app running fine, I can also flashing muti-times.
b). But when I try to flash my app -> of course adaption was correctly done according the DEMO app: Link file changed. The app CRC check routine failed.
4. What I did
a). I checked the FlashDriver CRC check which is successfully passed, try to find what is the difference. So the Start Address(0x440200) and Length(0x9074) my app for CRC calculation are fine as I expected, which means it match my app target files they have same mapping. check below screenshot.
b). I also export the dump file of memory. They are also fully matched which means my app was successfully flashed.
c). I saw the "MAX_ONCE_CHECKSUM_SIZE" is 100000, the Demo app is bigger than 100000 which means CRC will calculate twice, my app is less than 100000 so I guess this is the only difference.
d). ECUBus side, I didn't do any change, I guess it will automatically calculate CRC according to size of bin file.

