We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b1d665 commit e983896Copy full SHA for e983896
src/Hardware/SAM4E/sam4e8e_flash.ld
@@ -120,6 +120,9 @@ SECTIONS
120
_firmware_end = _etext + (_erelocate - _srelocate); /* Embedded files start here */
121
_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 */
122
123
+ /* check that CRC is within flash memory */
124
+ ASSERT(_firmware_crc + 4 <= ORIGIN(rom) + LENGTH(rom), "region ROM overflowed")
125
+
126
/* .bss section which is used for uninitialized data */
127
.bss ALIGN(4) (NOLOAD) :
128
{
0 commit comments