Arduino GIGA R1 WiFi - an introductory look at the features
HTML-код
- Опубликовано: 10 мар 2023
- Hello Giga introduces the Arduino GIGA R1 WiFi board. If you will use Arduino IDE 2.x for the first time (to evaluate) the features you will have to set the USB port settings for Read/Write access for the user.
In Ubuntu, this configuration operation is completed through the UDEV rules settings with the following statement:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", MODE:="0666"
The steps are illustrated in the video.
In Windows, it would be more expedient to perform a fresh install of Arduino IDE 2.0.4 or later.
Nominal documentation is available at github.com/baqwas/giga/wiki
Check the corresponding GitHub site for the source code of the sketches.
Here are the steps performed on an Ubuntu (22.10) to prepare the GIGA for the 1st time use of Arduino IDE 2.x:
Step 1
udev has been updated with more flexibility/customization and improved efficiency with later releases of Linux. Perhaps these changes may cause some initial conflict with established applications.
Configure udev support rules in a file such as
/etc/udev/rules.d/60-arduino-renesas.rules
My equivalent file is as follows:
$ cat /etc/udev/rules.d/50-arduino-renesas.rules
Renesas based Arduino Santiago/Portenta H33 bootloader mode UDEV rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", MODE:="0666"
$
Please note that I used 50- as the filename prefix while the script illustrates the same with a 60- prefix. This difference in name does not affect the processing of the files in the udev rules folder.
The key entries in this file are:
SUBSYSTEMS: applicable for USB devices
ATTRS: 2341 is an identifier for Arduino
MODE: 0666: in other words rw-rw-rw root root
Owner can read & write but not execute
Group can read & write but not execute
Other can read & write but not execute
The simplest way is to complete this step is to run something similar to the following script with elevated privileges:
================================================
#!/usr/bin/env bash
arduino_renesas_core_rules () {
echo ""
echo "# Renesas based Arduino Santiago/Portenta H33 bootloader mode UDEV rules"
echo ""
cat “need two less than math symbols - concatenated”EOF
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", MODE:="0666"
EOF
}
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
arduino_renesas_core_rules “use greater than here” /etc/udev/rules.d/60-arduino-renesas.rules
reload udev rules
echo "Reload rules..."
udevadm trigger
udevadm control -reload-rules
=======================================================================
Step 2
In this section you work with dfu-util to perform the USB Device Firmware Upgrade (DFU).
Obtain the latest version of dfu-util from sourceforge.net/projects/dfu-.... Since tormod looks after this site and provides superlative support you are on safe ground to use this site for the download.
(tormod cannot be expected to solve end-user issues since he is not privy to end-user configurations but he is extremely patient and helpful in offering guidance and general assistance towards successful use of dfu-util)
Install the firmware for the GIGA from
docs.arduino.cc/resources/fir...
Check the firmware integrity using dfu-suffix (optional step)
Refer to documentation on dfu utilities for further checks.
List attached USB devices recognized by dfu-util
dfu-util -l -v
Step 3
Place the GIGA in bootloader mode
Unplug the board and hold the BOOT0 button down
Connect the GIGA to your desktop via the USB-C port
Wait for green LED to light up
Release the BOOT0 button
Step 4
Flash the firmware onto the GIGA using dfu-util
dfu-util -d 2341:0366 -D /path/filename
(please check the product ID: 0366 because at the time of expanding this note I don’t have access to it)
These steps need to done only one, of course!
Run programs on your GIGA now.
Error message conditions
The error code 74 from dfu-util indicates that the device is not in DFU mode. This can happen for a number of reasons, including:
The device is not plugged in
The device is not in bootloader mode
The device does not support the DFU protocol
The dfu-util command is not being used correctly
To fix this error, you need to make sure that the device is in DFU mode. Once the device is in DFU mode, you should be able to use dfu-util to upload.
If you are still getting the error code 74 after making sure that the device is in DFU mode, then you may need to update the dfu-util command. The latest version of dfu-util can be found on the dfu-util website.
Nice video!
Would love to receive suggestions on what Arduino GIGA topics would be useful to the wider audience. Thanks again for your viewing time. Regards.
@@MathaGoram I don't know what the average would like, but I'd be interested in something like speed tests, stuff with the audio jack and usb host port anda display or camera. I probably wont buy the Giga, because I just dont need anything that powerfull and I'm interessted in the "new" stuff the other arduinos dont have.
I know I ask a lot of questions but I cannot print to the serial monitor. Is it IDE 2.1.1 or the Giga that may cause this?
The Serial Monitor output is displayed in the Console Log window (change from prev release). Only Serial Plotter works as before (but with some extra features). Also, never never hesitate to post questions. That is the only way I will learn too if I do not know the answer.
@@MathaGoram Hello. Yes my esp32, stm32 and undo display properly, just not the Giga? Driving me nutty : )
@@drakkorvladimir4012, there have been several suggestions from end-users to improve the IDE 2.x Serial Monitor capabilities. Will Arduino respond is the big question! For time-series data perhaps the Serial Plotter may help in a limited way.
@@MathaGoram So it's not just me then? Cool. Thanks again : )
I think that my Giga disconnects the comm port after uploading sketch and this is causing no serial output? Any ideas on why it disconnects?@@MathaGoram
I cannot upload a sketch to this board. Errors dfu ???
You will have to set the USB port permissions using udev (in Ubuntu).
#!/usr/bin/env bash
arduino_renesas_core_rules () {
echo ""
echo "# Renesas based Arduino Santiago/Portenta H33 bootloader mode UDEV rules"
echo ""
cat
@@MathaGoram Thank you very much. There are only very few people that will actually answer questions and help someone. Much respect to you.
@@MathaGoram I have another question....I don't get a access denied or anything, I get DFU? Maybe this is the same as you mentioned? Just checking. Thank you.
@@drakkorvladimir4012, I'll update the notes section with more details on how to proceed on Linux platforms. The equivalent steps must be performed under Windows too but I've never tried those. I'll upload later this evening. Thanks for your patience. We work together to get you up and running. Regards.
@@MathaGoram Thank you.
What a wase of time and money, it is not even possible to flash and use the micropython. I have now been attepting to do this for about a week now and no working manual exist on the site on how to load micropython.
Harware means nothing without working software. There almost next to no working support documentation at this time for Ubuntu.
too expensive ....just no
Every Arduino product cannot please everyone. (I gave up giving up griping and took some time off). Too many specialized solutions in the broader market to meet specific needs economically. Fully understand your viewpoint. Regards.