Hi,
The Bluetooth Developer Studio plugin fails to generate proper CP profile.
We use the last BDS version (1.1.3139) and the last version on the plugin (1.3)
Here the stacktrace:
20:01 - [Code Generator] [I] - Packaging Profile data for the plugin - Nordic Semiconductor nRF5 1.3.0 SDK 14.0
20:01 - [Code Generator] [I] - Loading the plugin Nordic Semiconductor nRF5 1.3.0 SDK 14.0
20:01 - [Code Generator] [I] - Validating the plugin Nordic Semiconductor nRF5 1.3.0 SDK 14.0
20:01 - [Code Generator] [I] - BDS version: 1.1.3139.0
20:01 - [Code Generator] [I] - Starting code generation...
20:01 - [Code Generator] [I] - WARNING: Requirement "c1" in Cycling Power Measurement is not defined. Adding field "bool c1".
20:01 - [Code Generator] [I] - WARNING: Requirement "c2" in Cycling Power Measurement is not defined. Adding field "bool c2".
20:01 - [Code Generator] [I] - WARNING: Requirement "c3" in Cycling Power Measurement is not defined. Adding field "bool c3".
20:01 - [Code Generator] [I] - WARNING: Requirement "c4" in Cycling Power Measurement is not defined. Adding field "bool c4".
20:01 - [Code Generator] [I] - WARNING: Requirement "c5" in Cycling Power Measurement is not defined. Adding field "bool c5".
20:01 - [Code Generator] [I] - WARNING: Requirement "c1" in Cycling Power Vector is not defined. Adding field "bool c1".
20:01 - [Code Generator] [I] - WARNING: Requirement "c2" in Cycling Power Vector is not defined. Adding field "bool c2".
20:01 - [Code Generator] [I] - WARNING: Requirement "c1" in Cycling Power Control Point is not defined. Adding field "bool c1".
20:01 - [Code Generator] [I] - WARNING: Requirement "c2" in Cycling Power Control Point is not defined. Adding field "bool c2".
20:01 - [Code Generator] [I] - Generating files for service Cycling Power...
20:01 - [Code Generator] [I] - Generating header file ble_cps.h
20:01 - [Application] [V] - Creating Plugin File ble_cps.h
20:01 - [Code Generator] [I] - Generating code file ble_cps.c
20:01 - [Code Generator] [I] - FATAL!!! Exception occurred during data dumping...
20:01 - [Code Generator] [I] - TypeError: Cyclic reference detected.
20:01 - [Code Generator] [I] - An error occurred executing the plugin
20:01 - [Code Generator] [E] - Object has no method 'FormatTypeName'
20:01 - [Code Generator] [E] - Bluetooth.D3T.Common.Services.JavaScriptRuntimeException: An error occurred while Invoking the script method - RunPlugin ---> Jint.Runtime.JavaScriptException: Object has no method 'FormatTypeName'
at Jint.Native.Function.ScriptFunctionInstance.Call(JsValue thisArg, JsValue[] arguments)
at Jint.Engine.Invoke(String propertyName, Object thisObj, 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__11.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__29.MoveNext()
I tried with the previous version of the plugin (1.2.4) and another issue appears.
The issue seems not new (see here: devzone.nordicsemi.com/.../ ), but the new version of the plugin doesn't fix it.
We really need those files for the sdk 14.
Anyone can tell me how to fix that or generate the files for me ?
Thanks