[ECOS] flash_query throws an exception (Redboot_ROM version)

Andrew Lunn andrew@lunn.ch
Mon Sep 20 17:21:00 GMT 2004


On Mon, Sep 20, 2004 at 09:10:54AM -0700, Krishna Ganugapati wrote:
> Hello,
> 
> I've gotten Redboot for the IXD425 working with the cvs sources. I've gone 
> ahead and added the intel npe support. As part of the npe support, I've 
> enabled the strata flash support.  The package builds fine, but when it 
> attempts to query the flash for properties it throws an exception.
> The equivalent assembly is here, we invariably fault at 0x00009318
> 
> 
> 00009310 <flash_query>:
>    9310: e3a02098  mov r2, #152 ; 0x98
>    9314: e3a01205  mov r1, #1342177280 ; 0x50000000
>    9318: e3a03bc3  mov r3, #199680 ; 0x30c00

It falults at 0x00009318 which actually means 0x9314 is the
instruction causing problems. It is doing a load from 0x50000000. Is
this the correct address for the FLASH?

> Also I'm curious to understand how portions of the image are relocated into 
> RAM - presumably prior to cyg_start sections that are marked appropriately 
> are copied into RAM - can someone shed light on how this happens?

The HAL does this at startup time. It will zero the BSS and copy the
data section to RAM.

        Andrew

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



More information about the Ecos-discuss mailing list