ROM startup

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

ROM startup

Alluitz
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

Reply | Threaded
Open this post in threaded view
|

Re: ROM startup

Andrew Lunn-2
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

Reply | Threaded
Open this post in threaded view
|

Re: ROM startup

Alluitz
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 <[hidden email]>:

> 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

Reply | Threaded
Open this post in threaded view
|

Re: ROM startup

Andrew Lunn-2
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

Reply | Threaded
Open this post in threaded view
|

Re: ROM startup

Alluitz
The debugger is insight but it also runs with gdb.

2006/5/19, Andrew Lunn <[hidden email]>:

> 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

Reply | Threaded
Open this post in threaded view
|

Re: ROM startup

Andrew Lunn-2
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

Reply | Threaded
Open this post in threaded view
|

Re: ROM startup

Alluitz
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 <[hidden email]>:
> 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

Reply | Threaded
Open this post in threaded view
|

Re: ROM startup

Andrew Lunn-2
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

Reply | Threaded
Open this post in threaded view
|

Re: ROM startup

Alluitz
It runs correctly.

2006/5/19, Andrew Lunn <[hidden email]>:
> 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

Reply | Threaded
Open this post in threaded view
|

Re: ROM startup

Andrew Lunn-2
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

Reply | Threaded
Open this post in threaded view
|

Re: ROM startup

Alluitz
GDB is connected by WIGGLER (JTAG).

2006/5/19, Andrew Lunn <[hidden email]>:
> 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

Reply | Threaded
Open this post in threaded view
|

Re: ROM startup

Andrew Lunn-2
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

Reply | Threaded
Open this post in threaded view
|

Re: ROM startup

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

Best regards,

Alluitz.


2006/5/19, Andrew Lunn <[hidden email]>:

> 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

Reply | Threaded
Open this post in threaded view
|

Re: ROM startup

Ilija Kocho [Илија Кочо]
In reply to this post by Alluitz
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 <[hidden email]>:
>> 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