We can break this down into a series of fields: : 10 0000 00 FC Our next record is a data record containing the raw byte values to be stored in program memory. The first data line is: :10000000000002208D0100089301000897010008FC The checksum is simply calculated by an 8-bit sum of the record bytes and then complimenting the sum to generate the checksum, e.g.: (uint8_t)(~(0x02 + 0x00 + 0x00 + 0x04 + 0x08 + 0x00)+1)įor a very large image, it is possible to have multiple ELARs, but this is less likely on a smaller microcontroller image. All other records defined in the hex file are defined relative to this address. So we can see the upper 16-bit of this address being 0x0800, thus, a starting address of 0x08000000. The Flash start address is defined in the linker script as: FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K This particular file is built to run on an STMicro ST32F407VG Cortex-M4 microcontroller.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |