This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Start using Ecos on AT91SAM7X-EK




On Tue, 6 Feb 2007, Andrea Visinoni wrote:

Scrive Andrew Lunn <andrew@lunn.ch>:

On Tue, Feb 06, 2007 at 09:48:36AM +0100, Andrea Visinoni wrote:
Hi,
i've successfully compiled ecos for my board using the template in
configtool,
taken from cvs version.
I've written a stupid main, and liked with target.ld.
My question is, now do i have to init on my own the device?(pll, flash
etc..)
or do i have to call some sort of function inside the library?

Take a look at the test programs. They are good examples of how you write eCos programs.


Unlucky i cant test these programs, the only way i have to test
programs is load them in flash with samba and cross my fingers.  I
take a look, but i still can't figure who init my board (i guess
hal_platform_setup.h)

What is the reason to build no tests?


ecosconfig new at91sam7xek minimal
ecosconfig tree
make -s tests
tree install/tests

arm-elf-size -Ax install/tests/hal/common/current/tests/basic | more


Sergei


i've already tried to call my lowlevel_init function(already tested)
but nothing happen(i try to light a led), any hints?

Start with one of the test programs. Maybe tmbasic. Since this is a known good program it allows you to concentrate on everything else. Once this runs you then know your development environment works, your JTAG progammer works, etc.

Then you can start debugging your own programs. Humm, leds. Are you
using the GPIO macros in var_io.h? Have you configured the pin to be
an output? I think one of the AT91SAM7 boards has the logic
inverted. ie 0 causes the LED to be on, 0 causes it to be off.

yes, mith macros, but nothin happen. Thanks for your support Andrea



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]