if mcu chip don't have IAP program in flash, do not upgrade.
enable watch dog
change stack and heap size
incase of wrong protocol data len.
remove FLASH_FLAG_BSY flag of flash status register