Opta - Unable to upload programs (error: exit status 74)

Good day,
after a good experience with arduino products that are easy and quick to set up, use and program i got an arduino opta which i am very disappointed with. I thought that I would be able to offer my clients a professional solution built on the friendly Arduino platform, but it looks bad and I'm afraid that this way Opta will end up in the trash can.

Opta has a number of strange and contrary to other Adruino properties, for example, several serial ports on USB, which are used in various ways, not described anywhere.

It is not possible to upload any program to Opta using the Arduino IDE 2 platform, the upload always fails with the following error:

Sketch uses 134080 bytes (6%) of program storage space. The maximum is 1966080 bytes.
Global variables use 59664 bytes (11%) of dynamic memory, leaving 463960 bytes for local variables. The maximum is 523624 bytes.
Performing 1200-bps touch reset on serial port /dev/ttyACM0
Waiting for upload port...
No upload port found, using /dev/ttyACM0 as fallback
dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
"/home/jbarta/.arduino15/packages/arduino/tools/dfu-util/0.10.0-arduino1/dfu-util" --device 0x2341:0x0364 -D "/home/jbarta/.var/app/cc. arduino.IDE2/cache/arduino/sketches/B206F4CC93977216E0B3A4E641D8A6F4/sketch_nov25a.ino.bin" -a0 --dfuse-address=0x08040000:leave
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: No DFU capable USB device available
Failed uploading: uploading error: exit status 74

Whether Opta does not flash and has two ports /dev/ttyACM0 and /dev/ttyACM1 or I double-click it to flash when it has only one port /dev/ttyACM0, whether I try one or the other, unfortunately the result is always the same.

thanks in advance for any explanation or solution
Jan

1 Like

Hi @jbartalamcz. I'm sorry about the problem uploading to your Opta. I noticed from the output you shared that you are using the 3rd party Flatpak package of Arduino IDE 2.x instead of the official Arduino IDE 2.x build.

Arduino does not have any involvement in the maintenance of the Flatpak package and does not provide support for the use of such packages. I see that the 3rd party package maintainer did provide some instructions in the readme that look possibly relevant:

https://github.com/flathub/cc.arduino.IDE2#readme

add:

KERNEL=="ttyUSB[0-9]*",MODE="0666"
KERNEL=="ttyACM[0-9]*",MODE="0666"

to /etc/udev/rules.d/50-arduino.rules.

If you haven't done that already, I recommend giving it a try. They didn't mention it in the readme, but I believe you must also run the following commands after creating the new rules file in order to cause it to go into effect without having to logout:

sudo udevadm control --reload-rules && sudo udevadm trigger

Hopefully that will fix the problem with uploading. If not, please install the official Arduino IDE and check whether you can upload using that version. The download links are listed here:

1 Like

Good day,
per your recommendation i uninstalled the IDE 2.0 version from Flatpack and installed the official IDE version.

I also created a file /etc/udev/rules.d/50-arduino.rules with suggested content.

Unfortunately, the result is almost the same:

Projekt zabírá 134080 bytů (6%) úložného místa pro program. Maximum je 1966080 bytů.
Globální proměnné zabírají 59664 bytů (11%) dynamické paměti, 463960 bytů zůstává pro lokální proměnné. Maximum je 523624 bytů.
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

Nastala chyba při nahrávaní projektu.
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:0364 found on devnum 15 (LIBUSB_ERROR_ACCESS)
dfu-util: No DFU capable USB device available

thanks in advance for any other tips
Jan

OK, great. The first error message you got from the Flatpak package:

Is very generic. It essentially only tells us that something went wrong, but doesn't give a lot of clues about what caused it.

Your new error from the official package contains some extra information that allows us to identify the cause of the failure this time (which might be completely different than the cause of the Flatpak package's error, despite the similarity between the messages):

In order for Arduino IDE to upload to the Arduino board, your user account must have write permission for that device. Standard user accounts don't have this permission by default. This error can occur when you attempt an upload without the necessary permissions. So it is necessary to configure your system to allow the upload. This is done by creating a special file. Arduino provides a script that will create the file for you.

I'll provide instructions you can follow to run that script:

  1. Open the following URL in your web browser:
    https://github.com/arduino/ArduinoCore-mbed/blob/main/post_install.sh
  2. Click the downward pointing arrow icon ("Download raw file") at the right side of the toolbar:
    image
  3. Wait for the download to finish.
  4. Open a command line terminal in the folder that contains the downloaded file.
  5. Type the following command:
    chmod +x post_install.sh && sudo ./post_install.sh
    
  6. Press the Enter key.
  7. If prompted for it, enter your Linux account password and press the Enter key.

The command should complete successfully. Now try uploading again. Hopefully the error will no longer occur.

Thank you very much, this works.

best regards Jan

You are welcome. I'm glad it is working now.

Regards,
Per