[Skyeye-developer] polling the UART [resend]
Rommel Custodio
rgcustodio at gmail.com
Wed Apr 25 22:36:27 CST 2007
I am actually making the firmware for the Surveyor SRV-1 run under Skyeye.
The source code is available from Surveyor's website:
http://www.surveyor.com/srvdownload/srv-041507.zip
This code builds and runs fine on an actual SRV-1 robot, but as I mentioned
it doesn't work under Skyeye. The PLL check goes into an infinite loop so as
the code fragment I showed below.
Here is my skyeye.conf file:
$ cat skyeye.conf
#-------------------------------------------------------------------------------
cpu: arm7tdmi
#-------------------------------------------------------------------------------
mach: lpc
#-------------------------------------------------------------------------------
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00020000
mem_bank: map=M, type=RW, addr=0x40000200, size=0x0000fe00
#-------------------------------------------------------------------------------
uart: fd_in=/dev/ttyS4, fd_out=/dev/ttyS4
#-------------------------------------------------------------------------------
log: logon=0, logfile=/tmp/sk1.log, start=100000, end=200000
#-----------------------------------------------------------------
lcd: state=off
I guess arm-elf-gdb is not support lpc simulation.
>
FWIW, I am using the arm-elf-gdb from gnuarm.org.
Any help will be highly appreciated.
On 4/25/07, kang shuo <blackfin.kang at gmail.com> wrote:
>
> On 4/24/07, Rommel Custodio <rgcustodio at gmail.com> wrote:
> > Hello,
> >
> > I am trying to run some code which sends data via the UART in Skyeye.
> This
> > code work properly on my target device, an LPC2106. I'm trying to do
> > something like:
> >
> > //Wait until THR (Transmit Holding Register) is empty = THREE bit
> gets
> > set
> > while(!(U0LSR & 0x20))
> > ;
> > U0THR = charToSend;
> >
> > Under arm-elf-gdb I see that I'm in an infinite loop, the while doesn't
> get
> > asserted to a TRUE value.
> I guess arm-elf-gdb is not support lpc simulation.
> >
> > I've compiled the HelloSkyeye code which shows something similar to the
> > above code. The HelloSkyeye code runs properly but the code I have
> doesn't
> > work.
> You can post your code that you try to run on skyeye here.
> >
> > Regards,
> > Mela
> >
> > _______________________________________________
> > Skyeye-developer mailing list
> > Skyeye-developer at lists.gro.clinux.org
> > http://lists.gro.clinux.org/cgi-bin/mailman/listinfo/skyeye-developer
> >
> >
>
> _______________________________________________
> Skyeye-developer mailing list
> Skyeye-developer at lists.gro.clinux.org
> http://lists.gro.clinux.org/cgi-bin/mailman/listinfo/skyeye-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gro.clinux.org/pipermail/skyeye-developer/attachments/20070425/f5975812/attachment.htm
More information about the Skyeye-developer
mailing list