public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] I have a problem with "go" command from RedBoot on AT91EB40 target
@ 2001-08-06 22:54 Gozman Florian Leonard
  2001-08-06 23:55 ` Gozman Florian Leonard
  0 siblings, 1 reply; 2+ messages in thread
From: Gozman Florian Leonard @ 2001-08-06 22:54 UTC (permalink / raw)
  To: ecos-discuss

Hi everyone,

Would like to have your idea on the following:

My target is: AT91EB40
My OS: Linux RedHat 7.0
My eCos: eCos v. 1.3.1 <- downloaded  with cvs (the last version which
support my board)
My GCC: v. 3.0
My GDB: Insight 5.0

I ready installed RedBoot and I tried to run the following program:

 // led_blink.c
#include <stdio.h>

extern void set_leds(int val);

int main(void)
{
  int i=0;
  while(1)
  {
    set_leds(0x04);//red LED
    for(i=1;i<100000;i++);
    set_leds(0x02);//green LED
    for(i=1;i<100000;i++);
  }

  return 0;
}

// end of led_blink.c

within it with "go" command as follow (using minicom from Linux):

RedBoot> load -m y -b 0x02040000      // select the "led_blink.srec"
file and sent it
oint: 0x02020040, address range: 0x02020000-0x02026c4c    // receive
from serial port
xyzModem - CRC mode, 653(SOH)/0(STX)/0(CAN) packets, 6 retries   //
receive from serial port

RedBoot> go  // blocks !!!  (none from the following commands works:
"go", "go 0x02040000" and "go 0x02020040")

This program runs fine with GDB.

So, I don't know what is the error.

Pleace somebody help me.

Thanks !

--

Leonard

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

* Re: [ECOS] I have a problem with "go" command from RedBoot on AT91EB40 target
  2001-08-06 22:54 [ECOS] I have a problem with "go" command from RedBoot on AT91EB40 target Gozman Florian Leonard
@ 2001-08-06 23:55 ` Gozman Florian Leonard
  0 siblings, 0 replies; 2+ messages in thread
From: Gozman Florian Leonard @ 2001-08-06 23:55 UTC (permalink / raw)
  To: ecos-discuss

Gozman Florian Leonard wrote:

> Hi everyone,
>
> Would like to have your idea on the following:
>
> My target is: AT91EB40
> My OS: Linux RedHat 7.0
> My eCos: eCos v. 1.3.1 <- downloaded  with cvs (the last version which
> support my board)
> My GCC: v. 3.0
> My GDB: Insight 5.0
>
> I ready installed RedBoot and I tried to run the following program:
>
>  // led_blink.c
> #include <stdio.h>
>
> extern void set_leds(int val);
>
> int main(void)
> {
>   int i=0;
>   while(1)
>   {
>     set_leds(0x04);//red LED
>     for(i=1;i<100000;i++);
>     set_leds(0x02);//green LED
>     for(i=1;i<100000;i++);
>   }
>
>   return 0;
> }
>
> // end of led_blink.c
>
> within it with "go" command as follow (using minicom from Linux):
>
> RedBoot> load -m y -b 0x02040000      // select the "led_blink.srec"
> file and sent it
> oint: 0x02020040, address range: 0x02020000-0x02026c4c    // receive
> from serial port
> xyzModem - CRC mode, 653(SOH)/0(STX)/0(CAN) packets, 6 retries   //
> receive from serial port
>
> RedBoot> go  // blocks !!!  (none from the following commands works:
> "go", "go 0x02040000" and "go 0x02020040")
>
> This program runs fine with GDB.
>
> So, I don't know what is the error.
>
> Pleace somebody help me.
>
> Thanks !
>
> --
>
> Leonard

I solved my problem. The commands that should executed are:
RedBoot> load -m y     // select "led_blink.srec" file and then sent it

RedBoot> go

Works fine.


 --

Leonard



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

end of thread, other threads:[~2001-08-06 23:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-06 22:54 [ECOS] I have a problem with "go" command from RedBoot on AT91EB40 target Gozman Florian Leonard
2001-08-06 23:55 ` Gozman Florian Leonard

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