Arduino PLC - No virtual port for ModeBus created

Hi,

I setup the Arduino PLC and followed this document.

https://docs.arduino.cc/tutorials/portenta-machine-control/plc-ide-setup-license#1-arduino-plc-ide-tools

In the Step 4. Download the Runtime.

The device will show up two Serial Ports, the default one (generally with the lowest number) is the usual Serial Port, the secondary one (usually with the highest number) is a virtual port for ModBus communication from the device to your computer. Take note of the port number assigned to the secondary port (virtual port for Modbus) as it will be needed in a second step.

There is only 1 serial port found so I can't connect to it.

How can I resolve this problem?

Huh, didn't even know that Arduino has a PLC IDE.

When I tried it just now I saw two Serial ports:

  1. COM18 (my normal one for connecting to the PMC)
  2. Automatic (BootLoader)

So I also don't see one with a higher number...

What are you seeing?

/ Einar :sweden: :coffee:

Same to me. :frowning:

  • COM5
  • Automatic (BootLoader)

and there is a "Error" displayed at the bottom right status bar.

Realized I had missed the first step, which was to click "download" on the main serial port.
However I then ran into this message:


What did you get when you did this?

From what I can gather this software is very recent
(Arduino PLC IDE Blends the Worlds of Programmable Logic Controllers and Arduino Sketches - Hackster.io)...
perhaps it's something which Arduino will require some time to get working? :thinking:
A clue may be the comment I underlined in red in the above image :laughing:
Or I'm just doing something incorrectly!

/ Einar :sweden: :coffee:

The "Invalid DFU suffix signature" should not be a problem (I think):

I get it every time I upload to the PMC in the normal IDE.

What's the 1st step?

Ah... I clicked the "Download" button and got a same result as you did. :frowning:

Could you please check something now?

I assume you have the regular (formerly "Pro") IDE downloaded?

After attempting the downoad in the PLC IDE I am now unable to access the PMC's serial port in the regular IDE.
Are you getting the same problem?

/ Einar

I installed the Arduino PLC IDE & Arduino PLC tools.

In step 4, I clicked the Download button then I have below message.

"C:\\Users\\jb\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O binary "C:\\work\\Arduino_PLC_Project\\test\\CLISketch/LLSketch.ino.elf" "C:\\work\\Arduino_PLC_Project\\test\\CLISketch/LLSketch.ino.bin"
"C:\\Users\\jb\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\work\\Arduino_PLC_Project\\test\\CLISketch/LLSketch.ino.elf" "C:\\work\\Arduino_PLC_Project\\test\\CLISketch/LLSketch.ino.hex"
C:\Users\jb\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\3.5.4\bootloaders\PORTENTA_H7\portentah7_bootloader_mbed_hs_v2.elf syntax error: no colon char on the first line character at line 1

?์‡ฑ์” ้‡‰๋šฎ์œญ็”ฑ?AlPlc็‘œ?่ธฐ๊พฉ์Ÿพ 1.0.2 ?๋Œ€๋œ‘: \\Mac\Home\Documents\Arduino\libraries\AlPlc  ?๋จฏ๊ฝŒ ?ัŠ์Šœ
?์‡ฑ์” ้‡‰๋šฎ์œญ็”ฑ?Arduino_MachineControl็‘œ?่ธฐ๊พฉ์Ÿพ 1.1.1 ?๋Œ€๋œ‘: \\Mac\Home\Documents\Arduino\libraries\Arduino_MachineControl-temp_fix_tmc_plc_ide  ?๋จฏ๊ฝŒ ?ัŠ์Šœ
?๋Œ€๋œ‘:C:\Users\jb\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\3.5.4\libraries\SPI (?๋‡๊ต…?????์‡ฑ์” ้‡‰๋šฎ์œญ็”ฑ?SPI ?ัŠ์Šœ
?์‡ฑ์” ้‡‰๋šฎ์œญ็”ฑ?ArduinoRS485็‘œ?่ธฐ๊พฉ์Ÿพ 1.0.2 ?๋Œ€๋œ‘: \\Mac\Home\Documents\Arduino\libraries\ArduinoRS485  ?๋จฏ๊ฝŒ ?ัŠ์Šœ
?๋Œ€๋œ‘:C:\Users\jb\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\3.5.4\libraries\Wire (?๋‡๊ต…?????์‡ฑ์” ้‡‰๋šฎ์œญ็”ฑ?Wire ?ัŠ์Šœ
"C:\\Users\\jb\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-size" -A "C:\\work\\Arduino_PLC_Project\\test\\CLISketch/LLSketch.ino.elf"
?ใ…ผ?็งป์„Ž๋’— ?๊พจ์คˆๆดน๋ชƒ์˜ฉ ?ย€??ๆ€จ๋“ฆ์ป™ 431588 ่ซ›๋ถฟ์” ??21%)็‘œ??ัŠ์Šœ. ๏งค์’•? 1966080 ่ซ›๋ถฟ์” ??
?๊พฉ๋ฟญ ่น‚ย€?์„Ž๋’— ?์ˆˆ์Ÿป ๏งŽ๋ถพใˆ็”ฑ?195072่ซ›๋ถฟ์” ??37%)็‘œ??ัŠ์Šœ, 328552่ซ›๋ถฟ์” ?๋ช„์“ฝ ๏งžย€????์„? ?โ‘ฅ์“ฌ.  ๏งค์’•???523624 ่ซ›๋ถฟ์” ??

Used library           Version Path                                                                                            
AlPlc                  1.0.2   \\Mac\Home\Documents\Arduino\libraries\AlPlc                                                    
Arduino_MachineControl 1.1.1   \\Mac\Home\Documents\Arduino\libraries\Arduino_MachineControl-temp_fix_tmc_plc_ide              
SPI                            C:\Users\jb\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\3.5.4\libraries\SPI 
ArduinoRS485           1.0.2   \\Mac\Home\Documents\Arduino\libraries\ArduinoRS485                                             
Wire                           C:\Users\jb\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\3.5.4\libraries\Wire

Used platform         Version Path                                                                             
arduino:mbed_portenta 3.5.4   C:\Users\jb\AppData\Local\Arduino15\packages\arduino\hardware\mbed_portenta\3.5.4

C:\work\Arduino_PLC_Project\test\LLSketch\LLSketch.ino: sketch file compiled
"C:\Users\jb\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.10.0-arduino1/dfu-util" --device 0x2341:0x035b -D "C:\work\Arduino_PLC_Project\test\CLISketch/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
Error during Upload: Failed uploading: uploading error: exit status 74
  1. There are some corrupted message like this.
    ?ใ…ผ?็งป์„Ž๋’— ?๊พจ์คˆๆดน๋ชƒ์˜ฉ ?ย€??ๆ€จ๋“ฆ์ป™ 431588 ่ซ›๋ถฟ์” ??21%)็‘œ??ัŠ์Šœ. ๏งค์’•? 1966080 ่ซ›๋ถฟ์” ??
    ?๊พฉ๋ฟญ ่น‚ย€?์„Ž๋’— ?์ˆˆ์Ÿป ๏งŽ๋ถพใˆ็”ฑ?195072่ซ›๋ถฟ์” ??37%)็‘œ??ัŠ์Šœ, 328552่ซ›๋ถฟ์” ?๋ช„์“ฝ ๏งžย€????์„? ?โ‘ฅ์“ฌ. ๏งค์’•???523624 ่ซ›๋ถฟ์” ??

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

I used the virtual environment(Parallels Desktop) and using the USB Hub.
So these may be the cause of the problem so I don't use the USB hub and did it with Windows desktop. Then I can activate the license. :slight_smile:

I am unable to read the first error message; could you please translate it into english?

As I mentioned the DFU suffix signature issue should not be a problem. I get it everytime I upload to the Portenta Machine Control in the regular IDE and this is from the post above which I quoted:

This warning does not indicate a problem. It is expected. If you're not seeing it in the Arduino IDE, it's because you have "Show verbose output during: upload" disabled in your File > Preferences ."

/ Einar :sweden: :coffee:

So were you able to solve the problem?
Did you manage the first download and to access the virtual serial port?

It's a corrupted message so I can't read it either.

No, I re-installed the Arduino PLC tools. Then I connected the USB cable to laptop directly, not using USB hub.

Hi again jbkim!

No, I re-installed the Arduino PLC tools. Then I connected the USB cable to laptop directly, not using USB hub.

But did this solve the problem or have you yet to solve it?

/ Einar :sweden: :coffee:

Solved the problem. :slight_smile:

Ok, nice and thanks for the info :slight_smile:

Hi everyone, hope you're doing good.

i've the same issue with my arduino PMC.

tried all what explained here but still don't have second port com.

when plug my card, i've only 3V3 led and can't connect to PLC IDE

        - tried uninstall - reboot - install again several times.
        - also drivers and reboot ... 

nothing work until now.

please can someone support ?

  1. Make sure you have installed the latest version of the PLC IDE (v1.0.3.1) and PLC IDE Tools
  2. If you have the latest PLC IDE version, re-install the PLC IDE Tools.
  3. Make sure you are not using the Serial COM, close it if it is open on the Arduino IDE Serial Monitor, this will block the upload process
  4. Close the PLC IDE, re-plug your board, put it on bootloader-mode (Double-tap the reset button), Open the PLC IDE, select the Port and try to "Download"
  5. Try another USB-port
  6. Check automatic, make sure no other board is connected

Can you upload a normal sketch from the Arduino IDE? @atoum42
Also share the output log, to see the verbose and error

Thanks

1 Like

i update the boot loader , to las rรฉvision 24 , of portenta lite , it sloaded after correctly.

1 Like