[ECOS] [PATCH] AEB-1C memory SFR settings...

Gary Thomas gthomas@cygnus.co.uk
Fri Dec 17 11:40:00 GMT 1999


On 17-Dec-99 Srdjan Sobajic wrote:
> Hi All,
> 
> Maybe I missed some obvious way of doing this, but after checking out
> the memory SFR settings on the AEB-1C I have, the board is configured
> to use only 128 kB of the available RAM...
> 
> So this patch fixes that problem right at startup, and makes the full
> 256 kB RAM available.
> 
> If there's a better way of doing this please let me know- but this works
> for me.
> 
> Srdjan
> 
> (this is for $(BASEPATH)/packages/hal/arm/arch/current/src/vectors.S)
> 
> --- vectors.S~        Wed Dec  1 13:33:38 1999
> +++ vectors.S Wed Dec  8 14:50:26 1999
> @@ -142,6 +142,18 @@
>          // Come here to reset board
>  warm_reset:                 
>  
> +#ifndef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
> +     // Added to have 256 kB RAM available on AEB-1C with weird Flash
> +     mvn r3, #24320
> +     sub r3, r3, #243
> +     mov r2, #294912
> +     str r2, [r3] // set 0xFFFFA00C (Start3) to 0x48000
> +     mvn r3, #24320
> +     sub r3, r3, #215
> +     mov r2, #294912
> +     str r2, [r3] // set 0xFFFFA028 (Stop 2) to 0x48000
> +#endif
> +     
>  #if defined(CYG_HAL_STARTUP_RAM) && \
>      !defined(CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS)
>       mrs     r7,cpsr                 // move back to IRQ mode
> 

I don't understand why you think this is necessary.

This setup is already being done in <cyg/hal/hal_platform_setup.h>, with code
to handle the various AEB platforms.

Did you configure your build for the AEB-1C? 
What does the comment "weird flash" mean above?


More information about the Ecos-discuss mailing list