How nxp-mcuxpresso/mcux-freemaster works
Project type and purpose
• This is a middleware/driver “library” repository (part of the NXP MCUXpresso SDK) that implements the FreeMASTER communication protocol on an MCU.
• It exposes a layered architecture for transport-agnostic recorders, command interfaces, TSA (type-safe application tables), pipes, etc., over multiple physical interfaces (Serial, CAN, USB, Network, BDM/JTAG).
File structure
• src/common – Core protocol implementation, APIs, utilities, recorder, scope, TSA, pipes, etc.
• src/drivers – Transport-specific drivers organized by HAL/vendor (ampxsdk, dreg, mcuxsdk, zephyr).
• src/platforms – Platform headers and abstractions per MCU family or OS (bare-metal or Zephyr).
• src/support – Supplemental code (e.g., USB device descriptors).
• src/template – User-provided configuration templates for different targets.
• zephyr – Zephyr integration (CMakeLists, Kconfig, patches, module.yml).
• doc – User guide, API reference, examples.
README for additional insights
• Confirms this is the FreeMASTER driver delivery for MCUXpresso SDK.
• Mentions supported interfaces and points to overall SDK docs.
Detailed capturing of essential elements
• Don’t simply list folders; group them by role in the data path.
• Build-time flow: templates + platform headers + core + drivers → final binary.
• Zephyr integration path separately to show how it patches core and injects configs.