redbear / Duo

Resources for the RedBear Duo IoT development board.
http://redbear.cc/duo
226 stars 107 forks source link

Can't upload sketch to Arduino with latest version #45

Closed wywarren closed 6 years ago

wywarren commented 6 years ago

Currently running OSX: 10.13.5 Arduino: 1.8.5 Arduino Duo Firmware: 0.3.0 (loaded when purchased) Installed Board Libraries: 0.3.2 (via https://redbearlab.github.io/arduino/package_redbear_index.json)

What I've tried: 1) Using 0.3.2 board libraries on 1.8.5 Arduino and opening the redbear duo blink sketch and uploading via USB. avrdude runs and sends and receives a bunch of byte data and stops with the following:

avrdude: error: programmer did not respond to command: write block

2) I've tried updating the firmware to 0.3.2 (latest) but the two methods have failed: a) After fixing the iOS app from the latest pull request from 3 days ago, I connected to the duo using wifi OTA. The app downloads 0.3.2 firmware and repeatedly tries to update it to the duo but upon completion it is still running 0.3.0 from the factory setting. b) Using dfu-util, it displays the following: ` MacBook-Pro-5:v0.3.2 qoobit$ sudo dfu-util -d 2b04:d058 -a 0 -s 0x8020000 -D duo-system-part1-v0.3.2.bin dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2016 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Invalid DFU suffix signature dfu-util: A valid DFU suffix will be required in a future dfu-util release!!! Deducing device DFU version from functional descriptor length Opening DFU capable USB device... ID 2b04:d058 Run-time device DFU version 011a Claiming USB DFU Interface... Setting Alternate Setting #0 ... Determining device status: dfu-util: error get_status `

I have ensured that the duo is in dfu mode with the blinking yellow light prior to trying to push the latest firmware.

I'm assuming the board manager version needs to be matched with the firmware version in order to upload sketches to the board.

wywarren commented 6 years ago

Turns out it was due to a bad usb cable! Sorry about the misunderstanding. Firmware uploaded.