public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] ROM startup
@ 2006-05-19 11:13 Alluitz
  2006-05-19 11:37 ` Andrew Lunn
  0 siblings, 1 reply; 14+ messages in thread
From: Alluitz @ 2006-05-19 11:13 UTC (permalink / raw)
  To: ecos-discuss

Hello,

I´m trying to startup from Flash a small test program in my AT91M48200
but it doesn´t work. I can startup Redboot from Flash, but not my own
programs.

Does anybody know how I can do to startup from flash?

Does anybody have any small program that does that?

Thank you very much.

Alluitz

--
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] 14+ messages in thread

* Re: [ECOS] ROM startup
  2006-05-19 11:13 [ECOS] ROM startup Alluitz
@ 2006-05-19 11:37 ` Andrew Lunn
  2006-05-19 12:31   ` Alluitz
  0 siblings, 1 reply; 14+ messages in thread
From: Andrew Lunn @ 2006-05-19 11:37 UTC (permalink / raw)
  To: Alluitz; +Cc: ecos-discuss

On Fri, May 19, 2006 at 01:13:50PM +0200, Alluitz wrote:
> Hello,
> 
> I?m trying to startup from Flash a small test program in my AT91M48200
> but it doesn?t work. I can startup Redboot from Flash, but not my own
> programs.
> 
> Does anybody know how I can do to startup from flash?

What address is the program linked to execute from?
What address is the program actually executed at?

     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] 14+ messages in thread

* Re: [ECOS] ROM startup
  2006-05-19 11:37 ` Andrew Lunn
@ 2006-05-19 12:31   ` Alluitz
  2006-05-19 12:55     ` Andrew Lunn
  0 siblings, 1 reply; 14+ messages in thread
From: Alluitz @ 2006-05-19 12:31 UTC (permalink / raw)
  To: Alluitz, ecos-discuss

It is linked to execute from 0x00000 and it executes from that
address. I use a debugger to see that but with the debugger it runs
well. the problem starts when I remove de debugger, because it doesn´t
run itselves.


2006/5/19, Andrew Lunn <andrew@lunn.ch>:
> On Fri, May 19, 2006 at 01:13:50PM +0200, Alluitz wrote:
> > Hello,
> >
> > I?m trying to startup from Flash a small test program in my AT91M48200
> > but it doesn?t work. I can startup Redboot from Flash, but not my own
> > programs.
> >
> > Does anybody know how I can do to startup from flash?
>
> What address is the program linked to execute from?
> What address is the program actually executed at?
>
>     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] 14+ messages in thread

* Re: [ECOS] ROM startup
  2006-05-19 12:31   ` Alluitz
@ 2006-05-19 12:55     ` Andrew Lunn
  2006-05-19 13:19       ` Alluitz
  0 siblings, 1 reply; 14+ messages in thread
From: Andrew Lunn @ 2006-05-19 12:55 UTC (permalink / raw)
  To: Alluitz; +Cc: ecos-discuss

On Fri, May 19, 2006 at 02:31:49PM +0200, Alluitz wrote:
> It is linked to execute from 0x00000 and it executes from that
> address. I use a debugger to see that but with the debugger it runs
> well. the problem starts when I remove de debugger, because it doesn?t
> run itselves.

What is the debugger? gdb, or some JTAG based debugger which might be
setting up some registers?

        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] 14+ messages in thread

* Re: [ECOS] ROM startup
  2006-05-19 12:55     ` Andrew Lunn
@ 2006-05-19 13:19       ` Alluitz
  2006-05-19 13:27         ` Andrew Lunn
  0 siblings, 1 reply; 14+ messages in thread
From: Alluitz @ 2006-05-19 13:19 UTC (permalink / raw)
  To: Alluitz, ecos-discuss

The debugger is insight but it also runs with gdb.

2006/5/19, Andrew Lunn <andrew@lunn.ch>:
> On Fri, May 19, 2006 at 02:31:49PM +0200, Alluitz wrote:
> > It is linked to execute from 0x00000 and it executes from that
> > address. I use a debugger to see that but with the debugger it runs
> > well. the problem starts when I remove de debugger, because it doesn?t
> > run itselves.
>
> What is the debugger? gdb, or some JTAG based debugger which might be
> setting up some registers?
>
>        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] 14+ messages in thread

* Re: [ECOS] ROM startup
  2006-05-19 13:19       ` Alluitz
@ 2006-05-19 13:27         ` Andrew Lunn
  2006-05-19 13:33           ` Alluitz
  0 siblings, 1 reply; 14+ messages in thread
From: Andrew Lunn @ 2006-05-19 13:27 UTC (permalink / raw)
  To: Alluitz; +Cc: ecos-discuss

On Fri, May 19, 2006 at 03:19:02PM +0200, Alluitz wrote:
> The debugger is insight but it also runs with gdb.

So how exactly do you execute the image using gdb?

   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] 14+ messages in thread

* Re: [ECOS] ROM startup
  2006-05-19 13:27         ` Andrew Lunn
@ 2006-05-19 13:33           ` Alluitz
  2006-05-19 13:47             ` Andrew Lunn
  2006-05-22  7:15             ` Ilija Koco
  0 siblings, 2 replies; 14+ messages in thread
From: Alluitz @ 2006-05-19 13:33 UTC (permalink / raw)
  To: Alluitz, ecos-discuss

I load my program using amlboot and them I "load" it again using
insight. Actually it couldn´t but it doesn´t give any error. Them with
NEXT command I can execute it stept by stept.


2006/5/19, Andrew Lunn <andrew@lunn.ch>:
> On Fri, May 19, 2006 at 03:19:02PM +0200, Alluitz wrote:
> > The debugger is insight but it also runs with gdb.
>
> So how exactly do you execute the image using gdb?
>
>   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] 14+ messages in thread

* Re: [ECOS] ROM startup
  2006-05-19 13:33           ` Alluitz
@ 2006-05-19 13:47             ` Andrew Lunn
  2006-05-19 13:49               ` Alluitz
  2006-05-22  7:15             ` Ilija Koco
  1 sibling, 1 reply; 14+ messages in thread
From: Andrew Lunn @ 2006-05-19 13:47 UTC (permalink / raw)
  To: Alluitz; +Cc: ecos-discuss

On Fri, May 19, 2006 at 03:33:41PM +0200, Alluitz wrote:
> I load my program using amlboot and them I "load" it again using
> insight. Actually it couldn?t but it doesn?t give any error. Them with
> NEXT command I can execute it stept by stept.

And what happens when you simply use continue instead of next?

    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] 14+ messages in thread

* Re: [ECOS] ROM startup
  2006-05-19 13:47             ` Andrew Lunn
@ 2006-05-19 13:49               ` Alluitz
  2006-05-19 14:03                 ` Andrew Lunn
  0 siblings, 1 reply; 14+ messages in thread
From: Alluitz @ 2006-05-19 13:49 UTC (permalink / raw)
  To: Alluitz, ecos-discuss

It runs correctly.

2006/5/19, Andrew Lunn <andrew@lunn.ch>:
> On Fri, May 19, 2006 at 03:33:41PM +0200, Alluitz wrote:
> > I load my program using amlboot and them I "load" it again using
> > insight. Actually it couldn?t but it doesn?t give any error. Them with
> > NEXT command I can execute it stept by stept.
>
> And what happens when you simply use continue instead of next?
>
>    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] 14+ messages in thread

* Re: [ECOS] ROM startup
  2006-05-19 13:49               ` Alluitz
@ 2006-05-19 14:03                 ` Andrew Lunn
  2006-05-19 14:23                   ` Alluitz
  0 siblings, 1 reply; 14+ messages in thread
From: Andrew Lunn @ 2006-05-19 14:03 UTC (permalink / raw)
  To: Alluitz; +Cc: ecos-discuss

On Fri, May 19, 2006 at 03:48:44PM +0200, Alluitz wrote:
> It runs correctly.

gdb is using the serial port? 

What exactly is gdb connection to? Redboot? Or the application itself?

     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] 14+ messages in thread

* Re: [ECOS] ROM startup
  2006-05-19 14:03                 ` Andrew Lunn
@ 2006-05-19 14:23                   ` Alluitz
  2006-05-19 14:51                     ` Andrew Lunn
  0 siblings, 1 reply; 14+ messages in thread
From: Alluitz @ 2006-05-19 14:23 UTC (permalink / raw)
  To: Alluitz, ecos-discuss

GDB is connected by WIGGLER (JTAG).

2006/5/19, Andrew Lunn <andrew@lunn.ch>:
> On Fri, May 19, 2006 at 03:48:44PM +0200, Alluitz wrote:
> > It runs correctly.
>
> gdb is using the serial port?
>
> What exactly is gdb connection to? Redboot? Or the application itself?
>
>     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] 14+ messages in thread

* Re: [ECOS] ROM startup
  2006-05-19 14:23                   ` Alluitz
@ 2006-05-19 14:51                     ` Andrew Lunn
  2006-05-19 15:04                       ` Alluitz
  0 siblings, 1 reply; 14+ messages in thread
From: Andrew Lunn @ 2006-05-19 14:51 UTC (permalink / raw)
  To: Alluitz; +Cc: ecos-discuss

On Fri, May 19, 2006 at 04:23:46PM +0200, Alluitz wrote:
> GDB is connected by WIGGLER (JTAG).

So is the wiggler setting any registers? I've seen some JTAG emulators
for AT91 devices which change between the slow clock and the crystal
clock etc. 

You need to think about all the difference between using gdb/jtag and
simply turning the device on and letting it run.....

       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] 14+ messages in thread

* Re: [ECOS] ROM startup
  2006-05-19 14:51                     ` Andrew Lunn
@ 2006-05-19 15:04                       ` Alluitz
  0 siblings, 0 replies; 14+ messages in thread
From: Alluitz @ 2006-05-19 15:04 UTC (permalink / raw)
  To: Alluitz, ecos-discuss

Thank you very much. I will see if I can do something.

Best regards,

Alluitz.


2006/5/19, Andrew Lunn <andrew@lunn.ch>:
> On Fri, May 19, 2006 at 04:23:46PM +0200, Alluitz wrote:
> > GDB is connected by WIGGLER (JTAG).
>
> So is the wiggler setting any registers? I've seen some JTAG emulators
> for AT91 devices which change between the slow clock and the crystal
> clock etc.
>
> You need to think about all the difference between using gdb/jtag and
> simply turning the device on and letting it run.....
>
>       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] 14+ messages in thread

* Re: [ECOS] ROM startup
  2006-05-19 13:33           ` Alluitz
  2006-05-19 13:47             ` Andrew Lunn
@ 2006-05-22  7:15             ` Ilija Koco
  1 sibling, 0 replies; 14+ messages in thread
From: Ilija Koco @ 2006-05-22  7:15 UTC (permalink / raw)
  To: Alluitz; +Cc: ecos-discuss

Alluitz wrote:
> I load my program using amlboot and them I "load" it again using
> insight. Actually it couldn´t but it doesn´t give any error. Them with
> NEXT command I can execute it stept by stept.
Prob'ly amlboot sets some registers that enable your hw configuration to 
run correctly.
You need to put something simillar in your boot code.
>
>
> 2006/5/19, Andrew Lunn <andrew@lunn.ch>:
>> On Fri, May 19, 2006 at 03:19:02PM +0200, Alluitz wrote:
>> > The debugger is insight but it also runs with gdb.
>>
>> So how exactly do you execute the image using gdb?
>>
>>   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] 14+ messages in thread

end of thread, other threads:[~2006-05-22  7:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-19 11:13 [ECOS] ROM startup Alluitz
2006-05-19 11:37 ` Andrew Lunn
2006-05-19 12:31   ` Alluitz
2006-05-19 12:55     ` Andrew Lunn
2006-05-19 13:19       ` Alluitz
2006-05-19 13:27         ` Andrew Lunn
2006-05-19 13:33           ` Alluitz
2006-05-19 13:47             ` Andrew Lunn
2006-05-19 13:49               ` Alluitz
2006-05-19 14:03                 ` Andrew Lunn
2006-05-19 14:23                   ` Alluitz
2006-05-19 14:51                     ` Andrew Lunn
2006-05-19 15:04                       ` Alluitz
2006-05-22  7:15             ` Ilija Koco

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).