This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: eCos linking question


On Wed, Feb 20, 2008 at 3:42 PM, Tom Deconinck <t.deconinck@gmail.com> wrote:
>
> On Feb 20, 2008 2:58 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>  >
>  > Andrew Lunn wrote:
>  > >> So .data and .bss get addresses from the internal RAM.. but I don't
>  > >> get why, they should get addresses from ROM, following
>  > >> .gcc_except_table. According to the startup assembly code, these
>  > >> sections should then get copied into ram at startup.
>  > >> I know I need to use the internal ram too, since the exception vectors
>  > >> (.rom_vectors and .fixed_vectors) need to start at address 0x0.
>  > >> I think it should be possible to run code from my external flash or am
>  > >> I mistaken?
>  > >> Any suggestions would be greatly appreciated.
>  > >
>  > > Make sure you install/lib/target.ld is up to date. I think the
>  > > dependencies are broken, so it does not get remade when you change the
>  > > .ldi files etc.
>  >
>  > Also, give the .ld file a good look - it's saved as the result of
>  > the preprocessing, so all of your macros should have been expanded.
>  > This way you can see if it really looks like you think it should.
>  >
>  > --
>  > ------------------------------------------------------------
>  > Gary Thomas                 |  Consulting for the
>  > MLB Associates              |    Embedded world
>  > ------------------------------------------------------------
>  >
>
>  Thanks.
>  I've been looking at the eb55 platform (ARM7 with EBI from Atmel),
>  there the .data section is specified as follows in the LDI file:
>  SECTION_data (ram, 0x02000000, FOLLOWING (.gcc_except_table))
>  I've also specified my ram address in my LDI file now, and it links
>  and compiles now (5 seconds of glory ;)
>  Now on to the flash programming and actual testing..
>
>  Tom
>

For those interested: I've got it working now using the above
mentioned linker setting changes.
Still need to cleanup some of the assembly code though and defines it
uses, seems that the at91sam7se slightly differs in some registers .

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]