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: problem with data-section


Hi

Problem solved, found that I was indeed building correct redboot.elf files
but my flash program (WinIDEA) ignored the LMA addresses and just took the
VMA addresses instead, just to change an option to Physical adresses
instead of default did the trick.

Best Regards
 Per-Erik


> Hi
>
> Im trying to get redboot working on a MPC5554 board, Im having some
> trouble with the "copy data from rom to ram" in vectors.S
> In all the .ldi files I have looked at the data-section is put in ram(?)
> but still FOLLOWING the .gcc_except_table that is put in rom
>
>>SECTION_data           (ram, ALIGN (0x10), FOLLOWING (.gcc_except_table))
>
> I guess this is some nice feature that would enable the data section to be
> put in ROM but still be maped as it should be in ram.
> But right now my "__rom_data_start" is at the end of the things that that
> gets flashed to rom, with only 0xFF's after.
>
> So when vectors.s starts to copy what is supposed to be data it just fills
> the ram with F's.
>
> If I look at the map from the linker I get that the data-section is in
> ram, and the "__rom_data_start" is in the .fixup-section
>
> Any ideas what could be wrong?
> (I post my ldi file at the bottom, hope thats ok.)
>
> Best regards
>   Per-Erik


-- 
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]