So, here we go
The binary file of the firmwar is already downloaded and saved into the GSM module,
Now, the mcu gets reset, and enters into the bootloader.
Now, to get in sync with the GSM module, it will check for any incoming char on the RX line, if not than than it would be initiating a handshake with GSM module, using AT command, to which if we get reply "OK\r\n" than only further action would be taken..
I know that if there is no data on the RX line, than getch() would cause a watchdogReset() and the mcu will reset, which I don't want..