The latest development version of this page may be more current than this released 4.0.0 version.

DesignWare ARC MetaWare Development Toolkit (MWDT)

  1. You need to have ARC MWDT installed on your host.

  2. You need to have Zephyr SDK installed on your host.

    Note

    A Zephyr SDK is used as a source of tools like device tree compiler (DTC), QEMU, etc… Even though ARC MWDT toolchain is used for Zephyr RTOS build, still the GNU preprocessor & GNU objcopy might be used for some steps like device tree preprocessing and .bin file generation. We used Zephyr SDK as a source of these ARC GNU tools as well. To setup ARC GNU toolchain please use SDK Bundle (Full or Minimal) instead of manual installation of separate tarballs. It installs and registers toolchain and host tools in the system, that allows you to avoid toolchain related issues while building Zephyr.

  3. Set these environment variables:

    • Set ZEPHYR_TOOLCHAIN_VARIANT to arcmwdt.

    • Set ARCMWDT_TOOLCHAIN_PATH to the toolchain installation directory. MWDT installation provides METAWARE_ROOT so simply set ARCMWDT_TOOLCHAIN_PATH to $METAWARE_ROOT/../ (Linux) or %METAWARE_ROOT%\..\ (Windows).

    Tip

    If you have only one ARC MWDT toolchain version installed on your machine you may skip setting ARCMWDT_TOOLCHAIN_PATH - it would be detected automatically.

  4. To check that you have set these variables correctly in your current environment, follow these example shell sessions (the ARCMWDT_TOOLCHAIN_PATH values may be different on your system):

    # Linux:
    $ echo $ZEPHYR_TOOLCHAIN_VARIANT
    arcmwdt
    $ echo $ARCMWDT_TOOLCHAIN_PATH
    /home/you/ARC/MWDT_2023.03/
    
    # Windows:
    > echo %ZEPHYR_TOOLCHAIN_VARIANT%
    arcmwdt
    > echo %ARCMWDT_TOOLCHAIN_PATH%
    C:\ARC\MWDT_2023.03\