hi,
i added more information here,
my requirement detail:
when power on condition its should enter into bootloader code. there it should check any SPACE bar characted pressed if pressed it should collect .elf or.bin file data(Application code) throught UART and it should update application code. we cant keep all application code into RAM. so for that we can store all data into External flash. after that we can write that data into internal flash. actually i planned this way. so i need bootloader code like this way.
steps:
1)checking SPACE bar character from UART side
2)if got collecting .elf file and store that data into external flash through SPI communication
3)after program that data into internal flash. and then Restart the board
4)if SPACE bar character not pressed it should jump to application code.
can you give example code for this requirement related?
thanks and regards,
sudhakar p