[ECOS] Prob with flash_query

Andrew Lunn andrew@lunn.ch
Thu Mar 24 04:27:00 GMT 2005


On Wed, Mar 23, 2005 at 08:33:22PM +0530, Ringo Pebam wrote:
> Hi,
> 
> I am using the eCos bootloader, and the flash_query throws an exception as:
> 
> 300005d8 <flash_query>:
> 300005d8:	e52de004 	str	lr, [sp, -#4]!
> 300005dc:	e59f2088 	ldr	r2, [pc, #136]; 3000066c __DTOR_END__+0x94>
> 300005e0:	e3a030f0 	mov	r3, #240	; 0xf0
> 300005e4:	e1c230b0 	strh	r3, [r2]
> 300005e8:	e3a0c000 	mov	ip, #0	; 0x0
> 300005ec:	e3a0e0aa 	mov	lr, #170	; 0xaa
> 300005f0:	e59f3078 	ldr	r3, [pc, #120]	; 30000670 
> ................................
> 
> 

> According to my flash memory layout, the address 0x300005d8 is
> supposed to be RAM area but it's being treated as Flash area. 

What do you mean treated as flash area? Code which puts the flash into
a mode which means its not readable has to run in RAM. So the low
level flash driver functions are placed in RAM. Maybe this is
confusing you?

> I have one doubt: the flash_query that is called from flash_dev_query,
> is the one that is define in "/ecos_920t/packages/devs/flash/amd/am29xxxxx/
> current/include/flash_am29xxxxx.inl" or the one in define in
> "packages/devs/flash/
> synth/current/src/flash_query.c". Could you please confirm ?

The synth flash should only be used for the synthetic target. If you
are using that one on real hardware you are probably doing something
stupid.

        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