Hi Martin,
Thanks a lot! Your suggestion worked.
To anyone confused about loading the gps tunnel:
I thought I was following the wiki when I was trying to upload the gps
tunnel. (I was trying to upload via the same connection that
sucessfully uploaded the lpc2148 bootloader.) Use the usb connection
on the paparazzi board per Martin's suggestion, and you can upload the
tunnel.
Here's how not to upload the gps tunnel to a Tiny v2.11, with how to
do it below:
address@hidden:~/paparazzi3$ make AIRCRAFT=MJ5 tunnel.upload
FLASH_MODE=IAS
[compile results]
.dtors 0 17044
.data 0 1073741824
.bss 0 1073741824
.stack 4096 1073741824
.comment 18 0
Total 4774
cd sw/airborne; make PAPARAZZI_SRC=/home/mcolman/paparazzi3
PAPARAZZI_HOME=/home/mcolman/paparazzi3 TARGET=tunnel upload
lpc21isp /home/mcolman/paparazzi3/var/MJ5/tunnel/tunnel.hex
/dev/ttyS0 38400 12000
lpc21isp version 1.27
File /home/mcolman/paparazzi3/var/MJ5/tunnel/tunnel.hex:
loaded...
converted to binary format...
image size : 17044
Synchronizing....................................................................................................
no answer on '?'
make[1]: *** [upload] Error 4
make: *** [tunnel.upload] Error 2
Here's a working example:
(connect computer to usb port on the Tiny)
address@hidden:~/paparazzi3$ make AIRCRAFT=MJ5 tunnel.upload
FLASH_MODE=IAP
[text about compiling]
make[1]: Nothing to be done for `all_ac_h'.
cd sw/airborne; make PAPARAZZI_SRC=/home/mcolman/paparazzi3
PAPARAZZI_HOME=/home
/mcolman/paparazzi3 TARGET=tunnel all
/home/mcolman/paparazzi3/var/MJ5/tunnel/tunnel.elf :
section size addr
.text 660 16384
.ctors 0 17044
.dtors 0 17044
.data 0 1073741824
.bss 0 1073741824
.stack 4096 1073741824
.comment 18 0
Total 4774
/home/mcolman/paparazzi3/var/MJ5/tunnel/tunnel.elf :
section size addr
.text 660 16384
.ctors 0 17044
.dtors 0 17044
.data 0 1073741824
.bss 0 1073741824
.stack 4096 1073741824
.comment 18 0
Total 4774
cd sw/airborne; make PAPARAZZI_SRC=/home/mcolman/paparazzi3
PAPARAZZI_HOME=/home
/mcolman/paparazzi3 TARGET=tunnel upload
/home/mcolman/paparazzi3/sw/ground_segment/lpc21iap/lpc21iap
/home/mcolman/papa
razzi3/var/MJ5/tunnel/tunnel.elf
.
Found USB device
BootROM code: 2.12
Part ID: 0x0402FF25 (LPC2148, 512k Flash, 32k+8k RAM)
BootLoader version: 1.3
#
Starting software at 0x00004000
2008/3/28 <address@hidden <mailto:address@hidden>>:
Hi Miles,
> I just finished assembling a Tiny v2.11 and I think I haven't
successfully loaded
> the bootloader. Terminal output with 'ioctl get failed' is
below. Am I
sucessfully
> loading the bootloader to the Tiny?
Looks good, LPC is running and communicating with the PC
(regarding the
message title, you are loading bl.hex rather than bl_ram.hex).
> The reason I think the upload doesn't work is the 'ioctl get failed'
message, and,
> uploading the serial tunnel to the Tiny from the ground station
fails.
You can ignore the "ioctl get failed" after download is
"finished". Are
all the four USB lines Vbus, GND, D+ and D- connected? Do you see the
device using "lsusb"?
Martin
_______________________________________________
Paparazzi-devel mailing list
address@hidden <mailto:address@hidden>
http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
------------------------------------------------------------------------
_______________________________________________
Paparazzi-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/paparazzi-devel