CRC Size Flash Image Bootloader Standards STM32F0?
Hi Forum,
I have a custom bootloader and now add a crc check for my stm32f0 application loaded.
Is there any standard where and how to place the crc?
For now my idea is to add a header to the app flash section with the length and crc.
I can append the crc also but I need a length information for the bootloader to know where that end is and so need an application header anyway.
I have added an .app_header section before .isr_vector in the linker script to place the header at the begin,
fields for now header length, app length, app crc, header crc.
Can I calculate application size and place it in header during build with linker script or however?
Happy about any suggestions.
iwl