i have written a program for STR912FAW44 which boots from bank1. In this, i am using the standard STR91x.CFG file given in example programs of the keil for chip select mapping to boot it from bank1. This program is working perfectly fine if i am downloading the hex file in flash memory. But my requirement is to generate the binary file for this program. When I try to generate binary file using fromelf command, three different binary files corresponding to three different sections/regions is generated. Out of these, one is corresponding to my application at address 0x0, other two correspond to the address 0x510000 and 0x520000 which is specified in STR91x.CFG file. I have used the option --binCombined of fromelf command to generate a single binary file. but the size of the file is very large,because as per the command details it will pad the unused area between different sections with 0xFF. Can anybody help me tell how some sections can be excluded while creating a single binary file for multiple load regions/sections.
Thanx for your response Pier.. Actually I have already developed a customised bootloader for STR912FAW44 which is resident in Bank1 of flash memory. Using this, I am able to successfully download the application in .Hex format in Bank0. This configuration is working perfectly. Now, I have to develop the bootloader resident in Bank0 , using which, i can download the application in .bin format in Bank1. As with the developed bootloader, i am able to download the application in the bank1 but my problem is that control is not shifting to the application and it does not execute. So to rule out my customised bootloader problem, i was using the UART based bootloader given by keil. I converted it to be resident in bank0 and accordingly changed the blinky application to execute it from bank1. In this process, chip select mapping option has to be enabled in STR91x.cfg file in blinky application. Because of which,three different binary files are generated and i am not able to download all of them using standard bootloader. pls help me.. what can be the reason that application is not executing even after successful download in my cutomised bootloader??