
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.