paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Problem loading USB boot loader


From: Jesper Kempe
Subject: Re: [Paparazzi-devel] Problem loading USB boot loader
Date: Mon, 1 Dec 2008 00:35:28 +0100

Hi

Thank you all for your quick answers.

Things seem to have worked as you said they should!
After I tried the boot loader again I got it to work, answering to programming commands. That you can be so glad to see three LEDs flashing after loading the modified demo2-program... :-)

I think that it was working all the time. The last lines with the errors did not match the ones I found in the Wiki and I could not get it to be visible in the laptop. That combination made me think the boot loader did not program ok. But after reading more and trying again, this time be sure to have the USB cable connected on power-up I got it to work. Even got a GPS-fix visible in U-center after loading the tunnel.
Successfull eveing after all!

Also did a flight test of my plattform this afternoon. An old trainer I once learned to fly with that now has been electrified.
Will be very to interesting to continue with the project

//Jesper

2008/11/30 David Carlson <address@hidden>
Looks like you are successfully writing the bootloader as per these lines:


Download Finished... taking 7 seconds
Now launching the brand new code

The reason the ioctls fail after that is because the bootloader code is now running.  You should be able to program to it using the USB method.

Buzz

Jesper Kempe wrote:
Hi

I have Tiny 2.11 I am trying to load the USB boat loader into. But I can`t get it to work. Have tried to follow http://paparazzi.enac.fr/wiki/index.php/USB_Boot_Loader and some other pages.

To do the programing I have connected the Tiny to an FTDI USB to serial converter, grounded the GPS_RESET and the BOOT pins and issued the make. I think I have contact because it looks like it writes to the Tiny but the programing seem to fail when the last three gets doesn`t work.

Below I have included the output from the make.

Does anyone have any tips on what might be wrong?


Regards

Jesper
Sweden


=======================
address@hidden:~/paparazzi3$ make upload_bl PROC=GENERIC
cd sw/airborne/arm7/test/bootloader; make clean; make
rm -f usbstack.a usbhw_lpc.o usbcontrol.o usbstdreq.o usbinit.o usbdescrip.o
rm -f bl.hex bl.elf crt.o startup.o printf.o console.o bootloader.o *.lst bl.dmp bl.map
rm -f bl_ram.hex bl_ram.elf bl_ram.dmp bl_ram.map
arm-elf-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_GENERIC   -c -o usbhw_lpc.o usbhw_lpc.c
arm-elf-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_GENERIC   -c -o usbcontrol.o usbcontrol.c
usbcontrol.c:132: warning: unused parameter 'bEPStat'
arm-elf-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_GENERIC   -c -o usbstdreq.o usbstdreq.c
arm-elf-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_GENERIC   -c -o usbinit.o usbinit.c
arm-elf-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_GENERIC   -c -o usbdescrip.o usbdescrip.c
usbdescrip.c:60: warning: unused parameter 'wLangID'
rm -f usbstack.a
arm-elf-ar -r usbstack.a usbhw_lpc.o usbcontrol.o usbstdreq.o usbinit.o usbdescrip.o
arm-elf-ar: creating usbstack.a
.assembling
arm-elf-gcc -c -DPROC_GENERIC -mapcs-32 -Wa,-ahlms=crt.lst crt.S -o crt.o
arm-elf-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_GENERIC   -c -o startup.o startup.c
arm-elf-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_GENERIC   -c -o printf.o printf.c
arm-elf-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_GENERIC   -c -o console.o console.c
arm-elf-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_GENERIC   -c -o bootloader.o bootloader.c
..linking
arm-elf-gcc crt.o startup.o printf.o console.o bootloader.o usbstack.a -T lpc2148-rom.ld -nostartfiles --warn-common -n -o bl.elf -Wl,-Map,bl.map
/usr/lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: Warning: /usr/lib/gcc/arm-elf/3.4.4/libgcc.a(_udivsi3.o) does not support interworking, whereas bl.elf does
/usr/lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: Warning: /usr/lib/gcc/arm-elf/3.4.4/libgcc.a(_umodsi3.o) does not support interworking, whereas bl.elf does
/usr/lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: Warning: /usr/lib/gcc/arm-elf/3.4.4/libgcc.a(_dvmd_tls.o) does not support interworking, whereas bl.elf does
...copying
arm-elf-objcopy -O ihex bl.elf bl.hex
arm-elf-objdump -x --syms bl.elf > bl.dmp
..linking RAM
arm-elf-gcc crt.o startup.o printf.o console.o bootloader.o usbstack.a -T lpc2148-ram.ld -nostartfiles --warn-common -n -o bl_ram.elf -Wl,-Map,bl_ram.map
/usr/lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: Warning: /usr/lib/gcc/arm-elf/3.4.4/libgcc.a(_udivsi3.o) does not support interworking, whereas bl_ram.elf does
/usr/lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: Warning: /usr/lib/gcc/arm-elf/3.4.4/libgcc.a(_umodsi3.o) does not support interworking, whereas bl_ram.elf does
/usr/lib/gcc/arm-elf/3.4.4/../../../../arm-elf/bin/ld: Warning: /usr/lib/gcc/arm-elf/3.4.4/libgcc.a(_dvmd_tls.o) does not support interworking, whereas bl_ram.elf does
...copying
arm-elf-objcopy -O ihex bl_ram.elf bl_ram.hex
arm-elf-objdump -x --syms bl_ram.elf > bl_ram.dmp
lpc21isp -control sw/airborne/arm7/test/bootloader/bl.hex /dev/ttyUSB0 38400 12000
lpc21isp version 1.27
File sw/airborne/arm7/test/bootloader/bl.hex:
       loaded...
       converted to binary format...
       image size : 7304
ioctl get failed
ioctl set ok, status = 4001ACE6
ioctl get failed
ioctl get failed
ioctl set ok, status = 186A4
ioctl get failed
ioctl get failed
ioctl set ok, status = 186A0
ioctl get failed
Synchronizing. OK
Read bootcode version: 2.12.0
Read part ID: LPC2148, 512 kiB ROM / 40 kiB SRAM (67305253)
Sector 0: ...............................................................................................
Sector 1: ...........................................................................
Download Finished... taking 7 seconds
Now launching the brand new code
ioctl get failed
ioctl set ok, status = 2
ioctl get failed
ioctl get failed
ioctl set ok, status = 186A0
ioctl get failed
address@hidden:~/paparazzi3$
------------------------------------------------------------------------

_______________________________________________
Paparazzi-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
 



_______________________________________________
Paparazzi-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/paparazzi-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]