One more thing what I understood was, One cannot convert the .mot or .hex to binary. Instead they can convert the .elf to binary and then binary to hex or mot. Anyway thanks for your help.
Sorry to interrupt.
In fact, I successfully converted the mot file to hex file. But I want convert my mot to binary first and then binary to hex but the command prompt is always showing unable to recognize the format of the input file.
Can you suggest what I need to be done to get it successfully run.