Home arrow Support arrow Forums

Luminary Micro Forums

<< Start < Prev 1 2 Next > End >>

LMI Eric

Moderator

2008/11/17 11:01

Re:Linking in IAR

Just a thought, but maybe the line endings are the problem. Have you tried changing the command to load flash at 0x1000 to be included on the same line? Like this:

place at address mem:0x10000 {readonly section .data_init, readonly section .rodata, readonly section .text};

If that isn't it, you could try defining two sections of flash (BOOT_FLASH and APP_FLASH for example), and instead of placing .rodata, .data_init and .text at specific address in a list, just have three statements like this:

place in APP_FLASH {readonly section .data_init};
place in APP_FLASH {readonly section .rodata};
place in APP_FLASH {readonly section .text};

I have a feeling that trying to place a list of items at a specific address is the problem.

login or register to reply

ckuecker

Platinum Boarder

2008/11/17 12:45

Re:Linking in IAR

Hi, Eroc,

I tried your suggestion:

Code:

  define region BOOT_FLASH mem:[from 0x00000000 to 0x0000ffff]; define region APP_FLASH mem:[from 0x00010000 to 0x0002ffff]; ... place in BOOT_FLASH {readonly section .bootcode}; place in APP_FLASH {readonly section .textvec}; place in APP_FLASH {readonly section .data_init}; place in APP_FLASH {readonly section .rodata}; place in APP_FLASH {readonly section .text};



Same error, unfortunately. IAR has responded - they duplicated the problem, and it's a linker bug.

Poor me... :(

Chuck

login or register to reply

LMI Eric

Moderator

2008/11/17 13:18

Re:Linking in IAR

OK, that's good to hear. I'm glad they were able to duplicate the issue.

login or register to reply

ckuecker

Platinum Boarder

2008/11/17 14:12

Re:Linking in IAR

- Hey 'Eroc' - I've got fat fingers today... :)

Chuck

login or register to reply

ckuecker

Platinum Boarder

2008/11/18 13:06

Re:Linking in IAR

Resolution on the linker problem - IAR said there's a newer version of the linker - I've got V5.20. Unfortunately, it's not released as an upgrade yet. The new version gives real error messages instead of a generic 'tool' error, so they were able to tell me what was wrong with my ICF file.

The project is linking now, and I am back to debugging.

Thanks to all!

Chuck Kuecker

Post edited by: ckuecker, at: 2008/11/18 13:07

login or register to reply

abl

Junior Boarder

2008/11/19 00:38

Re:Linking in IAR

Hi,
projet options->Linker->Library->Override default
program entry->entry symble [YOUR ENTRY SYMBLE]

I think you must have a startup function to initiallize
the .bss and .data section.

login or register to reply
<< Start < Prev 1 2 Next > End >>