Article Handling CRC in an IAR project for ADuCM302x

There is a "Checksum" tab under the "Linker" settings in the IAR project options, which can be used to generate the CRC of the user application code. In order to store the correct CRC, the following settings must be used:

1. Check “Fill unused code memory”

2. Set the “Fill pattern -> End address” to 0x7FB (changes depending on page number, default is 0)

3. Check “Generate checksum”

4. Select “4 bytes” from the “Checksum size” pull - down

5. Set “Alignment” to 4(bytes)

6. Select “CRC32” from the “Algorithm” pull - down

7. Set the “Initial value” to 0xFFFFFFFF and uncheck “Use as input”

8. Select “32 - bit” from the “Checksum unit size” pull - down

There is a "Extra Options" tab under the "Linker" settings in the IAR project options, which needs to be configured as

1. Check “Use command line options”

2. Use "--keep __checksum" as first line in command line options box

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.