Skip to main content
Explorer II
September 29, 2024
Question

To add a CRC32 result to the end of a bin file,

  • September 29, 2024
  • 1 reply
  • 1540 views

hi

To append a CRC32 calculation result, which is computed by the hardware CRC ,

I want make the crc result  at the end of the bin file , for the purpose of verification during program upgrade.

please Give a method,

It is best to directly generate the bin file with crc, instead of passing through the generated bin file, and add it in other Script

    This topic has been closed for replies.

    1 reply

    Super User
    September 29, 2024

    It is best to directly generate the bin file with crc, instead of passing through the generated bin file, and add it in other Script

    It depends on your manufacturing and QA process.  IMHO "passing through the generated bin file, and add it in other Script" is good enough. Because you may want to do other things with the bin besides of adding CRC, for example encrypt or add a signature or some data. 

     

    Graduate II
    September 29, 2024

    And as software people we can write software..

    objcopy doesn't do it, but could use SRECORDS as a secondary step

    IAR has some integrated methods 

    Shown several times how to embed lengths with KEIL and GNY/GCC

    zhaowhongAuthor
    Explorer II
    September 30, 2024

    Currently stm32cubeide does not have this function, right?