Can't download PLC IDE code to Opta Wifi

The Opta Wifi was working fine with the plc ide, but now I can't "Download PLC Code". Sometimes, I can't even connect the Opta with the PLC IDE. When connecting with the higher COM port, the red error label pops up instead of the green connected label.

I have tried memory partitioning , but the red Opta LED just keeps flashing. I hit reset twice (Green LED flashing) and uploaded a basic arduino sketch to lower COM port. Then I did manual sketch download in the PLC IDE to lower COM port. Then I tried connecting with the higher COM port which fails (address 247).

The serial COM port is 10, MODBUS is 18. COM11 is not visible.

Here are the error messages that pop up (PLC IDE):
Processor setting error: current project 'ARMThumb2_VFP2', target device ''.
Comm setting error: current project 'ArduinoOpta', target device ''.

Doing Manual Sketch Download on COM10:
Performing 1200-bps touch reset on serial port COM10
Waiting for upload port...
Upload port found on COM11

Downloading PLC Code on COM18:
Performing 1200-bps touch reset on serial port COM18
Waiting for upload port...
Upload port found on COM11

Error in the Build Section:
Booting PLC application ..
failed.

0 warnings, 0 errors.

Loading target image ..
failed.

It keeps going to COM11 for no reason even though it's not visible in Arduino IDE, PLC IDE, and Windows Device Manager. The only way to get COM11 to appear is to do memory partitioning. But COM11 disappears to COM10 and COM18 after Manual sketch Download (PLC IDE) or COM10 when using Arduino IDE.

I'm not sure what else to try. I have used two different computers and updated Arduino IDE and the mbed os Opta board package. Both computers/PLC IDEs work with my other Opta.

First of all, make sure you have the latest version of both Arduino PLC IDE and Arduino PLC IDE Tools installed, you can find them at https://www.arduino.cc/en/software

Follow this tutorial to see all the steps https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-setup-license

Make sure the Serial Ports are not being used (close the Arduino IDE, if it is open)

I get the same error, however, it only happens when I have the static IP set up on the PLC. Then I actually need to reset it entirely and download the code again. If I leave my code as it is, without the static IP configured and the generic modbus node of the other device it works fine.
It makes me think it is something related to this configuration but I haven't been able to find out what. No other information is given on the error.

Hello,

Same error1 for me when I upload the sketch trough USBC. I was not able to upload a single sketch so far.
The device OPTA is connected, green, and when I start the upload the port com drop. I can see it on the device manager. I tried to push on the reset button but no effect. I have the latest version of IDE PLC.
What can be done ?

I also cannot download my sketch (function block diagram) that I made with PLC IDE. The compile has no errors. I can also connect to the target with no issues (the PLC IDE shows the opta is connected) but trying to download is where I get the below failure log

--- Start compilation (PreBuild) 7:34:22 AM ---
--- End compilation (PreBuild) 7:34:22 AM ---

--- Start compilation (PostBuild) 7:34:22 AM ---
Sketch generated, is changed: false
--- End compilation (PostBuild) 7:34:22 AM ---
Waiting for upload port...
No upload port found, using COM5 as fallback
"C:\Users\a88888\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.10.0-arduino1/dfu-util" --device 0x2341:0x0364 -D "C:\Users\a88888\Documents\Test1\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

Hello,

I would like to say and confirm that I am also currently facing the exact same problem! I sometimes get the Opta PLC to connect to Arduino PLC IDE, but I am never successful to download new code into the Opta. The code is able to compile, but I always get these error messages:

Here is the error message I get from the 'Build Output' window:

Preprocessing Global shared completed.
Preprocessing ParDB completed.
Preprocessing IO completed.

0 warnings, 0 errors.

Preprocessing user defined data .. completed.
Preprocessing variables .. completed.
Preprocessing POUs .. completed.

Code generation .. 
Preprocessing EmbeddedElements completed.
Generating constants
Generating program Avvio_motore
Generating program InitParDB
Generating program $$IOConfig
Generating unresolved
Generating dynamic links
completed.

Generating output file C:\Users\mattm\OneDrive\Documents\Arduino OPTA PLC Projects\Es_Opta_4prima\Build\Es_Opta_4prima.sym.xml .. completed.
Generating output file C:\Users\mattm\OneDrive\Documents\Arduino OPTA PLC Projects\Es_Opta_4prima\Build\Es_Opta_4prima.lst .. completed.
Generating output file C:\Users\mattm\OneDrive\Documents\Arduino OPTA PLC Projects\Es_Opta_4prima\Build\Es_Opta_4prima_dyn.lst .. completed.
Generating output file C:\Users\mattm\OneDrive\Documents\Arduino OPTA PLC Projects\Es_Opta_4prima\Build\Es_Opta_4prima.tsc .. completed.
Generating output file C:\Users\mattm\OneDrive\Documents\Arduino OPTA PLC Projects\Es_Opta_4prima\Build\Es_Opta_4prima.cod .. completed.
Generating downloadable file C:\Users\mattm\OneDrive\Documents\Arduino OPTA PLC Projects\Es_Opta_4prima\Download\PlcCode0.bin .. completed.
Generating downloadable file C:\Users\mattm\OneDrive\Documents\Arduino OPTA PLC Projects\Es_Opta_4prima\Download\PlcSource0.bin .. completed.

Used code size:	    34Ch (    0 KByte)
Free code space:	  1E0B4h (  120 KByte)
Total code space:	  1E400h (  121 KByte)

Used data space:	     14h (    0 KByte)
Free data space:	  1FBECh (  126 KByte)
Total data space:	  1FC00h (  127 KByte)

Used retain data space:	      0h (     0 KByte)
Free retain data space:	    400h (     1 KByte)
Total retain data space:    400h (     1 KByte)

0 warnings, 0 errors.


Preparing for PLC application download .. done.
Downloading file C:\Users\mattm\OneDrive\Documents\Arduino OPTA PLC Projects\Es_Opta_4prima\Build\Es_Opta_4prima.cod .. completed.
Booting PLC application .. 
failed.

0 warnings, 0 errors.

Loading target image .. 
failed.

Here is the error message I get in the 'Resources Output' window:

Used platform     Version Path                                                                              
arduino:mbed_opta 4.1.1   C:\Users\mattm\AppData\Local\T\A\internal\arduino_mbed_opta_4.1.1_eba52fabda9bf616
C:\Users\mattm\OneDrive\Documents\Arduino OPTA PLC Projects\Es_Opta_4prima\LLSketch\LLSketch.ino: sketch file compiled
--- End   compilation  (PostBuild)  11:25:53 PM ---
Performing 1200-bps touch reset on serial port COM3
Waiting for upload port...
No upload port found, using COM3 as fallback
"C:\Users\mattm\AppData\Local\T\A\internal\arduino_dfu-util_0.10.0-arduino1_f76499ce02f56129/dfu-util" --device 0x2341:0x0364 -D "C:\Users\mattm\OneDrive\Documents\Arduino OPTA PLC Projects\Es_Opta_4prima\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

I just bought this PLC recently to perform some small experiments and now I am annoyed that it was only working for the first few days only to end up having these issues occur.

I hope that this gets resolved or that there will be an update for this problem as I have seen in other forums posted in recent years similar issues regarding to this forum. I feel like I have tried everything ,including "solutions" mentioned in this forum and other forums, such as reinstalling the PLC IDE, using a different USB C cable, reinitializing the Opta, checking the right COM ports, trying to connect on different devices, etc.

Hello!
If you have successfully connected the board to the PLC IDE but while downloading the code, you are facing the following error message:

No DFU capable USB device available
Failed uploading: uploading error: exit status 74
  1. Please make sure the ports are not busy, for example the serial monitor should not be open on the Arduino IDE side.
  2. You can stop the execution of the PLC program by clicking On-line>Halt. Then reboot the target by clicking On-line>Reboot target. This should allow you to upload a new program.

I get the same information every time, and the code works in Arduino IDE and Arduino Cloud, the problem is the PLC IDE, after downloading the code, I want to activate the PLC, and an error appears on the serial port that it cannot activate, the attempt was made via USB - c and MODBUS-TCP, I cannot format QSPI either, red LEDs light up, I updated the bootloader, no effect, the only problem is the functioning of the PLC IDE.
I have Opta without wi-fi only with modbus rtu, why in formating partterns its shows wi-fi partition, maybe that's the problem?