Cannot Blink at 1st attempt on GIGA board

Hello!

Trying to blink the GIGA board for the first time. The board is detected on /dev/ttyACM4 under Ubuntu 22.10 running IDE 2.0.5-nightly-20230303 with Mbed OS Giga library version 4.0.2.

Compile works but Upload fails with the following message:

Sketch uses 109408 bytes (5%) of program storage space. Maximum is 1966080 bytes.
Global variables use 47520 bytes (9%) of dynamic memory, leaving 476104 bytes for local variables. Maximum is 523624 bytes.
dfu-util 0.10-dev

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 dfu-util / Tickets

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
dfu-util: Cannot open DFU device 2341:0366 found on devnum 68 (LIBUSB_ERROR_ACCESS)
dfu-util: No DFU capable USB device available
Failed uploading: uploading error: exit status 74

Haven't seen any instructions on flashing the firmware so I didn't try it not knowing what to do for this purpose. What is the basic way to get any sketch uploaded to the board? What steps have I (newbie) overlooked? Thanks.

Regards.

Hi, try to double press the reset button and upload then if it helps

@bexin, I wish that it was that simple! :grinning:

Between Ubuntu and IDE 2.0, something is missing in udev configuration for a standard user to connect to /dev/ttyACM*. It is beyond my pay grade but sooner rather than later I hope to stumble across the recommended solution. Otherwise it is back to IDE 1.x where the standard user is a member of the dialout group.

Regards.

Hi, the issue seems to be with the permissions in udevrules, you can add the following

cat /etc/udev/rules.d/50-arduino.rules
SUBSYSTEMS=="usb", ATTR{idVendor}=="2341", MODE:="0666"

if this doesn't solve the issue please write to us directly using the Contact us form.

Same problem with IDE 2.0.4 and windows 10,how to solve? Thanks...

Thanks, @jojo but could you please dumb down your quick response for a very slow newbie learner! :wink:

Your suggestion is to create new statement/line/record in /etc/udev/rules.d/50-arduino.rules with the following statement:

SUBSYSTEMS=="usb", ATTR{idVendor}=="2341", MODE:="0666"

Is my understanding correct? Presently there are no files in the rules.d (Ubuntu 22.10) folder for arduino. Please clarify and thanks again!

Regards.

Hello @PierpaoloP, the solution suggested by @jojo makes perfect sense for Linux platforms. There must be some equivalent operation for Windows too. We were indoctrinated by Arduino to ensure users are members of the dialout group. I wonder why the equivalent prerequisite is not categorically mentioned for IDE 2.0. At least, now I know one or two sentences more about udev. :laughing:

Hello @baqwas ,so have I to wait a solution from jojo also for Windows ?

There is no equivalent to udev in Windows, I believe. I haven't used Windows for a very, very long time, sorry.

If you can explore USB connections through Device Manager in Windows you should find a leaf for the port in use. You will have to enable user access (Read & Write) for the IDE 2.0 users as a minimum. Again, sorry, I cannot try it out at my end and give you direct feedback.

Unfortunately there is no way to enable user access in the port in use in Windows device manager,so I bought a board the I cannot use for my sketches...its absurd!

However in Windows 10 the error is:

Warning: Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release
Cannot open DFU device 2341:0366 found on devnum 1 (LIBUSB_ERROR_NOT_FOUND)
No DFU capable USB device available
Caricamento non riuscito: errore durante il caricamento: exit status 74

As a sanity check, can you try IDE 1.x or the Web/Cloud IDE? Don't lose heart over the board. It has good specs and in due course you'll be happy.

FWIW, I stayed away from IDE 2 during the earlier releases of this product - too many issues and too little support. I thought that at least with GIGA someone would have done some basic/fundamental Hello World Quality Assurance check with IDE 2 but I was sadly mistaken.

Of course, this is par for the course in the industry even when building customer facing apps owing the "pressures" and expectations from the customers. If you are into using "maker" solutions you will not be disappointed with the GIGA - let someone like myself who has tinkered in a small way for many years assure you of that premise.

Regards.

Yes, dfu-util expects 2341:0666! I'm sure that you will soon get a response from Arduino Technical Support. I wonder why Arduino never tested the IDE 2 & GIGA on a clean desktop. Since their QA team already had the port working, they couldn't be bothered with testing from scratch.

I will work on my Ubuntu tasks this afternoon. If I get some time, I'll explore a solution for your Windows environment too.

Regarfds.

I found this link for Windows 10:
https://technastic.com/how-to-enable-and-disable-your-usb-ports/

The usual CAUTION rules regarding changing registry settings apply. Backup and make a note of existing settings.

Your value should be entered in accordance with the narrative in step 4:
"You can now change the Value data to 4 to disable the USB ports and change the value to 3 to enable the USB ports."

Of course, using Method 2 in the same article is a safer way to work with the registry as long as you have proof-read the script files diligently. :grinning:

Regards.

Hello @PierpaoloP,

I ran the following commands (Ubuntu 22.10) with elevated privileges:

udevadm trigger
udevadm control --reload-rules

after creating the file /etc/udev/rules.d/60-arduino-renesas.rules that contained the following statement:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", MODE:="0666"

Subsequently, I was able to upload from IDE 2.0.3 to GIGA without any error message. So, your solution too will require the USB port to be enabled for Read/Write for all IDE 2.0 users on your platform.

Regards.

@baqwas ,thanks for your suggestions,I appreciated a lot your help!Unfortunately the USBSTOR in my windows registry was already set to 3,so my usb was enabled.However I was find this workaround:

  1. I uninstalled the Arduino IDE.
  2. I installed the msi version of the 2.0.4 IDE.
  3. Before to connect Arduino Giga R1, I uninstalled the
    "Arduino Mbed OS Giga Boards".
  4. I connected the Giga R1 and then installed again the
    "Mbed OS".

Successively I uploaded the Blink sketch with success,and it ran correctly,the only warning was :
"Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release
".

Thanks for letting me know, @PierpaoloP. I've saved your suggestion for reference to other colleagues who use Windows.

Happy GIGA Maker Experience to you!

Regards.

@baqwas ,I think that in Windows,at the beginning,something was wrong with the USB driver during the installation of "Mbed OS" inside the IDE...sincerely I cannot explain this strange behaviour.

I hope you get to enjoy your GIGA board now! Publish an article or two on your new experiences for the educational benefit of the community.

Regards.

Hi, I hope the issue has been solved for you. If you have any further queries, please getting touch with us.