GPL-GPS for Windows [Back]

GPL-GPS

Configration Tools

The eCos configuration tools included the eCos 2.0 release are known to have problems
when run against Cygwin. The host tools which incorporate a fix this issue are available
from eCosCentrec's DevZone.

Using RedBoot Prompt

1. Build GPL-GPS by following Andrew's instructions. You can also get binaries from here.
2. Turn it into a Motorola S-record format:
$ arm-elf-objcopy -O srec gpl-gps gpl-gps.srec
3. From the RedBoot prompt, enter the following command.

RedBoot> load -v -m xmodem
4. In the HyperTerminal, select "Send File..." from "Transfer" menu.
5. Select "Xmodem" as the protocol and send "gpl-gps.srec".
6. After a successful load, the HyperTerminal will look similar to the following:
RedBoot> load -v -m xmodem
CCCCEntry point: 0x20008040, address range: 0x20008000-0x20028320
xyzModem - CRC mode, 3092(SOH)/0(STX)/0(CAN) packets, 4 retries
RedBoot>
7. From the RedBoot prompt, command "go" to start the GPL-GPS.
8. You should see the GPL-GPS display strings coming out from UART2.


Using GDB

Uploading the GPL-GPS thought the RedBoot is too slow. You can use GDB instead. Here's a transcript of the commands:
$ arm-elf-gdb
GNU gdb 6.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf".
(gdb) set remotebaud 57600
(gdb) target remote /dev/com1
Remote debugging using /dev/com1
0x6000316c in ?? ()
(gdb) load gpl-gps
Loading section .rom_vectors, size 0x40 lma 0x20008000
Loading section .text, size 0x1c234 lma 0x20008040
Loading section .rodata, size 0x3cd7 lma 0x20024274
Loading section .data, size 0x3d4 lma 0x20027f4c
Start address 0x20008040, load size 131871
Transfer rate: 36378 bits/sec, 314 bytes/write.
(gdb) continue
Continuing.
Now you should see the GPL-GPS display strings coming out from UART2.

tebinuma@yahoo.com