Can I load two different hex files on same microcontroller so that whenever it boots up, It should ask me the option to select. This is samly analogous to booting up my PC with two different operating systems. I want to write new bootloader for it.
Can I load two different hex files on same microcontroller so that whenever it boots up, It should ask me the option to select. This is samly analogous to booting up my PC with two different operating systems. I want to write new bootloader for it.
Actually this can be done and is used on various embedded boards. Look at the FRDM-K64F, when you plug a micro cable into board, holding the reset button for 30 seconds tells the bootloader to enter different code and act differently. Alas, there is no interface to talk to for the bootloader like a PC has.. 
Hi Clem,
Thanks for the reply , indeed happy to learn that this concept is possible in microcontrollers. Now my next task is that modification of lower end microcontroller bootloader in order to work the same way. Is there any possible solution or indirect way to do that. Is there any difference between binary file and the image file which can be burn on the microcontroller. Do chinese mp5 players uses any kind of operating system on which multiple applications are running such as audio,video,record,ebook etc. Kindly provide as much as details you can.
Hi Akshay,
I think you're suggesting to have two or more programs stored in flash and a program to select which one you want. It is partially microprocessor/microcontroller-specific. What you're suggesting is no different than what an OS offers. There are plenty of books that explain this, executable file formats, etc. Look for documentation on (say) CP/M and you'll get a good idea how it could work on limited resource devices like microcontrollers. Expect to do some of it in assembly.
I don't have any more detail - ordinarily one would use an OS if one wanted to do this, such as Linux. I''m not sure deciphering mp3 players is possible,
at least not unless you have detailed knowledge working for the manufacturer of them.
Hi Akshay,
I think you're suggesting to have two or more programs stored in flash and a program to select which one you want. It is partially microprocessor/microcontroller-specific. What you're suggesting is no different than what an OS offers. There are plenty of books that explain this, executable file formats, etc. Look for documentation on (say) CP/M and you'll get a good idea how it could work on limited resource devices like microcontrollers. Expect to do some of it in assembly.
I don't have any more detail - ordinarily one would use an OS if one wanted to do this, such as Linux. I''m not sure deciphering mp3 players is possible,
at least not unless you have detailed knowledge working for the manufacturer of them.