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. MKM35Z512VLL7
By Gurux Documentation , 1 December, 2026

Gurux DLMS MeterStudio

MKM35Z512VLL7

Select NXP MKM35Z512VLL7 (nxp-mkm35z512vll7). The generated project builds a Cortex-M0+ integration library for your board application. Its output is build/libmeter.a; startup code, the linker script and a board firmware image are supplied by the board application.

1. Configure and export

Choose the board's HDLC UART, TX and RX pins on the Target page, and the optional RS-485 enable pin and polarity when used. Validate, export and extract the project. Pin choices must match your actual board wiring.

The selected routing is recorded in generated/mcu_pin_config.c and generated/pin-configuration.json. The port/bit values are MCU identifiers rather than physical package-pin numbers.

2. Build locally

Install the arm-none-eabi variant of Arm GNU Toolchain, including GCC and the archiver. In Windows PowerShell, from the extracted project directory:

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

Replace the example path with your installation, or set ARM_GCC_BIN and run build.ps1 without the option. The script compiles for cortex-m0plus, Thumb and the soft-float ABI, then creates build/libmeter.a. A successful archive build completes the library compilation stage.

3. Docker build

Prepare the updated Arm Docker image. It includes the arm-none-eabi-ar.exe alias required by the exported script. In Windows PowerShell:

docker run --rm --platform linux/amd64 `
  --mount "type=bind,source=$($PWD.Path),target=/project" `
  meterstudio-arm:local -File ./build.ps1 -GccBin /opt/arm/bin

On native Linux:

docker run --rm --platform linux/amd64 \
  --mount "type=bind,source=$(pwd),target=/project" \
  meterstudio-arm:local -File ./build.ps1 -GccBin /opt/arm/bin

The archive remains in the mounted project's build directory. Rebuild an older Arm image if the script reports a missing archiver.

4. Link into the board application

Link build/libmeter.a into the native MKM35 board project using compatible processor and ABI options. Alternatively, integrate the files listed in generated/sources.txt into that project. Add dlms/include, generated and application to the include paths and force-include generated/cosem_objects.h in every participating C compilation unit so its feature flags and data layout agree with the library.

Implement MeterBoardOps from application/meter_board.h: board configuration, monotonic milliseconds, receive/transmit, optional RS-485 enable, persistent storage and password provisioning as required by the generated configuration. Apply the selected pin routing using the matching board SDK or register definitions. Call meter_board_start(&ops), then meter_board_poll() regularly from one foreground context. Buffer UART input in the board's ISR/DMA layer.

The board project also supplies clocks, startup, interrupt handlers, the linker layout and the programming procedure. Persistent settings require two logical 8 KiB banks in reserved nonvolatile memory, outside application load sections. Check the final board link map for RAM, stack and flash use before programming the linked firmware with the board's tools.

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