
Figure 6. Configuration of post-build steps
5.1.3.2 Place information table
The
crc-hex.bat
file expects the information table in the last 16 bytes of the input
*.hex
file. This table can be defined as the
following structure:
/* The safety-related FLASH CRC value. */
fs_crc_t c_sfsCRC __attribute__((used, section(".flshcrc"))) =
{
.ui16Start = 0xA55AU,
.ui32FlashStart = (uint32_t)&__ROM_start__,
.ui32FlashEnd = (uint32_t)&m_safety_flash_end,
.ui32CRC = (uint32_t)FS_CFG_FLASH_TST_CRC,
.ui16End = 0x5AA5U
};
Post-build CRC calculation
i.MX8M Safety Example , Rev. 3, 07/2021
NXP Semiconductors
18