if CRC FAILS IN BOOTLOADER THEN WHAT HAPPEN IN SYSTEM
Can you expand your question. Are you referring to a corrupted bootloader file on your PC?
bootloader receive application from PC .bootloader send this application for updated it copies to the application area that time crc is there if crc is verified then application will run otherwise application will not run means memory is corrupted after that what will be happen in system
As far as I know, once the executable sketch has been programmed into flash, then there are no checks carried out on the integrity of the sketch each time the micro boots.
Your application will run but might not do completely what it's supposed to do. This is, to my knowledge, also the case if an upload fails. There is code that will be executed, the processor does not know better than that it is valid code.
The default arduino avr bootloader(s) (optiboot, atmegaboot) do not calculate or check a crc.
Instead they Reread the entire sketch after uploading, and compare it byte by byte.
Stk500boot used on mega/etc has a crc or chksum for each message, but I suspect nothing good happens if some bad crc stops an upload pathway through.
Not sure what the arm boot loaders do.
who is responsible for erase the corrupted image .
The current contents of flash are erased as part of the upload process of the next sketch.
Only a human knows that the image has been corrupted. The micro doesn't know the image has been corrupted, unless it has a mechanism to handle unknown/corrupt instructions or the bootloader has a way to verify the current image each time the micro boots.
bootloader is responsible for
that
The bootloader will carry out the necessary steps to erase the application section of the flash memory inside the device.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.