Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Gurux DLMS MeterStudio
  3. Gurux DLMS MeterStudio
  4. Build
  5. LPCXpresso54608
By Gurux Documentation , 1 December, 2026

Gurux DLMS MeterStudio

LPCXpresso54608

Select NXP LPCXpresso54608 (nxp-lpcxpresso54608) for the LPC54608J512 Cortex-M4 board. This export contains a standalone firmware project. Run the commands from the extracted project directory containing build.ps1 and platform/lpc-build.py.

1. Install the local tools

Install Python 3 and the arm-none-eabi variant of Arm GNU Toolchain. The toolchain must include GCC, Newlib, objcopy and size. Add its bin directory to PATH.

The build downloads the specific MCUXpresso SDK and CMSIS files listed in platform/lpc-sdk.json, verifies their SHA-256 hashes and caches them under build/sdk. The first build therefore needs Internet access. A separate complete SDK checkout is not required for this export.

2. Build locally

On Windows, in PowerShell:

python --version
arm-none-eabi-gcc --version
.\build.ps1 -Python python

If the compiler is outside PATH, pass its actual directory:

.\build.ps1 -Python python -GccBin C:/Tools/ArmGNU/bin

On Linux, with Python and Arm GNU tools in PATH:

python3 platform/lpc-build.py

The build produces build/meter.elf, build/meter.hex, build/meter.bin and build/meter.map. It inserts and verifies the LPC boot-vector checksum and checks the reset vector and application size. Use the resulting files after these checks have completed successfully.

3. Docker build

Prepare the updated Arm Docker image, which includes Python 3. From the extracted project directory, in Windows PowerShell:

docker run --rm --platform linux/amd64 `
  --mount "type=bind,source=$($PWD.Path),target=/project" `
  meterstudio-arm:local -Command "python3 platform/lpc-build.py"

On native Linux:

docker run --rm --platform linux/amd64 \
  --mount "type=bind,source=$(pwd),target=/project" \
  meterstudio-arm:local -Command 'python3 platform/lpc-build.py'

The project mount keeps the downloaded SDK files and build outputs after the container exits. Rebuild an older local Arm image if it does not contain Python.

4. Program and connect the board

Use the NXP board's LinkServer or MCUXpresso programming tools with the ELF/HEX load sections for this device. The generated build script only compiles; it does not program a connected board.

Application load sections end before 0x00070000. Preserve settings sectors 14 and 15 at 0x00070000 and 0x00078000; they contain the two logical settings banks. Use the map file when checking the final layout.

LPC-Link2 VCOM uses Flexcomm0 TX PIO0_30 and RX PIO0_29, at the configured baud rate, 8N1 and no flow control. Use the debug USB connector with CMSIS-DAP/VCOM probe firmware; DFU mode does not expose a serial port. Provision the selected association's password as described by the generated README before testing writable access.

This target currently supports Minimum/General, static Logical Name referencing, HDLC, None/Low authentication and Data/Register/Clock. Cross-compilation verifies the image format; board communication and persistent settings still need hardware verification.

Return to Build.

  • Log in or register to post comments
  • Create new account
  • Reset your password

Book navigation

  • Standard
  • Target
  • Referencing
  • Transport
  • Associations
  • Passwords
  • Security
  • Objects
  • Validation
  • ZIP
  • Build
    • ESP32-S3
    • STM32L433RC
    • EFR32MG13P
    • nRF9160
    • LPCXpresso54608
    • MKM35Z512VLL7
    • R5F10NMLDFB
    • Windows / Visual Studio
    • Linux / Makefile

Hire Us!

Latest Releases

  • Mon, 11/30/2026 - 14:21
    gurux.dlms.c 9.0.2611.3001
  • Thu, 11/26/2026 - 15:24
    gurux.dlms.c 9.0.2611.2601
  • Thu, 11/19/2026 - 10:57
    Gurux.DLMS.Python 1.0.204
  • Thu, 11/19/2026 - 10:12
    gurux.dlms.c 9.0.2611.1901
  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97

New forum topics

  • Landis E650 meter reading over DLMS
  • class_id = 40, version = 2, pushsetup Unparsed data frame
  • GXObisValueItem entries without MaskSize appear to be interpreted as bit flags
  • CheckedListBox incorrectly selects GXObisValueItem Value=0 for non-zero values
  • UIValueType=TextBox is rendered as CheckedListBox when Values are defined
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin