Skip to content

Getting Started

nXPico M runs the same CODESYS Control runtime as nXPico, with two additions of its own: the WS2812 RGB LED and the nRF9151 cellular modem, used through a transparent AT pipe (an IEC library for the modem is in development).

The board must already be running the CODESYS runtime before you open CODESYS.

  1. Download CODESYS_Control_Pico2_M.devdesc.xml.
  2. In CODESYS: Tools → Device Repository → Install…
  3. Select the file and confirm.
NamenXPico M
Vendornexo S.r.l.
Device ID167e 2008
Version3.5.20.111
  1. File → New Project… → Standard project.
  2. Pick nXPico M.
  3. An IO e Modem module appears under the device node: digital I/O, analog inputs, the RGB LED and the modem channels. See IO Mapping.

Connect over USB-C — the CODESYS gateway runs on USB. The modem plays no part in programming the device.

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

nXPiconXPico M
Digital I/O, analog inputsidenticalidentical
LEDBIT on GP25DWORD 0x00RRGGBB, WS2812 on GP23
TEMPERATURE channelpresentabsent (product decision)
Serial portsCOM2 + COM3COM3 only — UART0 belongs to the modem
Modem—6 I/O channels (AT pipe); 3 startup parameters; IEC library in development
X.509 functions— (nXPico W only)available

Same as the rest of the family:

SettingValue
Cyclic IEC tasks3 — a fourth one is refused with an error at download or at startup
Max task priority31
Default cycle time100 ms
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

Task priorities are honoured: a higher-priority task interrupts a lower-priority one that is running.

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: never a half-written one.

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, Modem, Serial Ports, X.509 and ST Examples.