The titled topic content contains incorrect use for installing MicroPython on the GIGA R1.
On my raspberry pi 400:
The line: dfu-util -w -a 0 -d 2341:0366 -D GIGAR1_MP_FW.dfu
fails - the option -w is invalid.
Apparently, removing this offending option allows upload of the Micropython environment - or does it? In Thonny I can't execute anything in the shell.
Also Thonny does not show a GIGA Micropython, simply a generic. Could we please have better documentation??
What version of dfu-util do you have on your system? (Try dfu-util -v
)
On 0.11, which is the latest one installable via HomeBrew, the -w
option is supported and documented in the man page:
-w, --wait
Wait until matching device appears on the USB bus.
So it's strange that you don't have it. Maybe your system has an older version of dfu-util?
Also, we recommend using Arduino Lab for MicroPython which has some usability improvements and should provide better feedback on what's going on.
Let us know
Hi alranel,
thanks for your timely reply. The utility was loaded using apt from the latest raspbian archive ande and says it is:
dfu-util -V
dfu-util 0.9
So that's the answer. Raspberry pi (ARM) versions are usually a little behind.
As for 'Arduino Lab for Micropython' - I can't find an ARM version - again, not a surprise. I'm currently installing OpenMV IDE. I'll update later with any progress. Thanks again.
Here's my predicament:
$ /usr/bin/dfu-util --verbose -w -a 0 -d 2341:0366 -D GIGAR1_MP_FW.dfu
dfu-util 0.11
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 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/
libusb version 1.0.26 (11724)
DFU suffix version 11a
Waiting for device, exit with ctrl-C
^C
While Tormod's has been invaluable and patient with my previous inquiries, I feel obliged to run this past the Arduino GIGA team before approaching him since this issue is not being caused by dfu-util directly.
Pardon my ignorance but I have the following serial ports for communication to varied genuine Arduino and some other vendor (e.g. Sony Spresence, Himax, etc.) boards:
ttyACM0 thru ttyACM5
ttyUSB0 thru ttyUSB3
The GIGA is connected through ttyACM4 and works for exercises with Arduino IDE 2.4.
There is a port setting for the dfu-util program. Do I have to use it to designate the GIGA? Is there an example illustrating its use?
I would prefer not to disconnect all the other boards just to flash the firmware since it is not the best practice in my environment. What should I do to flash the firmware successfully?
Please help! Thanks.
Regards.
P.S.
Also, it would be useful to have some documentation on the purpose of -a parameter for dfu-util if it is a requirement for the GIGA.