diff options
Diffstat (limited to 'src/Hardware/SAM4E/sam4e8e_flash.ld')
-rw-r--r-- | src/Hardware/SAM4E/sam4e8e_flash.ld | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Hardware/SAM4E/sam4e8e_flash.ld b/src/Hardware/SAM4E/sam4e8e_flash.ld index e7fc0113..fa10bf24 100644 --- a/src/Hardware/SAM4E/sam4e8e_flash.ld +++ b/src/Hardware/SAM4E/sam4e8e_flash.ld @@ -120,6 +120,9 @@ SECTIONS _firmware_end = _etext + (_erelocate - _srelocate); /* Embedded files start here */ _firmware_crc = _firmware_end; /* We append the CRC32 to the binary file. This is its offset in memory if we don't append embedded files */ + /* check that CRC is within flash memory */ + ASSERT(_firmware_crc + 4 <= ORIGIN(rom) + LENGTH(rom), "region ROM overflowed") + /* .bss section which is used for uninitialized data */ .bss ALIGN(4) (NOLOAD) : { |