public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Prob with flash_query
@ 2005-03-23 17:44 Ringo Pebam
  2005-03-24  4:27 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Ringo Pebam @ 2005-03-23 17:44 UTC (permalink / raw)
  To: ecos-discuss

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. My flash device is Am29LV128MH/L.

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 ?

I would be very glad if you give me some help here.

Regards,
Ringo

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Prob with flash_query
  2005-03-23 17:44 [ECOS] Prob with flash_query Ringo Pebam
@ 2005-03-24  4:27 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2005-03-24  4:27 UTC (permalink / raw)
  To: Ringo Pebam; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-23 21:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-23 17:44 [ECOS] Prob with flash_query Ringo Pebam
2005-03-24  4:27 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).