Cannot Upload sketch to Opta

Hello, I recently bought an arduino Opta Lite. I was able to connect to it and activate the licence (after a few hours of head scratching and searching forums).
But now i'm unable to download my plc code to the Opta.
The code is the same as when you create a new project I just added a few lines to the arduino sketch to make the Opta blink on the user and reset leds.

Here is the sketch code :

void setup()
{
    pinMode(LED_RESET, OUTPUT);
    pinMode(LED_USER, OUTPUT);
/*
	// Configure static IP address
	IPAddress ip();
	IPAddress dns);
	IPAddress gateway();
	IPAddress subnet();
	// If cable is not connected this will block the start of PLC with about 60s of timeout!
	eth.begin(ip, dns, gateway, subnet);
*/
}

void loop()
{
    digitalWrite(LED_RESET, HIGH);
    digitalWrite(LED_USER, HIGH);
    delay(1000);
    digitalWrite(LED_RESET, LOW);
    digitalWrite(LED_USER, LOW);
}

So nothing special, I'm able to compile the code but when I try to download it I get this error message :

Waiting for upload port...
No upload port found, using COM5 as fallback
"C:\Users\Tobias\AppData\Local\T\A\internal\arduino_dfu-util_0.10.0-arduino1_f76499ce02f56129/dfu-util" --device 0x2341:0x0364 -D "C:\Users\Tobias\Documents\Opta Test\LLSketch_build/LLSketch.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 http://sourceforge.net/p/dfu-util/tickets/

Warning: Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release
No DFU capable USB device available
Failed uploading: uploading error: exit status 74

So it's a COM port problem. I have 2 COM ports open when my opta is connected : COM port 9 and COM port 10.
I read somewhere that I could try to double tap the reset button and then download the code but it opens another COM port (10).
I did the basics already (rebooting, checking drivers, reinstalling the plc ide tools, making another sketch). I'm still at a loss...

Thank you in advance :upside_down_face:

What's the problem with this Portenta PLC ??? Must be software problem.

I have the same problem. It does not work with PLC IDE, classic IDE or Web Editor. Always same error. No DFU capable USB device available. Does anybody have a solution or workaround?

I have this problem with Linux OS....I can't upload my sketch

Hi All,

Please follow the steps below:

1- Set your Arduino Opta in bootloader mode by double tapping the reset button.
2- Download the runtime.
At the end of the download, it will be displayed "sketch file downloaded” in the Output window.
3- In On-line > Set up communication > Modbus > Properties > Port: Assign the new COM port which has the highest number of the two available COM ports.
4- In On-line click Connect, your Opta should connect successfully.
5- In Resources > Sketch > enter your sketch.
6- Finally in On-line > click Download code.

  • If a Cold restart is requested click YES.
    You will then see in the output window that the code is downloaded.

Best,

solved by creating the file:

/etc/udev/rules.d/99-arduino.rules

and adding the rule:

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

https://docs.arduino.cc/software/ide-v2/tutorials/getting-started/ide-v2-downloading-and-installing