public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Startup Procedure
@ 2007-02-28 22:02 Samer Darras
  2007-02-28 22:44 ` Andrew Lunn
  0 siblings, 1 reply; 8+ messages in thread
From: Samer Darras @ 2007-02-28 22:02 UTC (permalink / raw)
  To: ecos-discuss

I was able to build and run a Redboot image on AT91SAM7S256 successfully
and downloaded it to Flash using SAM-BA, but when I build any of the
sample programs using a default eCos configuration, it does not run. I
have tried creating a RAM linker script and use Redboot to run it;
however, that did not work either.

Should there be a specific startup sequence to make any of the sample
programs run?

Thanks.


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

* Re: [ECOS] Startup Procedure
  2007-02-28 22:02 [ECOS] Startup Procedure Samer Darras
@ 2007-02-28 22:44 ` Andrew Lunn
  2007-03-01  3:46   ` Samer Darras
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Lunn @ 2007-02-28 22:44 UTC (permalink / raw)
  To: Samer Darras; +Cc: ecos-discuss

On Wed, Feb 28, 2007 at 02:02:05PM -0800, Samer Darras wrote:
> I was able to build and run a Redboot image on AT91SAM7S256 successfully
> and downloaded it to Flash using SAM-BA, but when I build any of the
> sample programs using a default eCos configuration, it does not run. I
> have tried creating a RAM linker script and use Redboot to run it;
> however, that did not work either.

I wound not suggest using redboot on the AT91SAM7S256. It does not
really have enough ram for it to be useful.

The AT91SAM7S devices are designed to run there applications from
Flash, not RAM. That is why there is no support for RAM startup in the
HAL. The test programs should just work. Burn them into flash and run
them.

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

* RE: [ECOS] Startup Procedure
  2007-02-28 22:44 ` Andrew Lunn
@ 2007-03-01  3:46   ` Samer Darras
  2007-03-01 13:24     ` Andrew Lunn
  0 siblings, 1 reply; 8+ messages in thread
From: Samer Darras @ 2007-03-01  3:46 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

I have tried a default configuration and compiled in the "serial.c"
example program and burned it to flash but it did not run. Nothing was
output on the serial port??? Is there anything specific in the default
configuration that I need to set or unset?

Thanks.

-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch] 
Sent: Wednesday, February 28, 2007 2:44 PM
To: Samer Darras
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Startup Procedure

On Wed, Feb 28, 2007 at 02:02:05PM -0800, Samer Darras wrote:
> I was able to build and run a Redboot image on AT91SAM7S256
successfully
> and downloaded it to Flash using SAM-BA, but when I build any of the
> sample programs using a default eCos configuration, it does not run. I
> have tried creating a RAM linker script and use Redboot to run it;
> however, that did not work either.

I wound not suggest using redboot on the AT91SAM7S256. It does not
really have enough ram for it to be useful.

The AT91SAM7S devices are designed to run there applications from
Flash, not RAM. That is why there is no support for RAM startup in the
HAL. The test programs should just work. Burn them into flash and run
them.

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

* Re: [ECOS] Startup Procedure
  2007-03-01  3:46   ` Samer Darras
@ 2007-03-01 13:24     ` Andrew Lunn
  2007-03-01 22:09       ` Samer Darras
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Lunn @ 2007-03-01 13:24 UTC (permalink / raw)
  To: Samer Darras; +Cc: Andrew Lunn, ecos-discuss

On Wed, Feb 28, 2007 at 07:45:42PM -0800, Samer Darras wrote:
> I have tried a default configuration and compiled in the "serial.c"
> example program and burned it to flash but it did not run. Nothing was
> output on the serial port??? Is there anything specific in the default
> configuration that I need to set or unset?

Why serial.c example program?

The default configuration will not have the interrupt serial device
drivers compile in.

A better tests programs to start with are
install/tests/hal/common/current/tests/*

They should always work.

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

* RE: [ECOS] Startup Procedure
  2007-03-01 13:24     ` Andrew Lunn
@ 2007-03-01 22:09       ` Samer Darras
  2007-03-01 22:35         ` Andrew Lunn
  0 siblings, 1 reply; 8+ messages in thread
From: Samer Darras @ 2007-03-01 22:09 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

Still does not work????
These are the exact steps:
- Built a default configuration using the configuration tool
- Built the tests using the configuration tool
- Converted the test program "basic" to binary file using: 
arm-elf-objcopy -O binary basic basic.bin
- Burned the image into flash using SAM-BA
- Connected to serial port and was expecting to see a couple of message
after reset but nothing at all!!!!

Any other suggestions?

Thanks.

-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch] 
Sent: Thursday, March 01, 2007 5:24 AM
To: Samer Darras
Cc: Andrew Lunn; ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Startup Procedure

On Wed, Feb 28, 2007 at 07:45:42PM -0800, Samer Darras wrote:
> I have tried a default configuration and compiled in the "serial.c"
> example program and burned it to flash but it did not run. Nothing was
> output on the serial port??? Is there anything specific in the default
> configuration that I need to set or unset?

Why serial.c example program?

The default configuration will not have the interrupt serial device
drivers compile in.

A better tests programs to start with are
install/tests/hal/common/current/tests/*

They should always work.

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

* Re: [ECOS] Startup Procedure
  2007-03-01 22:09       ` Samer Darras
@ 2007-03-01 22:35         ` Andrew Lunn
  2007-03-01 22:57           ` Samer Darras
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Lunn @ 2007-03-01 22:35 UTC (permalink / raw)
  To: Samer Darras; +Cc: Andrew Lunn, ecos-discuss

On Thu, Mar 01, 2007 at 02:09:19PM -0800, Samer Darras wrote:
> Still does not work????
> These are the exact steps:
> - Built a default configuration using the configuration tool
> - Built the tests using the configuration tool
> - Converted the test program "basic" to binary file using: 
> arm-elf-objcopy -O binary basic basic.bin
> - Burned the image into flash using SAM-BA
> - Connected to serial port and was expecting to see a couple of message
> after reset but nothing at all!!!!

Where in flash are you programming it?
Which serial port are us using? What board rate?

At some point you are going to need a JTAG emulator so that you can
debug. You might want it earlier rather than later so you can single
step through the startup code and work out what is happening.

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

* RE: [ECOS] Startup Procedure
  2007-03-01 22:35         ` Andrew Lunn
@ 2007-03-01 22:57           ` Samer Darras
  2007-03-03 17:00             ` Samer Darras
  0 siblings, 1 reply; 8+ messages in thread
From: Samer Darras @ 2007-03-01 22:57 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

At address 0x100000 and the serial port/debug port are both set to 2
just like RedBoot @ 38400bps and redboot works just fine. I think it is
time to fire up the JTAG emulator then!

Thanks.

-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch] 
Sent: Thursday, March 01, 2007 2:35 PM
To: Samer Darras
Cc: Andrew Lunn; ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Startup Procedure

On Thu, Mar 01, 2007 at 02:09:19PM -0800, Samer Darras wrote:
> Still does not work????
> These are the exact steps:
> - Built a default configuration using the configuration tool
> - Built the tests using the configuration tool
> - Converted the test program "basic" to binary file using: 
> arm-elf-objcopy -O binary basic basic.bin
> - Burned the image into flash using SAM-BA
> - Connected to serial port and was expecting to see a couple of
message
> after reset but nothing at all!!!!

Where in flash are you programming it?
Which serial port are us using? What board rate?

At some point you are going to need a JTAG emulator so that you can
debug. You might want it earlier rather than later so you can single
step through the startup code and work out what is happening.

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

* RE: [ECOS] Startup Procedure
  2007-03-01 22:57           ` Samer Darras
@ 2007-03-03 17:00             ` Samer Darras
  0 siblings, 0 replies; 8+ messages in thread
From: Samer Darras @ 2007-03-03 17:00 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

It is working now! Somehow the debug output went out on port 1. Thanks,
Andrew for your help.

Thanks.

-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Samer
Darras
Sent: Thursday, March 01, 2007 2:57 PM
To: Andrew Lunn
Cc: ecos-discuss@sources.redhat.com
Subject: RE: [ECOS] Startup Procedure

At address 0x100000 and the serial port/debug port are both set to 2
just like RedBoot @ 38400bps and redboot works just fine. I think it is
time to fire up the JTAG emulator then!

Thanks.

-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch] 
Sent: Thursday, March 01, 2007 2:35 PM
To: Samer Darras
Cc: Andrew Lunn; ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Startup Procedure

On Thu, Mar 01, 2007 at 02:09:19PM -0800, Samer Darras wrote:
> Still does not work????
> These are the exact steps:
> - Built a default configuration using the configuration tool
> - Built the tests using the configuration tool
> - Converted the test program "basic" to binary file using: 
> arm-elf-objcopy -O binary basic basic.bin
> - Burned the image into flash using SAM-BA
> - Connected to serial port and was expecting to see a couple of
message
> after reset but nothing at all!!!!

Where in flash are you programming it?
Which serial port are us using? What board rate?

At some point you are going to need a JTAG emulator so that you can
debug. You might want it earlier rather than later so you can single
step through the startup code and work out what is happening.

     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


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

end of thread, other threads:[~2007-03-03 17:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-28 22:02 [ECOS] Startup Procedure Samer Darras
2007-02-28 22:44 ` Andrew Lunn
2007-03-01  3:46   ` Samer Darras
2007-03-01 13:24     ` Andrew Lunn
2007-03-01 22:09       ` Samer Darras
2007-03-01 22:35         ` Andrew Lunn
2007-03-01 22:57           ` Samer Darras
2007-03-03 17:00             ` Samer Darras

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