paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] I still can't upload for my apogee after that I ha


From: Ben Laurie
Subject: Re: [Paparazzi-devel] I still can't upload for my apogee after that I have input the command"stat -s" on my terminal of my OSX
Date: Tue, 13 May 2014 02:51:10 +0100

On 13 May 2014 00:05, Felix Ruess <address@hidden> wrote:
> Hi,
>
> just running stat -s before uploading of course won't fix it as in the
> makefile the stat command is still used with the --printf option that does
> not exist on OSX.
>
> In latest master I replaced
> stat --printf=%s foo.bin
> with
> ls -nl foo.bin | awk '{print $5}
> which should work under OSX as well.
>
> Would be nice if someone with OSX could confirm that this works...

Yeah, it does. You could also use wc -c?

> We still need to check for the dfu-util version and only perform the verify
> if >=0.7
>
> Cheers, Felix
>
>
> On Wed, May 7, 2014 at 2:17 PM, 心如烛光 <address@hidden> wrote:
>>
>> Hi,all!
>>     I have inputed the command "stat -s" on my terminal.(OSX's version is
>> mountain lion 10.8.5)
>> And it is the return:
>> kevintekiMacBook-Pro:~ kevin$ stat --printf=%s
>> stat: illegal option -- -
>> usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
>> kevintekiMacBook-Pro:~ kevin$ stat -s
>> st_dev=877000040 st_ino=643 st_mode=020620 st_nlink=1 st_uid=501 st_gid=4
>> st_rdev=268435456 st_size=0 st_atime=1399463963 st_mtime=1399463963
>> st_ctime=1399463963 st_birthtime=1399463963 st_blksize=131072 st_blocks=0
>> st_flags=0
>>
>> It seems like that everything is OK.But,I still can't upload the code for
>> my apogee with fdu_util.
>> Here is the return from my paparazzi center:
>> cd sw/airborne; make TARGET=ap upload
>>
>> /Users/kevin/paparazzi/conf/firmwares/subsystems/fixedwing/navigation_extra.makefile:3:
>> Warning: Extra navigation routines have been converted to modules.
>> Please replace <subsystem name="navigation" type="extra"/> with <subsystem
>> name="navigation"/>
>> Using "arch/stm32/apogee.ld" as ldscript for target "ap".
>> stat: illegal option -- -
>> usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
>> Using dfu-util at 0x08000000
>> No valid DFU suffix signature
>> Warning: File has no DFU suffix
>> dfu-util 0.7
>>
>> Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
>> Copyright 2010-2012 Tormod Volden and Stefan Schmidt
>> This program is Free Software and has ABSOLUTELY NO WARRANTY
>> Please report bugs to address@hidden
>>
>> Filter on vendor = 0x0483 product = 0xdf11
>> Opening DFU capable USB device... ID 0483:df11
>> Run-time device DFU version 011a
>> Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=0, name="@Internal
>> Flash  /0x08000000/04*016Kg,01*064Kg,07*128Kg"
>> Claiming USB DFU Interface...
>> Setting Alternate Setting #0 ...
>> Determining device status: state = dfuERROR, status = 10
>> dfuERROR, clearing status
>> Determining device status: state = dfuIDLE, status = 0
>> dfuIDLE, continuing
>> DFU mode device DFU version 011a
>> Device returned transfer size 2048
>> DfuSe interface name: "Internal Flash  "
>> Downloading to address = 0x08000000, size = 133100
>> .................................................................
>> File downloaded successfully
>> dfu-util 0.7
>>
>> Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
>> Copyright 2010-2012 Tormod Volden and Stefan Schmidt
>> This program is Free Software and has ABSOLUTELY NO WARRANTY
>> Please report bugs to address@hidden
>>
>> Filter on vendor = 0x0483 product = 0xdf11
>> Opening DFU capable USB device... ID 0483:df11
>> Run-time device DFU version 011a
>> Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=0, name="@Internal
>> Flash  /0x08000000/04*016Kg,01*064Kg,07*128Kg"
>> Claiming USB DFU Interface...
>> Setting Alternate Setting #0 ...
>> Determining device status: state = dfuDNLOAD-IDLE, status = 0
>> aborting previous incomplete transfer
>> Determining device status: state = dfuIDLE, status = 0
>> dfuIDLE, continuing
>> DFU mode device DFU version 011a
>> Device returned transfer size 2048
>> DfuSe interface name: "Internal Flash  "
>> Limiting upload to end of memory segment, 65536 bytes
>> bytes_per_hash=2048
>> Starting upload: [###############################] finished!
>> Binary files /Users/kevin/paparazzi/var/aircrafts/apogee_test/ap/ap.bin
>> and /Users/kevin/paparazzi/var/aircrafts/apogee_test/ap/verify.bla differ
>> make[1]: *** [upload] Error 2
>> make: *** [ap.upload] Error 2
>>
>> FAILED 'make -C /Users/kevin/paparazzi -f Makefile.ac AIRCRAFT=apogee_test
>> ap.upload' with code 2
>>
>> _______________________________________________
>> Paparazzi-devel mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>>
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>



reply via email to

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