Cesar
Windows 10
OpenPLC Editor 1.3.1
Release: 2022-03-11
COM3
Arduino UNO r3

I am a beginner with OpenPLC. I was trying the example of the traffic light.
The FBD program is correct on the simulator.
Now, when I tried to upload the program into my Arduino UNO r3 directly from the OpenPLC Editor:


Generating binary file...

Error during build: Platform 'arduino:avr' not found: platform not installed

COMPILATION FAILED!

However I have also installed the Arduino IDE and I can upload sketches with the Arduino IDE normally.
I installed OpenPLC a couple of weeks ago. I think the OpenPLC web site has changed.
Should I do a fresh installation of the Open PLC editor?
Should I install a runtime or all runtimes are included in the OpenPLC Editor?
Thanks 
Blade Runner
Reply 0 0
thiagoralves
Do a fresh install. I believe this version you have has Arduino support still in beta. Current version will work better.
Reply 1 0
Cesar
OpenPLC Editor 1.3.3
Release: 2022-05-16
Windows 10
Arduino UNO r3

solved the issue.
Thanks
Blade Runner
Reply 0 0
coryy
Running into same error message, but under Ubuntu 20.04, with OpenPLC Editor 1.3.3, release 2022-05-16, and trying to upload to Arduino Nano.  Checked direct from Arduino IDE works fine, but not via OpenPLC Editor.

Compiling .st file...
POUS.c
POUS.h
LOCATED_VARIABLES.h
VARIABLES.csv
Config0.c
Config0.h
Res0.c
Generating binary file...

COMPILATION START: arduino:avr:nano

Error during build: Platform 'arduino:avr' not found: platform not installed

COMPILATION FAILED!
Reply 0 0
thiagoralves
This means that on first upload it couldn’t download the Arduino files needed to upload to Arduino boards. Reinstall the editor and make sure you have a good reliable internet connection on first upload. It will take a while as it is downloading and installing board files for all supported platforms. Once it finishes, uploads will take only a few seconds
Reply 0 0
coryy
Thanks!  Definitely took a little while for the initial compilation, but faster upload afterwards.
Reply 0 0
Willem
I am getting a similar error. When I do a fresh install, it works, but I can transfer my program to the Arduino exactly twice before the error re-appears.
Then I have to re-install again to be able to do another two transfers. 
Any ideas? 

Windows 10
OpenPLC Editor 2.01
Release: 2023-06-27

Compiling .st file...
POUS.c
POUS.h
LOCATED_VARIABLES.h
VARIABLES.csv
Config0.c
Config0.h
Res0.c
Generating binary file...
COMPILATION START: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\Willem\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\Willem\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
COMPILATION FAILED!
Reply 0 0
thiagoralves
Make sure you don’t have any AV solution deleting files after they have been installed. That’s the only thing I can think of
Reply 0 0
BenB
[06-03-26 16:14:59]: Handling library installation...
[06-03-26 16:15:01]: Arduino CLI process exited with code 1
[06-03-26 16:15:01]: Error installing Arduino_EdgeControl: Library 'Arduino_EdgeControl@latest' not found
[06-03-26 16:15:01]: Stopping compilation process.
 
I got this error and then reinstalled OpenPLC Editor and got the same error again.
Trying to program an Arduino Nano.
Sorry for thread necro.
Reply 0 0
thiagoralves
Try opening Arduino IDE and look for the missing library (in your case EdgeControl). Install it from the Arduino IDE and it should work
Reply 1 0
BenB
Try opening Arduino IDE and look for the missing library (in your case EdgeControl). Install it from the Arduino IDE and it should work
This worked. Thank you!
Reply 0 0
Reply