This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TI-BDS-PLUGIN 1.0.3 Beta error when generating code

I am trying to use the TI-BDS-PLUGIN Version 1.0.3 Beta in BDS 1.0.2043 and am getting and error when generating code. I have attached the error log and the BDS project file. 
Generating code... Info - Packaging Profile data for the plugin - Texas Instruments CC26xx BLE SDK v2.1 GATT Server plugin Info - Loading the plugin Texas Instruments CC26xx BLE SDK v2.1 GATT Server plugin Info - Validating the plugin Texas Instruments CC26xx BLE SDK v2.1 GATT Server plugin Info - Service name: Device Configuration Info - Processing char: channel Info - 1 fields in char. Info - Total length calculated to: 1 bytes Info - --------------- Info - Generated header file: Fx_TI/Device_Configuration.h Info - Generated code file: Fx_TI/Device_Configuration.c Info - Service name: fx System Configuration Service Info - Processing char: S2 properties Info - 4 fields in char. Info - Total length calculated to: 13 bytes Info - Processing char: S3 properties Info - 4 fields in char. Info - Total length calculated to: 13 bytes Info - Processing char: S4 properties Info - 4 fields in char. Info - Total length calculated to: 13 bytes Info - Processing char: S5 properties Info - 4 fields in char. Info - Total length calculated to: 13 bytes Info - Processing char: S1 properties Info - 4 fields in char. Info - Total length calculated to: 13 bytes Info - --------------- Info - Generated header file: Fx_TI/fx_System_Configuration_Service.h Info - Generated code file: Fx_TI/fx_System_Configuration_Service.c Info - Service name: fx settings service Info - --------------- Info - Generated header file: Fx_TI/fx_settings_service.h Info - Generated code file: Fx_TI/fx_settings_service.c Info - Service name: fx telemetry live service Info - Processing char: GPS Info - 3 fields in char. Info - Total length calculated to: 10 bytes Info - Processing char: accelerometer Info - No field length information available. Using length = 1. Info - 0 fields in char. Info - Total length calculated to: 1 bytes Info - Processing char: altimeter Info - No field length information available. Using length = 1. Info - 0 fields in char. Info - Total length calculated to: 1 bytes Info - --------------- Info - Generated header file: Fx_TI/fx_telemetry_live_service.h Info - Generated code file: Fx_TI/fx_telemetry_live_service.c Info - Service name: battery service Info - Processing char: voltage Info - 1 fields in char. Info - Total length calculated to: 2 bytes Info - --------------- Info - Generated header file: Fx_TI/battery_service.h Info - Generated code file: Fx_TI/battery_service.c Info - Service name: fx telemetry log service Info - Processing char: flights information Info - 2 fields in char. Info - Total length calculated to: 2 bytes Info - Processing char: bulk Info - No field length information available. Using length = 1. Info - 0 fields in char. Info - Total length calculated to: 1 bytes Info - --------------- Info - Generated header file: Fx_TI/fx_telemetry_log_service.h Info - Generated code file: Fx_TI/fx_telemetry_log_service.c Info - An error occurred executing the plugin Error - Error - Bluetooth.D3T.Common.Services.JavaScriptRuntimeException: An error occurred while Invoking the script method - RunPlugin ---> Jint.Runtime.JavaScriptException at Jint.Native.Function.ScriptFunctionInstance.Call(JsValue thisArg, JsValue[] arguments) at Jint.Engine.Invoke(String propertyName, Object thisObj, Object[] arguments) at Jint.Engine.Invoke(String propertyName, Object[] arguments) at Bluetooth.D3T.Common.Services.JSIsolatedProgram.Invoke(String method, Object[] paramData) --- End of inner exception stack trace --- at Bluetooth.D3T.Common.Services.JSIsolatedProgram.<InvokeAsync>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Bluetooth.D3T.Common.Service.PluginEngine.<RunPluginInternal>d__4a.MoveNext()

<?xml version="1.0"?>
<BDSProject xmlns:xsi="www.w3.org/.../XMLSchema-instance" xmlns:xsd="www.w3.org/.../XMLSchema" Name="fx" LastModified="2015-10-21T06:26:33.6691703-07:00">
  <Namespace>org.favionics.</Namespace>
  <BaseGuid>7c7e83db-d9b5-4ad1-ab44-ec6ccb0e3406</BaseGuid>
  <Profile Name="org.favionics.profile.fx" XMLFile="Profiles\org.favionics.profile.fx.xml" />
  <ServiceFiles>
    <Service UID="83d54a44-5942-4510-af55-cd7a6c7e5b99" XMLFile="Services\org.favionics.service.device_configuration.xml" UUIDMode="Short">
      <CharacteristicFiles>
        <Characteristic UID="f210103d-31e0-4a61-8b45-2cb3273ac0a2" XMLFile="Characteristics\org.favionics.characteristic.channel.xml" UUIDMode="Short">
          <DescriptorFiles />
        </Characteristic>
      </CharacteristicFiles>
    </Service>
    <Service UID="611a6e38-c4fc-43e1-8f46-4151e2a6784e" XMLFile="Services\org.favionics.service.fx_system_configuration_service.xml" UUIDMode="Short">
      <CharacteristicFiles>
        <Characteristic UID="12a95572-0fee-4fcc-ba93-01ff4a410bd1" XMLFile="Characteristics\org.favionics.characteristic.s2_properties.xml" UUIDMode="Short">
          <DescriptorFiles />
        </Characteristic>
        <Characteristic UID="0fb114a7-9a07-4197-a402-d090b45a6397" XMLFile="Characteristics\org.favionics.characteristic.s3_properties.xml" UUIDMode="Short">
          <DescriptorFiles />
        </Characteristic>
        <Characteristic UID="509848ac-25e5-46e9-b969-b0100c62cfbd" XMLFile="Characteristics\org.favionics.characteristic.s4_properties.xml" UUIDMode="Short">
          <DescriptorFiles />
        </Characteristic>
        <Characteristic UID="44420c19-8bb2-4889-8911-0751f9c4762d" XMLFile="Characteristics\org.favionics.characteristic.s5_properties.xml" UUIDMode="Short">
          <DescriptorFiles />
        </Characteristic>
        <Characteristic UID="5ceba867-abd6-4050-99ac-3bdce3010995" XMLFile="Characteristics\org.favionics.characteristic.s1_properties.xml" UUIDMode="Short">
          <DescriptorFiles />
        </Characteristic>
      </CharacteristicFiles>
    </Service>
    <Service UID="f01725bb-6c5c-4754-8864-3293cf478487" XMLFile="Services\org.favionics.service.fx_settings_service.xml" UUIDMode="Short">
      <CharacteristicFiles />
    </Service>
    <Service UID="592a103f-08d3-4d55-a8de-ea64977921fd" XMLFile="Services\org.favionics.service.fx_telemetry_live_service.xml" UUIDMode="Short">
      <CharacteristicFiles>
        <Characteristic UID="3e6457b5-39ab-4683-8b54-31ef929ac94d" XMLFile="Characteristics\org.favionics.characteristic.gps.xml" UUIDMode="Short">
          <DescriptorFiles>
            <Descriptor UID="27f1993a-083f-422b-83ae-c7ab694c64ee" XMLFile="Descriptors\org.favionics.descriptor.new_descriptor.xml" UUIDMode="Short" />
          </DescriptorFiles>
        </Characteristic>
        <Characteristic UID="d1ad0ae3-52c0-48e8-a1fa-6300fe0b0779" XMLFile="Characteristics\org.favionics.characteristic.accelerometer.xml" UUIDMode="Short">
          <DescriptorFiles />
        </Characteristic>
        <Characteristic UID="771c0864-e666-4c9f-adc3-bd97fad9af73" XMLFile="Characteristics\org.favionics.characteristic.altimeter.xml" UUIDMode="Short">
          <DescriptorFiles />
        </Characteristic>
      </CharacteristicFiles>
    </Service>
    <Service UID="56f1b18a-d465-4acd-aabd-2ea5732b4900" XMLFile="Services\org.favionics.service.battery_service.xml" UUIDMode="Short">
      <CharacteristicFiles>
        <Characteristic UID="72966bff-5fec-4c9b-aa30-5f07650f64c8" XMLFile="Characteristics\org.favionics.characteristic.voltage.xml" UUIDMode="Short">
          <DescriptorFiles />
        </Characteristic>
      </CharacteristicFiles>
    </Service>
    <Service UID="a0038b30-0ec9-4382-8a42-fe05f8ccd976" XMLFile="Services\org.favionics.service.fx_telemetry_log_service.xml" UUIDMode="Short">
      <CharacteristicFiles>
        <Characteristic UID="184bdcd8-b99b-4766-8303-665bd16d914e" XMLFile="Characteristics\org.favionics.characteristic.flights_information.xml" UUIDMode="Short">
          <DescriptorFiles />
        </Characteristic>
        <Characteristic UID="fe19b9e9-bde2-4a73-8ab8-03f13e502534" XMLFile="Characteristics\org.favionics.characteristic.bulk.xml" UUIDMode="Short">
          <DescriptorFiles />
        </Characteristic>
      </CharacteristicFiles>
    </Service>
  </ServiceFiles>
  <Workbench>
    <Client Name="Virtual Client" />
    <Peripheral Name="Virtual Server" />
  </Workbench>
  <SavePath>C:\ti\shared\ble\fx.bds</SavePath>
  <PublishData>
    <Category />
    <LastPublishDate>0</LastPublishDate>
    <Annotations>true</Annotations>
    <Emulation>true</Emulation>
  </PublishData>
</BDSProject>

  • Hi,

    Thanks for bringing this to our attention. It seems BDS introduced a 'breaking change' between the latest release candidate and the actual release.

    It's simply that  in this version, GAP data is not available to the plugin if the GAP dialog has not been opened before generation. A workaround is therefore to open and close the GAP dialog before you generate the output. The GAP button is in the upper right corner of the profile designer.

    Version 1.0.4 is being released as we speak of course, and should be up later today.

    Again, thank you for the feedback.

    Best regards,
    Aslak

  • Tested with 1.0.4 and all works now. Thanks for the quick fix!