This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
I have a problem with "go" command from RedBoot on AT91EB40 target
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] I have a problem with "go" command from RedBoot on AT91EB40 target
- From: Gozman Florian Leonard <leonard at bluegem dot codec dot ro>
- Date: Tue, 07 Aug 2001 09:00:02 +0300
- Organization: bluegem
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