Arduino Opta: Resolving mbed_opta Platform Not Found

Jason IP2 min read
Other ManufacturerPLC HardwareTroubleshooting
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Identify the failure signature

The PLC IDE generates the sketch but fails while initializing and building the Opta target. The reported messages identify two missing resources:

Sketch generated, is changed: true
Error initializing instance: Profile 'opta_1.0.4' not found
Error during build: Platform 'arduino:mbed_opta' not found: platform not installed

On the affected computer, the archive gcc-arm-none-eabi-7-2017-q4-major-win32-arduino1.zip appeared under the PLC IDE package directory with a file size of only 1 KB. A company firewall was suspected of interrupting that download, but the configuration difference ultimately associated with the failure was a sketch.yaml file missing two sections present on a successful installation.

Keep the Arduino IDE and PLC IDE paths separate

Path Observed purpose Required handling
C:\Users\<username>\AppData\Local\Arduino15\staging\packages Arduino IDE 2.x package-download cache Use this cache when installing the Arduino Mbed OS Opta Boards platform through Arduino IDE 2.x. This does not force the PLC IDE to recognize the platform.
C:\Users\<username>\AppData\Local\T\D\packages Location where the affected PLC IDE installation stored its downloaded archive A complete archive copied here did not provide a known installation trigger.
C:\Users\<username>\AppData\Local\T PLC IDE installation structure used in the successful recovery Copy this structure from a working installation while preserving machine-specific configuration where required.

Installing the board platform successfully in Arduino IDE 2.x therefore does not prove that the PLC IDE has its required profile, platform, or configuration. Diagnose the two environments independently.

Recover the PLC IDE installation

  1. Install the PLC IDE and Opta tools successfully on another computer.
  2. Preserve the failing computer's original C:\Users\<username>\AppData\Local\T\arduino-cli.yaml. Its working-directory paths can differ between computers.
  3. Copy the remaining files and folders under C:\Users\<username>\AppData\Local\T from the successful installation to the affected computer.
  4. Ensure that the working installation's sketch.yaml is transferred. The failing copy was missing two sections, although the evidence does not identify their names or contents.
  5. Build the Opta project again and inspect the initialization and build output.

This recovery uses a known-good PLC IDE structure instead of relying on an undocumented trigger for a manually copied archive. Do not blindly replace arduino-cli.yaml because paths stored in that file may not match the destination computer.

Verify the repair

Confirm that initialization no longer reports Profile 'opta_1.0.4' not found and that the build no longer reports Platform 'arduino:mbed_opta' not found. If either message remains, compare the destination's sketch.yaml and copied Local\T structure with the successful installation; the available evidence does not define the missing YAML sections, so do not invent or manually populate unknown keys.

If the PLC IDE download again produces a 1 KB copy of gcc-arm-none-eabi-7-2017-q4-major-win32-arduino1.zip, treat the download path as a separate issue and investigate firewall interference as a hypothesis. The archive is only one required installation file, so replacing it alone does not establish that the complete Opta toolchain is installed.

FAQ

How do I fix Platform 'arduino:mbed_opta' not found in PLC IDE?

Copy the C:\Users\<username>\AppData\Local\T structure from a successful PLC IDE installation, including its working sketch.yaml. Preserve the destination computer's arduino-cli.yaml because its paths may be machine-specific.

Why does Opta work in Arduino IDE 2.x but not PLC IDE?

Arduino IDE 2.x uses Arduino15\staging\packages as its package cache, while the PLC IDE failure involved files under Local\T. Installing the Opta platform in one environment does not install or repair the other environment's profile and configuration.

Does copying the gcc-arm-none-eabi ZIP into the PLC IDE package folder install it?

No installation trigger for a manually copied archive is established by the evidence. The successful repair copied the complete working Local\T structure and corrected a sketch.yaml that was missing two sections.

Back to blog