This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BDS for SDK14 generate code RUN TIME ERROR

Hi Nordic,

I am trying to implement the Bluetooth Developer Studio Example to implement Cycling Power Profile with

Bluetooth Developer Studio version 1.1.3139

bds_plugin_1.3.0_nRF5_SDK_14.0.0

windows 10 

I download the bds_plugin_1.3.0_nRF5_SDK_14.0.0.zip and unzip

"Nordic Semiconductor nRF5 1.3.0 SDK 14.0" folder to

"\Bluetooth SIG\Bluetooth Developer Studio\Plugins"  which is my "Plugins" folder within the Bluetooth Developer Studio installation folder.

This what I understand from the instruction here.

Then I simply create a new project and drag the Cycling Power Profile and press generate code.

Select NORDIC SEMICONDUCTOR NRF5 1.3.0 SDK14.0 to generate

Then it shows that NORDIC SEMICONDUCTOR NRF5 1.3.0 SDK14.0 has cause RUN TIME ERROR with the following log.



Generating code...

Info       - Packaging Profile data for the plugin - Nordic Semiconductor nRF5 1.3.0 SDK 14.0
Info       - Loading the plugin Nordic Semiconductor nRF5 1.3.0 SDK 14.0
Info       - Validating the plugin Nordic Semiconductor nRF5 1.3.0 SDK 14.0
Info       - BDS version: 1.1.3139.0
Info       - Starting code generation...
Info       - WARNING: Requirement "c1" in Cycling Power Measurement is not defined. Adding field "bool c1".
Info       - WARNING: Requirement "c2" in Cycling Power Measurement is not defined. Adding field "bool c2".
Info       - WARNING: Requirement "c3" in Cycling Power Measurement is not defined. Adding field "bool c3".
Info       - WARNING: Requirement "c4" in Cycling Power Measurement is not defined. Adding field "bool c4".
Info       - WARNING: Requirement "c5" in Cycling Power Measurement is not defined. Adding field "bool c5".
Info       - WARNING: Requirement "c1" in Cycling Power Vector is not defined. Adding field "bool c1".
Info       - WARNING: Requirement "c2" in Cycling Power Vector is not defined. Adding field "bool c2".
Info       - WARNING: Requirement "c1" in Cycling Power Control Point is not defined. Adding field "bool c1".
Info       - WARNING: Requirement "c2" in Cycling Power Control Point is not defined. Adding field "bool c2".
Info       - Generating files for service Cycling Power...
Info       - Generating header file ble_cps.h
Info       - Generating code file ble_cps.c
Info       - FATAL!!! Exception occurred during data dumping...
Info       - TypeError: Cyclic reference detected.
Info       - An error occurred executing the plugin
Error      - Object has no method 'FormatTypeName'
Error      - Bluetooth.D3T.Common.Services.JavaScriptRuntimeException: An error occurred while Invoking the script method - RunPlugin ---> Jint.Runtime.JavaScriptException: Object has no method 'FormatTypeName'
   於 Jint.Native.Function.ScriptFunctionInstance.Call(JsValue thisArg, JsValue[] arguments)
   於 Jint.Engine.Invoke(String propertyName, Object thisObj, Object[] arguments)
   於 Bluetooth.D3T.Common.Services.JSIsolatedProgram.Invoke(String method, Object[] paramData)
   --- 內部例外狀況堆疊追蹤的結尾 ---
   於 Bluetooth.D3T.Common.Services.JSIsolatedProgram.<InvokeAsync>d__11.MoveNext()
--- 先前擲回例外狀況之位置中的堆疊追蹤結尾 ---
   於 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   於 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   於 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   於 Bluetooth.D3T.Common.Service.PluginEngine.<RunPluginInternal>d__29.MoveNext()

I try downloading it again, resetting my computer and also try using the last version which is plugin v.1.2.2 but the same thing happened.

Please let me know if I have done any step wrong and how to solve this issue.

Thanks in advance.

Parents Reply Children
No Data
Related