Hi,
I have FRDM-K64 and would like to implement CRC check of FW in boot-loader.
I have go through the bootloader code and found that bootloader already has feature of this and we just need to update BCA configuration written in application.
I have updated linker file to have BCA area in flash yet I am not able to find a way to update crcStartAddress,crcByteCount,crcExpectedValue in BCA area automated or with any post script in MCUXpresso.
Please help me.
Hi Darshan,
You can use KinetisFlashTool to generate and insert these parameters.
You can get it from https://www.nxp.com/webapp/Download?colCode=NXP_KINETIS_BOOTLOADER_2_0_0&appType=license
Regards,
Jing
Thank you for your response.
I have found this utility and try to use it. Yet issue is that I have added my own some parameter in BCA configuration which is overwritten by this tool with 0xFF data and CRC is counted.
Is there any provision to not to do this?
FYI: I'm using srec_cat to add the CRC with a script: Tutorial: CRC32 Checksum with the KBOOT Bootloader | MCU on Eclipse
I hope this helps,
Erich
Hi,
But you can modify the BCA HEX area in the first screenshot directly.
Regards,
Jing