This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: EDB/EP7212 internal SRAM - only 4K of 37.5K seems usa
- To: AshCan at aol dot com
- Subject: Re: [ECOS] EDB/EP7212 internal SRAM - only 4K of 37.5K seems usa
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Thu, 17 Aug 2000 17:41:30 -0600 (MDT)
- Cc: ecos-discuss at sourceware dot cygnus dot com
On 17-Aug-2000 AshCan@aol.com wrote:
> I download the new stubs you sent to flash ROM today, but I am still
> wondering if the patch changes I made were even compiled.
>
> I purposely added errored code and the errors were not detected by the make.
>
> 1) I errored the CS7111 and non CS7111 case of SRAM_END with no errors.
>
> 2) I errored the PLATFORM_SETUP1 macro and got no errors. So I am still
> worried these changes have not taken effect.
>
> Is it because this code is part of the stub you sent me?
>
If you are building RAM applications then none of this applies. Look
carefully at the macro definitions and you'll see:
// Define startup code [macros]
#if defined(CYGSEM_HAL_INSTALL_MMU_TABLES) && !defined(CYG_HAL_STARTUP_RAM)
In this case, the macros are left empty.
NB: this is because the way the memory is mapped (not 1-1) makes it very
difficult to reprogram the MMU on the fly and thus this operation is only
performed by ROM startup code.
> In a message dated 8/17/00 3:57:00 AM Pacific Daylight Time,
> gthomas@redhat.com writes:
>
>>
>> On 16-Aug-2000 AshCan@aol.com wrote:
>> > I have been able to add the parse changes into my hal_platform_setup.h,
>> but the changes, in macro
>> > PLATFORM_SETUP1, are not being compiled possibly because my
> configuration
>> does not have
>> > CYGSEM_HAL_STATIC_MMU_TABLES enabled, only mmu tables placed in DRAM.
>> >
>> > To make on update of my build I do:
>> >
>> > ecosconfig target edb7xxx
>> > ecosconfig tree
>> > make clean
>> > rm install/lib/target.ld
>> > rm install/lib/vectors.o
>> > rm install/lib/extras.o
>> > make
>> >
>> > What am I missing?
>> >
>>
>> Indeed, these changes will only take affect if you install new stubs.
>> Sorry I didn't think about that yesterday.
>>
>> If you want, I can send you [privately] new stubs to install on your
>> board that will fix the SRAM mapping problem.
>>
>>
>