1
ATMELTM AT91SAM7X and AVR32 / Re: Bootloader----S-REC format file
« on: August 14, 2009, 08:35:39 PM »
Hi Mark,
Thank you very much for your help. I am able to generate the s37 format file. The serial loader loaded it successfully. But my application does not run after reboot and it still enters into the Serial Loader mode. I am testing the ATMEL sample code ..\drivers\USART_EXAMPLE\usart .
I could not find the address 0x80002800 in the Serial loader project.
In the loader.h, I found following:
#define UTASKER_APP_START (FLASH_START_ADDRESS + (10*1024)) // application starts at this address
#define UTASKER_APP_END (unsigned char *)(UTASKER_APP_START + (45*1024))// end of application space - after maximum application size
In the IAR linker file lnkyc3a0512.xcl,
I replaced the original address 80000000 with 80002800 in following places.
/************************************************************************/
/* Reset code is located at address 0x80000000 and up. */
/************************************************************************/
-Z(CODE)RESET=80002800-8007FFFF
/************************************************************************/
/* Allocate code and const segments. */
/************************************************************************/
-P(CODE)CODE32=80002800-8007FFFF
-P(CONST)DATA32_C=80002800-8007FFFF
-P(CONST)USERDATA32_C=80800000-808001FF
// Initializers
-Z(CONST)INITTAB,DIFUNCT=80002800-8007FFFF
-Z(CONST)CHECKSUM,SWITCH=80002800-8007FFFF
-Z(CONST)DATA21_ID,DATA32_ID=80002800-8007FFFF
-Z(CONST)RAMCODE21_ID,RAMCODE32_ID=80002800-8007FFFF
-Z(CONST)ACTAB,HTAB=80002800-8007FFFF
Thank you very much for your help. I am able to generate the s37 format file. The serial loader loaded it successfully. But my application does not run after reboot and it still enters into the Serial Loader mode. I am testing the ATMEL sample code ..\drivers\USART_EXAMPLE\usart .
I could not find the address 0x80002800 in the Serial loader project.
In the loader.h, I found following:
#define UTASKER_APP_START (FLASH_START_ADDRESS + (10*1024)) // application starts at this address
#define UTASKER_APP_END (unsigned char *)(UTASKER_APP_START + (45*1024))// end of application space - after maximum application size
In the IAR linker file lnkyc3a0512.xcl,
I replaced the original address 80000000 with 80002800 in following places.
/************************************************************************/
/* Reset code is located at address 0x80000000 and up. */
/************************************************************************/
-Z(CODE)RESET=80002800-8007FFFF
/************************************************************************/
/* Allocate code and const segments. */
/************************************************************************/
-P(CODE)CODE32=80002800-8007FFFF
-P(CONST)DATA32_C=80002800-8007FFFF
-P(CONST)USERDATA32_C=80800000-808001FF
// Initializers
-Z(CONST)INITTAB,DIFUNCT=80002800-8007FFFF
-Z(CONST)CHECKSUM,SWITCH=80002800-8007FFFF
-Z(CONST)DATA21_ID,DATA32_ID=80002800-8007FFFF
-Z(CONST)RAMCODE21_ID,RAMCODE32_ID=80002800-8007FFFF
-Z(CONST)ACTAB,HTAB=80002800-8007FFFF