Workbench local compile syntax error

Despite my efforts for months, I have not been able to ever get my Particle Workbench to compile locally without an error. I reset my environment, cleaned my installation, uninstalled/installed toolchain, and reset my CLI installation, but still the same error. I backed up one toolchain version and experience the same error. If I cloud compile I can locally install the .bin file without an issue.

I am running Visual Studio Code 1.2.7.2 on a Windows 8 OS.

Compiled for a Argon.

The Particle: compile application (local) error is:

c:/users/mark/.particle/toolchains/gcc-arm/5.3.1/bin/../lib/gcc/arm-none-eabi/5.3.1/../../../../arm-none-eabi/bin/ld.exe:module_user_memory.ld:4: **syntax error**

The application code is an empty setup() and loop().

Particle: Audit Environment results:

{
    "username": "iengr4fun@gmail.com",
    "workspace": {
        "name": "gbjFilterExponential",
        "isWorkspace": false,
        "folders": [
            {
                "location": "d:\\Documents\\my_data\\computer\\particle\\argon_a\\gbjFilterExponential",
                "hasValidPath": true,
                "settings": {
                    "firmwareName": "deviceOS",
                    "firmwareVersion": "1.2.1-rc.3",
                    "targetDevice": "e00fce6851335ab78144be92",
                    "targetPlatform": "argon",
                    "compileButtonAction": "localAppDeviceOS",
                    "flashButtonAction": "localAppDeviceOS",
                    "disableWelcomeScreen": true,
                    "disableLocalCompilerDirtyCheck": false,
                    "enableVerboseLocalCompilerLogging": true
                },
                "files": [
                    ".vscode",
                    ".vscode\\arduino.json",
                    ".vscode\\launch.json",
                    ".vscode\\settings.json",
                    "project.properties",
                    "README.md",
                    "src",
                    "src\\gbjFilterExponential.cpp",
                    "src\\gbjFilterExponential.ino",
                    "target",
                    "target\\gbjFilterExponential.elf",
                    "target\\gbjFilterExponential.map",
                    "target\\module_user_memory.ld",
                    "target\\obj"
                ]
            }
        ]
    },
    "cli": {
        "binpath": "C:\\Users\\Mark\\.vscode\\extensions\\particle.particle-vscode-core-1.4.8\\src\\cli\\bin\\windows\\amd64\\particle.exe",
        "ok": true,
        "version": "2.3.0"
    },
    "localCompiler": {
        "ok": true,
        "dependencies": [
            {
                "id": "deviceOS@1.2.1-rc.3",
                "ok": true
            },
            {
                "id": "gcc-arm@5.3.1",
                "ok": true
            },
            {
                "id": "buildtools@1.0.3",
                "ok": true
            },
            {
                "id": "buildscripts@1.5.1",
                "ok": true
            },
            {
                "id": "openocd@0.10.0-particle.1",
                "ok": true
            },
            {
                "id": "deviceOS@1.0.1",
                "ok": true
            },
            {
                "id": "deviceOS@0.8.0-rc.25",
                "ok": true
            }
        ]
    },
    "platform": {
        "os": "windows",
        "type": "Windows_NT",
        "release": "6.3.9600",
        "arch": "x64",
        "path": {
            "key": "Path",
            "value": "C:\\Program Files\\Trend Micro\\AMSP\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Acer\\abFiles\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Users\\Mark\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\110\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\120\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\ManagementStudio\\;C:\\Program Files\\Git\\cmd;C:\\Users\\Mark\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Python 3.5\\;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;PATH=C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Acer\\abFiles\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Users\\Mark\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\110\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\120\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\ManagementStudio\\;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Users\\Mark\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Mark\\AppData\\Local\\particle\\bin;C:\\OpenSSL-Win32\\bin;C:\\Program Files\\heroku\\bin"
        },
        "homeDir": "C:\\Users\\Mark",
        "particleDir": "C:\\Users\\Mark\\.particle",
        "localCompilerToolchainDir": "C:\\Users\\Mark\\.particle\\toolchains"
    },
    "env": {
        "ALLUSERSPROFILE": "C:\\ProgramData",
        "AMD_ENTRYPOINT": "vs/workbench/node/extensionHostProcess",
        "APPDATA": "C:\\Users\\Mark\\AppData\\Roaming",
        "APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true",
        "asl.log": "Destination=file",
        "CommonProgramFiles": "C:\\Program Files\\Common Files",
        "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
        "CommonProgramW6432": "C:\\Program Files\\Common Files",
        "COMPUTERNAME": "MK_LAPTOP",
        "ComSpec": "C:\\Windows\\system32\\cmd.exe",
        "ELECTRON_RUN_AS_NODE": "1",
        "ERLANG_HOME": "C:\\Program Files\\erl9.2",
        "FP_NO_HOST_CHECK": "NO",
        "GOOGLE_API_KEY": "AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q",
        "HOMEDRIVE": "C:",
        "HOMEPATH": "\\Users\\Mark",
        "IVIROOTDIR32": "C:\\Program Files (x86)\\IVI Foundation\\IVI\\",
        "IVIROOTDIR64": "C:\\Program Files\\IVI Foundation\\IVI\\",
        "KMP_DUPLICATE_LIB_OK": "true",
        "LOCALAPPDATA": "C:\\Users\\Mark\\AppData\\Local",
        "LOGONSERVER": "\\\\MK_LAPTOP",
        "NIDAQmxSwitchDir": "C:\\Program Files (x86)\\National Instruments\\NI-DAQ\\Switch\\",
        "NIEXTCCOMPILERSUPP": "C:\\Program Files (x86)\\National Instruments\\Shared\\ExternalCompilerSupport\\C\\",
        "NUMBER_OF_PROCESSORS": "8",
        "OPENSSL_CONF": "C:\\OpenSSL-Win32\\bin\\openssl.cfg",
        "OS": "Windows_NT",
        "Path": "C:\\Program Files\\Trend Micro\\AMSP\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Acer\\abFiles\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Users\\Mark\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\110\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\120\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\ManagementStudio\\;C:\\Program Files\\Git\\cmd;C:\\Users\\Mark\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Python 3.5\\;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;PATH=C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Acer\\abFiles\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Users\\Mark\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\110\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\120\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\ManagementStudio\\;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Users\\Mark\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Mark\\AppData\\Local\\particle\\bin;C:\\OpenSSL-Win32\\bin;C:\\Program Files\\heroku\\bin",
        "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",
        "PIPE_LOGGING": "true",
        "PROCESSOR_ARCHITECTURE": "AMD64",
        "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 60 Stepping 3, GenuineIntel",
        "PROCESSOR_LEVEL": "6",
        "PROCESSOR_REVISION": "3c03",
        "ProgramData": "C:\\ProgramData",
        "ProgramFiles": "C:\\Program Files",
        "ProgramFiles(x86)": "C:\\Program Files (x86)",
        "ProgramW6432": "C:\\Program Files",
        "PSModulePath": "C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\PowerShell\\Modules\\",
        "PUBLIC": "C:\\Users\\Public",
        "RABBITMQ_NODENAME": "rabbit@localhost",
        "SESSIONNAME": "Console",
        "SystemDrive": "C:",
        "SystemRoot": "C:\\Windows",
        "TEMP": "C:\\Users\\Mark\\AppData\\Local\\Temp",
        "TMP": "C:\\Users\\Mark\\AppData\\Local\\Temp",
        "USERDOMAIN": "MK_laptop",
        "USERDOMAIN_ROAMINGPROFILE": "MK_laptop",
        "USERNAME": "Mark",
        "USERPROFILE": "C:\\Users\\Mark",
        "VBOX_MSI_INSTALL_PATH": "C:\\Program Files\\Oracle\\VirtualBox\\",
        "VERBOSE_LOGGING": "true",
        "VS140COMNTOOLS": "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\",
        "VSCODE_CWD": "C:\\Users\\Mark\\AppData\\Local\\Programs\\Microsoft VS Code",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_IPC_HOOK": "\\\\.\\pipe\\75f1a6d50ab41ca7677ab2906ce60b88-1.27.2-main-sock",
        "VSCODE_IPC_HOOK_EXTHOST": "\\\\.\\pipe\\vscode-ipc-16613751-0445-4d5c-af59-4f87b4a414a2-sock",
        "VSCODE_LOGS": "C:\\Users\\Mark\\AppData\\Roaming\\Code\\logs\\20200425T050156",
        "VSCODE_LOG_LEVEL": "undefined",
        "VSCODE_LOG_STACK": "false",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
        "VSCODE_NODE_CACHED_DATA_DIR_10356": "C:\\Users\\Mark\\AppData\\Roaming\\Code\\CachedData\\f46c4c469d6e6d8c46f268d1553c5dc4b475840f",
        "VSCODE_PID": "10356",
        "VXIPNPPATH64": "C:\\Program Files\\IVI Foundation\\VISA\\",
        "windir": "C:\\Windows"
    },
    "versions": {
        "http_parser": "2.7.0",
        "node": "8.9.3",
        "v8": "6.1.534.41",
        "uv": "1.15.0",
        "zlib": "1.2.11",
        "ares": "1.10.1-DEV",
        "modules": "57",
        "nghttp2": "1.25.0",
        "openssl": "1.0.2n"
    },
    "vscode": {
        "appName": "Visual Studio Code",
        "appRoot": "c:\\Users\\Mark\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "machineId": "1b3725c843441930eda7669cdc9335c537185c9a4f4f29c8dbe13e03fe3d5aa8",
        "sessionId": "6b47c5f4-6d6a-4fee-8daa-620e4a92520f1587805317181",
        "version": "1.27.2"
    },
    "extensions": [
        {
            "id": "ms-vscode.node-debug",
            "version": "1.27.6"
        },
        {
            "id": "ms-vscode.node-debug2",
            "version": "1.27.1"
        },
        {
            "id": "felixfbecker.php-intellisense",
            "version": "2.3.14"
        },
        {
            "id": "luggage66.VBScript",
            "version": "0.0.2"
        },
        {
            "id": "marus25.cortex-debug",
            "version": "0.1.21"
        },
        {
            "id": "ms-python.python",
            "version": "2019.1.0"
        },
        {
            "id": "ms-vscode.cpptools",
            "version": "0.21.0"
        },
        {
            "id": "particle.particle-vscode-core",
            "version": "1.4.8"
        },
        {
            "id": "particle.particle-vscode-pack",
            "version": "1.4.8"
        },
        {
            "id": "particle.particle-vscode-snippets",
            "version": "1.4.8"
        },
        {
            "id": "particle.particle-vscode-theme",
            "version": "1.4.8"
        },
        {
            "id": "vsciot-vscode.vscode-arduino",
            "version": "0.2.29"
        }
    ]
}

try this:

  • Update VSCode - current version is v1.44.2, you are running v1.27.2 (from VSCode’s main menu, select: Help > Check for Updates)
  • Update your Workbench extension - current version is v1.11.0, you are running v1.4.8 (docs)
  • Disable the Arduino extension [id: vsciot-vscode.vscode-arduino] (docs)
  • Delete the ./target directory within your project
  • Confirm your project.properties file does not include dependencies
  • Run the Particle: Reset Environment command (docs)
  • Restart VSCode

then

  1. Open your project (File > Open Folder)
  2. Click the deviceOS@1.2.1-rc.3 entry in the status bar and select a newer version of the Device OS - e.g. v1.5.0 (see screenshot below)
  3. Wait for the update Device OS dependency to install
  4. Run the Particle: Compile application (local) task (Terminal > Run Task, then click the Particle folder, and then select the task)

if that gets things working, you can try re-enabling the Arduino extension and re-compile to see if it causes any issues (it shouldn’t but best to rule it out explicitly).

hope it helps!

1 Like

I appreciate the detailed response, including hints on how to implement the changes and how to identify them.

The ./target folder continues to persist being created during every ‘Particle: Compile application (local)’. If undesirable, how do I stop it?

I followed every step except that I applied it to a new empty project that I created at the end. Several other issues have been resolved, but I still cannot local compile to to an error.
I repeated all of the steps you provided twice. Do I need to do a complete uninstall and re-install?

Error:

Generating the final ELF file...
mkdir -p d:/Documents/my_data/computer/particle/xenon_a/test2_gbjFilterExponential/target/1.5.0/xenon/
C:/Users/Mark/.particle/toolchains/gcc-arm/5.3.1/bin/arm-none-eabi-g++ -DSTM32_DEVICE -DnRF52840 -DNRF52840_XXAA -DPLATFORM_THREADING=1 -DPLATFORM_ID=14 -DPLATFORM_NAME=xenon -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00E -DUSBD_PID_CDC=0xC00E -g3 -gdwarf-2 -Os -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DSOFTDEVICE_PRESENT=1 -DS140 -DINCLUDE_PLATFORM=1 -DOPENTHREAD_PROJECT_CORE_CONFIG_FILE=\"openthread-config-project.h\" -DENABLE_FEM=1 -DNRF_802154_PROJECT_CONFIG=\"openthread-platform-config.h\" -DRAAL_SOFTDEVICE=1 -D_WIZCHIP_=W5500 -fno-builtin -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DLFS_CONFIG=lfs_config.h -DSYSTEM_VERSION_STRING=1.5.0 -DRELEASE_BUILD -Werror -I../../../user/inc -I../../../dynalib/inc -I../../../services/inc -I../../../third_party/nanopb/nanopb -I../../../hal/inc -I../../../hal/shared -I../../../hal/src/xenon -I../../../hal/src/nRF52840 -I../../../hal/src/armv7 -I../../../hal/src/nRF52840 -I../../../hal/src/nRF52840/lwip -I../../../hal/src/nRF52840/freertos -I../../../hal/src/nRF52840/openthread -I../../../hal/src/nRF52840/mbedtls -I../../../hal/src/nRF52840/littlefs -I../../../hal -I../../../hal/network/api -I../../../hal/network/lwip -I../../../hal/network/lwip/posix -I../../../hal/network/openthread -I../../../hal/network/lwip/wiznet -I../../../hal/network/ncp -I../../../hal/network/ncp/at_parser -I../../../third_party/lwip/lwip/src/include -I../../../third_party/freertos/freertos/FreeRTOS/Source/include -I../../../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/GCC/nrf52 -I../../../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/CMSIS/nrf52 -I../../../third_party/openthread/openthread/include -I../../../third_party/openthread/openthread/src/core -I../../../third_party/openthread/openthread/examples/platforms -I../../../third_party/openthread/openthread/radio -I../../../third_party/openthread/openthread/radio/hal -I../../../third_party/openthread/openthread/radio/rsch -I../../../third_party/openthread/openthread/radio/rsch/raal -I../../../third_party/openthread/openthread/radio/rsch/raal/softdevice -I../../../third_party/wiznet_driver/wiznet_driver/Ethernet -I../../../gsm0710muxer/gsm0710muxer/include -I../../../system/inc -I../../../third_party/miniz/miniz -I../../../rt-dynalib/inc -I../../../wiring/inc -I../../../modules/shared/nRF52840/inc -I../../../platform/shared/inc -I../../../third_party/nrf5_sdk -I../../../third_party/nrf5_sdk/nrf5_sdk/components/toolchain/cmsis/include -I../../../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx -I../../../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers -I../../../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/include -I../../../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../../../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/mdk -I../../../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../../../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/src/prs -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/util -I../../../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../../../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../../../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/crc32 -I../../../third_party/nrf5_sdk/nrf5_sdk/integration/nrfx/legacy -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log
-I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log/src -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/queue -I../../../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../../../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/mbr/nrf52840/headers -I../../../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140 -I../../../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../../../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fifo -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_fifo -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/strerror -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_flags -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc -I../../../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc/acm -I../../../third_party/nrf5_sdk/nrf5_sdk/components/ble/common -I../../../third_party/nrf5_sdk/nrf5_sdk/components/ble/nrf_ble_gatt -I../../../third_party/nrf5_sdk/nrf5_sdk/components/ble/ble_advertising -I../../../third_party/nrf5_sdk/nrf5_sdk/components/nfc/t2t_lib -I../../../third_party/nrf5_sdk/nrf5_sdk/components/nfc/platform -I../../../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/message -I../../../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/record -I../../../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/lauchapp -I../../../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/text -I../../../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/uri -I../../../third_party/nrf5_sdk/nrf5_sdk/external/nrf_cc310/include -I../../../third_party/nrf5_sdk/nrf5_sdk/external/utf_converter -I../../../third_party/littlefs/littlefs -I../../../platform/MCU/nRF52840/inc -I../../../modules/shared/nRF52840/inc/user-part -I. -MD -MP -MF d:/Documents/my_data/computer/particle/xenon_a/test2_gbjFilterExponential/target/1.5.0/xenon/test2_gbjFilterExponential_fi.elf.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0xD4000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,1,1502 -DMODULE_DEPENDENCY2=0,0,0 -D_GNU_SOURCE d:/Documents/my_data/computer/particle/xenon_a/test2_gbjFilterExponential/target/1.5.0/xenon//obj/./src/user_export.o d:/Documents/my_data/computer/particle/xenon_a/test2_gbjFilterExponential/target/1.5.0/xenon//obj/./src/module_info.o d:/Documents/my_data/computer/particle/xenon_a/test2_gbjFilterExponential/target/1.5.0/xenon//obj/./src/user_module.o d:/Documents/my_data/computer/particle/xenon_a/test2_gbjFilterExponential/target/1.5.0/xenon//obj/./src/newlib_stubs.o  --output d:/Documents/my_data/computer/particle/xenon_a/test2_gbjFilterExponential/target/1.5.0/xenon/test2_gbjFilterExponential_fi.elf -nostartfiles -Xlinker --gc-sections -L../../../build/arm/linker/nrf52840  -L../../../build/target/user/platform-14-m/test2_gbjFilterExponential/ -L../../../build/target/services-dynalib/platform-14-m/ -L../../../build/target/hal-dynalib/platform-14-m/ -L../../../build/target/system-dynalib/platform-14-m/ -L../../../build/target/rt-dynalib/platform-14-m/ -L../../../build/target/wiring/platform-14-m/ -L../../../build/target/communication-dynalib/platform-14-m/ -L../../../build/target/platform/platform-14-m/ -L../../../build/target/nrf5_sdk/platform-14-m/ -L../../../build/target/littlefs/platform-14-m/ -L../../../build/target/wiring_globals/platform-14-m/ -L../../../build/target/nrf5_sdk/platform-14-m -L../../../build/target/littlefs/platform-14-m -L../../../build/arm/linker -Wl,--whole-archive -luser -lhal-dynalib -lservices-dynalib -lsystem-dynalib -lrt-dynalib -lwiring -lcommunication-dynalib -lplatform -lwiring_globals -lnrf5_sdk -llittlefs -Wl,--no-whole-archive  -lnosys --specs=nano.specs -L../../../modules/xenon/system-part1 -L. -Ld:/Documents/my_data/computer/particle/xenon_a/test2_gbjFilterExponential/target/1.5.0/xenon/ -T./linker.ld -Wl,--defsym,USER_FIRMWARE_IMAGE_SIZE=0x20000 -Wl,--defsym,USER_FIRMWARE_IMAGE_LOCATION=0xD4000 -Wl,-Map,d:/Documents/my_data/computer/particle/xenon_a/test2_gbjFilterExponential/target/1.5.0/xenon/test2_gbjFilterExponential.map -Wl,--defsym,__STACKSIZE__=2048 -Wl,--defsym,__STACK_SIZE=2048
c:/users/mark/.particle/toolchains/gcc-arm/5.3.1/bin/../lib/gcc/arm-none-eabi/5.3.1/../../../../arm-none-eabi/bin/ld.exe:platform_user_ram.ld:1: **syntax error**
collect2.exe: error: ld returned 1 exit status
make[2]: *** [makefile:53: d:/Documents/my_data/computer/particle/xenon_a/test2_gbjFilterExponential/target/1.5.0/xenon/test2_gbjFilterExponential_fi.elf] Error 1
make[2]: Leaving directory '/cygdrive/c/Users/Mark/.particle/toolchains/deviceOS/1.5.0/modules/xenon/user-part'
make[1]: *** [../build/recurse.mk:12: modules/xenon/user-part] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/Mark/.particle/toolchains/deviceOS/1.5.0/main'
make: *** [C:\Users\Mark\.particle\toolchains\buildscripts\1.9.2\Makefile:54: compile-user] Error 2
The terminal process terminated with exit code: 2

Environment Audit:

{

    "username": "iengr4fun@gmail.com",

    "workspace": {

        "name": "test2_gbjFilterExponential",

        "isWorkspace": false,

        "folders": [

            {

                "location": "d:\\Documents\\my_data\\computer\\particle\\xenon_a\\test2_gbjFilterExponential",

                "hasValidPath": true,

                "settings": {

                    "firmwareName": "deviceOS",

                    "firmwareVersion": "1.5.0",

                    "targetDevice": "e00fce68890fc719bfe6c536",

                    "targetPlatform": "xenon",

                    "compileButtonAction": "localAppDeviceOS",

                    "flashButtonAction": "localAppDeviceOS",

                    "disableWelcomeScreen": true,

                    "disableDeviceOSOutdatedCheck": false,

                    "disableLocalCompilerDirtyCheck": false,

                    "enableVerboseLocalCompilerLogging": true,

                    "compileDefines": [],

                    "customDeviceOSLocation": "",

                    "maxAllowedToolchains": 4

                },

                "files": [

                    ".vscode",

                    ".vscode\\launch.json",

                    ".vscode\\settings.json",

                    "project.properties",

                    "README.md",

                    "src",

                    "src\\test2_gbjFilterExponential.cpp",

                    "src\\test2_gbjFilterExponential.ino",

                    "target",

                    "target\\1.5.0"

                ]

            }

        ]

    },

    "cli": {

        "binpath": "c:\\Users\\Mark\\.vscode\\extensions\\particle.particle-vscode-core-1.11.0\\src\\cli\\bin\\windows\\amd64\\particle.exe",

        "ok": true,

        "version": "2.3.0"

    },

    "localCompiler": {

        "ok": true,

        "dependencies": [

            {

                "id": "deviceOS@1.5.0",

                "ok": true

            },

            {

                "id": "gcc-arm@5.3.1",

                "ok": true

            },

            {

                "id": "buildtools@1.1.1",

                "ok": true

            },

            {

                "id": "buildscripts@1.9.2",

                "ok": true

            },

            {

                "id": "openocd@0.11.2-adhoc6ea4372.0",

                "ok": true

            },

            {

                "id": "deviceOS@1.3.0-rc.1",

                "ok": true

            }

        ]

    },

    "platform": {

        "os": "windows",

        "type": "Windows_NT",

        "release": "6.3.9600",

        "arch": "x64",

        "path": {

            "key": "Path",

            "value": "C:\\Program Files\\Trend Micro\\AMSP\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Acer\\abFiles\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Users\\Mark\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\110\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\120\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\ManagementStudio\\;C:\\Program Files\\Git\\cmd;C:\\Users\\Mark\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Python 3.5\\;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;PATH=C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Acer\\abFiles\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Users\\Mark\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\110\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\120\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\ManagementStudio\\;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Users\\Mark\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Mark\\AppData\\Local\\particle\\bin;C:\\OpenSSL-Win32\\bin;C:\\Program Files\\heroku\\bin"

        },

        "homeDir": "C:\\Users\\Mark",

        "particleDir": "C:\\Users\\Mark\\.particle",

        "localCompilerToolchainDir": "C:\\Users\\Mark\\.particle\\toolchains"

    },

    "env": {

        "ALLUSERSPROFILE": "C:\\ProgramData",

        "AMD_ENTRYPOINT": "vs/workbench/services/extensions/node/extensionHostProcess",

        "APPDATA": "C:\\Users\\Mark\\AppData\\Roaming",

        "APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true",

        "asl.log": "Destination=file",

        "CommonProgramFiles": "C:\\Program Files\\Common Files",

        "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",

        "CommonProgramW6432": "C:\\Program Files\\Common Files",

        "COMPUTERNAME": "MK_LAPTOP",

        "ComSpec": "C:\\Windows\\system32\\cmd.exe",

        "ELECTRON_RUN_AS_NODE": "1",

        "ERLANG_HOME": "C:\\Program Files\\erl9.2",

        "FP_NO_HOST_CHECK": "NO",

        "HOMEDRIVE": "C:",

        "HOMEPATH": "\\Users\\Mark",

        "IVIROOTDIR32": "C:\\Program Files (x86)\\IVI Foundation\\IVI\\",

        "IVIROOTDIR64": "C:\\Program Files\\IVI Foundation\\IVI\\",

        "KMP_DUPLICATE_LIB_OK": "true",

        "LOCALAPPDATA": "C:\\Users\\Mark\\AppData\\Local",

        "LOGONSERVER": "\\\\MK_LAPTOP",

        "NIDAQmxSwitchDir": "C:\\Program Files (x86)\\National Instruments\\NI-DAQ\\Switch\\",

        "NIEXTCCOMPILERSUPP": "C:\\Program Files (x86)\\National Instruments\\Shared\\ExternalCompilerSupport\\C\\",

        "NUMBER_OF_PROCESSORS": "8",

        "OPENSSL_CONF": "C:\\OpenSSL-Win32\\bin\\openssl.cfg",

        "OS": "Windows_NT",

        "Path": "C:\\Program Files\\Trend Micro\\AMSP\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Acer\\abFiles\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Users\\Mark\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\110\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\120\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\ManagementStudio\\;C:\\Program Files\\Git\\cmd;C:\\Users\\Mark\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Python 3.5\\;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;PATH=C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Acer\\abFiles\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Users\\Mark\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\110\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\120\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\Binn\\ManagementStudio\\;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\IVI\\bin;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Users\\Mark\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Mark\\AppData\\Local\\particle\\bin;C:\\OpenSSL-Win32\\bin;C:\\Program Files\\heroku\\bin",

        "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",

        "PIPE_LOGGING": "true",

        "PROCESSOR_ARCHITECTURE": "AMD64",

        "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 60 Stepping 3, GenuineIntel",

        "PROCESSOR_LEVEL": "6",

        "PROCESSOR_REVISION": "3c03",

        "ProgramData": "C:\\ProgramData",

        "ProgramFiles": "C:\\Program Files",

        "ProgramFiles(x86)": "C:\\Program Files (x86)",

        "ProgramW6432": "C:\\Program Files",

        "PSModulePath": "C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\Tools\\PowerShell\\Modules\\",

        "PUBLIC": "C:\\Users\\Public",

        "RABBITMQ_NODENAME": "rabbit@localhost",

        "SESSIONNAME": "Console",

        "SystemDrive": "C:",

        "SystemRoot": "C:\\Windows",

        "TEMP": "C:\\Users\\Mark\\AppData\\Local\\Temp",

        "TMP": "C:\\Users\\Mark\\AppData\\Local\\Temp",

        "USERDOMAIN": "MK_laptop",

        "USERDOMAIN_ROAMINGPROFILE": "MK_laptop",

        "USERNAME": "Mark",

        "USERPROFILE": "C:\\Users\\Mark",

        "VBOX_MSI_INSTALL_PATH": "C:\\Program Files\\Oracle\\VirtualBox\\",

        "VERBOSE_LOGGING": "true",

        "VS140COMNTOOLS": "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\",

        "VSCODE_CWD": "C:\\Users\\Mark\\AppData\\Local\\Programs\\Microsoft VS Code",

        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",

        "VSCODE_IPC_HOOK": "\\\\.\\pipe\\75f1a6d50ab41ca7677ab2906ce60b88-1.44.2-main-sock",

        "VSCODE_IPC_HOOK_EXTHOST": "\\\\.\\pipe\\vscode-ipc-66f72cfb-6aed-4c5c-9043-be99d7da37d1-sock",

        "VSCODE_LOGS": "C:\\Users\\Mark\\AppData\\Roaming\\Code\\logs\\20200426T070455",

        "VSCODE_LOG_STACK": "false",

        "VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}",

        "VSCODE_NODE_CACHED_DATA_DIR": "C:\\Users\\Mark\\AppData\\Roaming\\Code\\CachedData\\ff915844119ce9485abfe8aa9076ec76b5300ddd",

        "VSCODE_PID": "11488",

        "VXIPNPPATH64": "C:\\Program Files\\IVI Foundation\\VISA\\",

        "windir": "C:\\Windows"

    },

    "versions": {

        "node": "12.8.1",

        "v8": "7.8.279.23-electron.0",

        "uv": "1.30.1",

        "zlib": "1.2.11",

        "brotli": "1.0.7",

        "ares": "1.15.0",

        "modules": "75",

        "nghttp2": "1.39.2",

        "napi": "4",

        "llhttp": "1.1.4",

        "http_parser": "2.8.0",

        "openssl": "1.1.0",

        "cldr": "35.1",

        "icu": "64.2",

        "tz": "2019b",

        "unicode": "12.1",

        "electron": "7.1.11"

    },

    "vscode": {

        "appName": "Visual Studio Code",

        "appRoot": "c:\\Users\\Mark\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",

        "machineId": "1b3725c843441930eda7669cdc9335c537185c9a4f4f29c8dbe13e03fe3d5aa8",

        "sessionId": "0f5caef5-949a-45df-b419-b96022c233f41587899096645",

        "version": "1.44.2"

    },

    "extensions": [

        {

            "id": "ms-vscode.js-debug-companion",

            "version": "0.0.4"

        },

        {

            "id": "ms-vscode.node-debug",

            "version": "1.44.5"

        },

        {

            "id": "ms-vscode.node-debug2",

            "version": "1.42.2"

        },

        {

            "id": "ms-vscode.references-view",

            "version": "0.0.50"

        },

        {

            "id": "marus25.cortex-debug",

            "version": "0.3.6"

        },

        {

            "id": "ms-vscode.cpptools",

            "version": "0.27.0"

        },

        {

            "id": "particle.particle-vscode-core",

            "version": "1.11.0"

        },

        {

            "id": "particle.particle-vscode-pack",

            "version": "1.11.0"

        },

        {

            "id": "particle.particle-vscode-snippets",

            "version": "1.11.0"

        },

        {

            "id": "particle.particle-vscode-theme",

            "version": "1.11.0"

        }

    ]

}

The ./target folder continues to persist being created during every ‘Particle: Compile application (local)’.

that’s expected behavior :+1:

Do I need to do a complete uninstall and re-install?

no, after updating all the things you’ve pretty much already done that :+1:

I still cannot local compile

can you provide the full compiler log output? you may need to increase VSCode’s default “Scrollback” buffer size - File > Preferences > Settings then search for “terminal.integrated.scrollback” and add a few zeros to the buffer length.

I’m sending this to you via email because of the size of the output file. Please confirm receipt.

(Attachment 20200427 workbench compile application (local) output.txt is missing)

I am unable to send the output as a text attachment. Trying DropBox link:

https://www.dropbox.com/s/wr6hkm6ko3r8dk4/20200427%20workbench%20compile%20application%20%28local%29%20output.txt?dl=0

Unfortunately some attachments in your email message to [“particle+806344652635854492d0da9b749e3e97@discoursemail.com”] (titled Re: [Particle] [Developer Tools/Particle Workbench] Workbench local compile syntax error) were rejected.

Details:
20200427 workbench compile application (local) output.txt: Sorry, the file you are trying to upload is not authorized (authorized extensions: jpg, jpeg, png, gif).

DropBox link to output.

DropBox link to the output:

https://www.dropbox.com/s/wr6hkm6ko3r8dk4/20200427%20workbench%20compile%20application%20%28local%29%20output.txt?dl=0

1 Like

couple of quick observations / etc:

  • you are running the Particle: Compile application & DeviceOS (local) task instead of the requested task: Particle: Compile application (local)
  • the settings you shared (as part of the audit report) show you targeting xenon but the build log you shared has you targeting argon

can you try opening the file located here:

C:/Users/Mark/.particle/toolchains/deviceOS/1.5.0/modules/shared/nRF52840/build_linker_script.mk

…and adding this line to the end:

@echo "_user_part_static_ram_size = $(USER_SRAM_LENGTH);"

…such that the last lines look like:

all:
	@echo Creating $(MODULE_USER_MEMORY_FILE_GEN) ...
	$(call WRITE_FILE_APPEND, "$(MODULE_USER_MEMORY_FILE_GEN)",_user_part_static_ram_size = $(USER_SRAM_LENGTH);)
	@echo "_user_part_static_ram_size = $(USER_SRAM_LENGTH);"

with that in place, please run:

  1. Particle: Clean application & DeviceOS (local)
  2. Particle: Compile application (local)

…and share the resulting log :pray::+1:

I have run both ‘Particle: Compile application & DeviceOS (local)’
and ‘Particle: Compile application (local)’ many time sprior to ‘Particle: Compile application (local)’. Same error result.

I have been attempting local compile on both a xenon and an argon with empty scripts (only because I have been doing work on each). I’ll stick to one.

I implemented the _user_part_static_ram_size change and ran ‘Particle: Clean application & DeviceOS (local)’ and then ‘Particle: Compile application (local)’. Below are DropBox links for the logs.

Particle: clean app & deviceOS (local)

Particle compile app (local)

:joy::man_facepalming:

ok, we figured it out :point_right: grep .data :x:

we’ll get a proper fix in place for the next Device OS release but in the meantime, can you try moving your project into a directory without “data” in its filename / path?

specifically the my_data directory in:

d:/Documents/my_data/computer/particle/xenon_a/blink

…seems to be causing the issue.

edit:

here’s the PR for the fix :point_right: https://github.com/particle-iot/device-os/pull/2090

I moved everything under ‘My Documents’. D:\Documents\Particle\xenon_a\

Loaded Workbench and executed ‘Clean application and DeviceOS (local)’. Then ran ‘Compile application (local)’ and still received an error. Deleted the ‘target’ folder. I performed a compile again and the 2nd time it ran without an error! :slight_smile: I tried other project folders and my Argon device as well. As long as I first delete the ‘target’ folder, then the ‘Compile application (local)’ works without incident.

I really appreciate your persistence and patience. I hope Particle pays you well because you are worth it.

1 Like

the 2nd time it ran without an error!

woohoo! :blush:

As long as I first delete the ‘target’ folder, then the ‘Compile application (local)’ works without incident.

ah, yeah. i should have called that out. glad you tracked it down :+1:

really appreciate your persistence and patience

likewise! really sorry for the bumps. thanks for the report and sticking with us as we rediscover the power of grep :grimacing::joy::sob: