I set up an enviroment on a Raspberry Pi 2 for building the Arduplane Chibios firmware for STM32F flight controllers. All appears to have gone well except the final --upload. Any ideas what might be wrong? FC is Omnibus F4 V5 if that matters. Is airbotf4 the right board?
pi@PiZeroW:~/ArduPlane/ArduPilot $ sudo ./waf plane --upload
Waf: Entering directory `/home/pi/ArduPlane/ArduPilot/build/airbotf4'
Checking for env.py
env added CHIBIOS_BUILD_FLAGS=USE_FATFS=no CHIBIOS_PLATFORM_MK=os/hal/ports/STM32/STM32F4xx/platform.mk CHIBIOS_STARTUP_MK=os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
[436/438] Linking build/airbotf4/bin/arduplane
[437/438] Generating bin/arduplane.apj
[438/438] Uploading build/airbotf4/bin/arduplane.apj
Loaded firmware for 46,0, size: 820464 bytes, waiting for the bootloader...
If the board does not respond within 1-2 seconds, unplug and re-plug the USB connector.
Found board 46,0 bootloader rev 5 on /dev/serial/by-id/usb-APM_REVO_405_0-if00
ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff type: ÿÿÿÿ
idtype: =FF
vid: ffffffff
pid: ffffffff
coa: //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8=
sn: 004900363436510b35373636
chip: 10076413
family: STM32F40x
revision: 1
flash 983040
Erase : [====================] 100.0%
Program: [====================] 100.0%
Verify : [ ] 1.0%Attempting reboot on /dev/serial/by-id/usb-ArduPilot_revo-mini_360049000B51363436363735-if00 with baudrate=57600...
If the board does not respond, unplug and re-plug the USB connector.
Attempting reboot on /dev/serial/by-id/usb-ArduPilot_revo-mini_360049000B51363436363735-if00 with baudrate=57600...
If the board does not respond, unplug and re-plug the USB connector.
Attempting reboot on /dev/serial/by-id/usb-ArduPilot_revo-mini_360049000B51363436363735-if00 with baudrate=57600...
If the board does not respond, unplug and re-plug the USB connector.
Traceback (most recent call last):
File "/home/pi/ArduPlane/ArduPilot/Tools/ardupilotwaf/px_uploader.py", line 736, in <module>
main()
File "/home/pi/ArduPlane/ArduPilot/Tools/ardupilotwaf/px_uploader.py", line 710, in main
up.upload(fw, force=args.force, boot_delay=args.boot_delay)
File "/home/pi/ArduPlane/ArduPilot/Tools/ardupilotwaf/px_uploader.py", line 559, in upload
self.__verify_v3("Verify ", fw)
File "/home/pi/ArduPlane/ArduPilot/Tools/ardupilotwaf/px_uploader.py", line 461, in __verify_v3
report_crc = self.__recv_int()
File "/home/pi/ArduPlane/ArduPilot/Tools/ardupilotwaf/px_uploader.py", line 254, in __recv_int
val = struct.unpack("<I", raw)
struct.error: unpack requires a string argument of length 4
Waf: Leaving directory `/home/pi/ArduPlane/ArduPilot/build/airbotf4'
Traceback (most recent call last):
File "/home/pi/ArduPlane/ArduPilot/modules/waf/waflib/Scripting.py", line 165, in waf_entry_point
run_commands()
File "/home/pi/ArduPlane/ArduPilot/modules/waf/waflib/Scripting.py", line 266, in run_commands
ctx = run_command(cmd_name)
File "/home/pi/ArduPlane/ArduPilot/modules/waf/waflib/Scripting.py", line 250, in run_command
ctx.execute()
File "/home/pi/ArduPlane/ArduPilot/modules/waf/waflib/Scripting.py", line 616, in execute
return execute_method(self)
File "/home/pi/ArduPlane/ArduPilot/modules/waf/waflib/Build.py", line 255, in execute
self.execute_build()
File "/home/pi/ArduPlane/ArduPilot/modules/waf/waflib/Build.py", line 275, in execute_build
self.compile()
File "/home/pi/ArduPlane/ArduPilot/modules/waf/waflib/Build.py", line 377, in compile
raise Errors.BuildError(self.producer.error)
File "/home/pi/ArduPlane/ArduPilot/modules/waf/waflib/Errors.py", line 45, in __init__
WafError.__init__(self, self.format_error())
File "/home/pi/ArduPlane/ArduPilot/modules/waf/waflib/Errors.py", line 51, in format_error
txt = tsk.format_error()
File "/home/pi/ArduPlane/ArduPilot/modules/waf/waflib/Task.py", line 415, in format_error
txt = cmd
NameError: global name 'cmd' is not defined
pi@PiZeroW:~/ArduPlane/ArduPilot $