hello, i have modified the nboot code for custom application, but if the boot image file exceeds 3KB the code is not running properly and is resetting from the middle of the code. i am using micro2440 board.
bootloader size
The 3KB is a bit strange. But I do know that there is a 4KB limit to the code size of the boot loader. The only job of the boot loader is supposed to be to copy the main application from flash to SDRAM, then to jump to the application in SDRAM. On startup the CPU copies only 4KB from flash into it's own SRAM, then jumps to that 4KB. Thanks, Errol
thank for our quick reply, actually i added my customized LCD code intialization (for boot up process display using progress bar)which is exceeding the limit. if want a boot application larger than 4kb how can i implement for boot up process.
The short answer is: nboot MUST be smaller than 4KB. The long answer is: You might try to add code to load the rest of nboot into SRAM, right after the first 4KB. I don't know how much SRAM the CPU has, or if this will be possible. Thanks, Errol