Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - William

Pages: [1]
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


2
ATMELTM AT91SAM7X and AVR32 / Re: Bootloader----S-REC format file
« on: August 14, 2009, 12:48:22 AM »
It seems that MOTOROLA-S19 uses 16-bit addresses.

3
ATMELTM AT91SAM7X and AVR32 / Re: Bootloader----S-REC format file
« on: August 14, 2009, 12:20:26 AM »
Hi Mark,

Thanks for your reply.

Where can I set the application link address of  0x80002800? Is it in conf_isp.h file?

#define PROGRAM_START_ADDRESS         (AVR32_FLASH_ADDRESS + PROGRAM_START_OFFSET)

//#define PROGRAM_START_OFFSET          0x00002000 (Original one)

#define PROGRAM_START_OFFSET          0x00002800

I also got an error when I tried to generate the S-REC 19 format file by IAR-Compiler. The error is " Error[e122]: The address 0x80000000 is too large to be represented in the output format 'motorola-s19' "

There is no error if I select "motorola" format file (not S19). But it seems the bootloader does not like it. Any suggestions ? Thanks.

Regards,

William


4
ATMELTM AT91SAM7X and AVR32 / Bootloader----S-REC format file
« on: August 13, 2009, 08:05:54 PM »
Hi All,

I just tested the uTaskerSerialBoot (IAR AVR32). It works well with my EVK1100 board. But I can not load my application code. I can not generate the correct S-REC format file by IAR compiler.   What is the PROGRAM_START_OFFSET  ? Is it 0x800000? I am not familiar with S-REC format.  Thanks for your advice.


Pages: [1]