|
Hello, I'm new to firmware n all, so my problem might sound naive, but i need help :) I'm using a SAM9261 EK board, i've compiled one bootloader (just added some added debug msgs to AT91 bootstrap). I flashed it at 0X00 on dataflash & it boots fine, with all the debug messages. But now when i put basic-lcd-project.bin (generated using sample examples in IAR) at 0X8400 , this app/code does not bootup. At serial console all I can see is bootstrap being loaded.
I am able to run "DEMO_linux4sam-angstrom-at91sam9261ek" perfectly, so no hardware issues, i guess.
Is the offset which i am using correct? Is the code compiled by IAR a valid code to be flashed? While going thr docs / posts, i read abt some environment variables, is it relevant to this case.
This is a part of the bootloader that i'm using /* ******************************************************************* */ /* BootStrap Settings */ /* */ /* ******************************************************************* */ #define AT91C_SPI_PCS_DATAFLASH AT91C_SPI_PCS0_DATAFLASH /* Boot on SPI NCS0 */
#define IMG_ADDRESS 0x8400 /* Image Address in DataFlash */ #define IMG_SIZE 0x33900 /* Image Size in DataFlash */
#define MACH_TYPE 0x350 /* AT91SAM9261-EK */ #define JUMP_ADDR 0x23F00000 /* Final Jump Address */
Thanks.
|