Remote update IP CRC
Hello, I am writing a programme on a Cycloc 10GX to do remote updates.
I am using the Intel Remote Update IP which all seems to work, however I have some questions.
1) the documenation says :
"The CRC check on the application image is done taking only image data into
consideration. Dummy bytes in programming files are not taken into account during
CRC checks"
What bytes are classed as dummy bytes? I ask as If i erase the the first 64KB of my application on flash it wont run and the factory is restarted, which is good, and it reports a CRC error.
If however I only corrupt a few bytes at the start of the application is still runs. I dont know how well it works as I dont know what that area of FLASH/image is used for. I also dont know what bytes the CRC covers
2) the documentation says:
"The fallback to the factory image does not work when the last 576 bytes of the
application image bitstream are corrupted. Intel recommends that you examine the
last 576 bytes of the application image before triggering the application image
configuration"
Does the CRC not take notice of these last 576 bytes?
These questions are being asked as I want to make sure the boot loader/remote updater is as uncorruptable as possible however it sounds like it has a few flaws. It seems like the data can be corrupted and the program still gets loaded and run, at least in some situations
What is the best way around these seeming flaws? do my own CRC on the entire areof application memory then recheck it after it has been programmed in the flash? and everytime on startup?
many thanks