Skip to content

Getting Started

CODESYS identifies the board through its device description file (.devdesc.xml).

  1. Download CODESYS_Control_Pico2.devdesc.xml.
  2. In CODESYS: Tools → Device Repository → Install…
  3. Select the downloaded .devdesc.xml file and confirm.

The device then appears in CODESYS Control devices as:

NamenXPico
Vendornexo S.r.l.
Device ID167e 2008
Version3.5.20.100
  1. File → New Project… → Standard project.
  2. As the device, pick nXPico.
  3. Under the device node, an IO module is added automatically (digital I/O, analog inputs, LED, temperature) — see IO Mapping.
  1. Connect the board over micro-USB. The CODESYS gateway runs over USB (it is COM1 inside the runtime), so no network is involved.
  2. In the device editor’s Communication Settings, scan and select the device.
  3. Login and download your application.

At the first login CODESYS asks you to create the administrator user: the board has no default users or passwords. See Users and Passwords.

The application is written to flash and starts automatically on power-up. The code, up to 1 MB, is written to flash sector by sector during the download. If the download is interrupted (for example by unplugging the USB cable), no application starts at the next boot.

The CODESYS runtime on nXPico has the following fixed limits:

SettingValue
Cyclic IEC tasks3 — a fourth one is refused with an error at download or at startup
Max task priority31
Default cycle time100 ms (can be set both higher and lower)
Code + constants (flash)1 MB, executed in place (XIP)
Data (variables)20 KB
I/O image1280 bytes input, 1280 bytes output
Online changeNot supported — full download only
Applications1 (Application)
Force / write variablesSupported
BreakpointsNot available — see below

Breakpoints. The board is protected by secure boot, and the chip’s protection disables debugging: the red dot appears in the IDE, but execution does not stop. Monitoring, writing and forcing variables remain available.

Next: IO Mapping, Serial Ports and ST Examples.