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

nRF Connect Error while setting up device : Cannot read property 'toLowerCase' of undefined

I'm currently working on u-blox Nina B302 and I'm trying out program examples from the nRF52 SDK on an evaluation board.
To try out BLE connections, I'm using the nRF Connect v3.0.0 software with the Bluetooth Low Energy application (v2.3.0) as recommended.
I downloaded my code onto the EVK board and launched the BLE app to test the connection.
The board appears in the 'Select Device' drop down list with the appropriate serial port (it is connected to my PC with USB), but when I select it, I get the following sequence of messages in the log:


Application data folder: C:\Users\...\AppData\Roaming\nrfconnect\pc-nrfconnect-ble

Validating connectivity firmware for device with serial number 000483065974...

Error while setting up device 000483065974: Cannot read property 'toLowerCase' of undefined

Device closed.

I could not find any solutions except to attempt to update the BLE app or the nRF Connect software, which I did, but the error remained.
I tried reinstalling both, but the result is the same.

EDIT:

As some of the replies/comments suggested, I tried installing previous versions (2.6.0 and 2.7.0) of the nRF Connect software, but the problem was that the BLE app requires you to update the nRF Connect software.
The pseudo-solution I found was simply to use the mobile nRF Connect app on my Android phone. I am able to connect to my U-Blox microcontroller and test out some of the examples from the SDK. I'm still having some issues with the Nordic UART Service, but I'll keep you posted for any changes.
Thanks for the advice, I hope for a final solution or a better work-around soon.

  • I'm getting the same error after upgrading to nRF Connect v3.0.0 and updating the plugins.  I see this error when using the PPK application.  I tried downgrading to nRF Connect v2.7.0 but didn't have any more success.  After deleting all the nRF Connect folders I could find, including those in Windows Users directory and .nrfconnect-apps/node_modules.

    Use what I think is a clean slate for installation, installing nRF Connect v2.7.0 and then installing the PPK plugin, the app reports that the PPK plugin is incompatible.  It appears as though it's installing the latest version of the PPK plugin (v2.2.0 official) which is incompatible with nRF Connect v2.7.0.

    I'm connecting to the PPK using a Segger JLink Plus, emulator firmware' 2019 Jun 14 19:25' installed from JLink version V646g.

    2019-07-05T06:57:36.878Z INFO Application data folder: C:\Users\ajp\AppData\Roaming\nrfconnect\pc-nrfconnect-ppk
    2019-07-05T06:57:36.882Z INFO App initialized
    2019-07-05T06:57:37.101Z DEBUG App pc-nrfconnect-ppk v2.2.0 official
    2019-07-05T06:57:37.101Z DEBUG App path: C:\Users\ajp\.nrfconnect-apps\node_modules\pc-nrfconnect-ppk
    2019-07-05T06:57:37.101Z DEBUG nRFConnect 3.0.0 is supported by the app (^3.0.0)
    2019-07-05T06:57:37.101Z DEBUG nRFConnect path: C:\Users\ajp\AppData\Local\Programs\nrfconnect\resources\app.asar
    2019-07-05T06:57:37.101Z DEBUG HomeDir: C:\Users\ajp
    2019-07-05T06:57:37.101Z DEBUG TmpDir: C:\Users\ajp\AppData\Local\Temp
    2019-07-05T06:57:37.104Z VERBOSE Could not fetch serial number for serial port at COM1
    2019-07-05T06:57:37.104Z VERBOSE Could not fetch serial number for serial port at COM3
    2019-07-05T06:57:39.645Z INFO Validating firmware for device with s/n 000600109037
    2019-07-05T06:57:39.649Z INFO PPK closed
    2019-07-05T06:57:40.428Z ERROR Error while setting up device 000600109037: Cannot read property 'toLowerCase' of undefined
    2019-07-05T06:57:40.429Z INFO Deselecting device
    2019-07-05T06:57:40.431Z INFO PPK closed

  • I have exactly the same error trying to run the power profiler kit. This is a new installation of NRF connect on a machine that did not have any nordic tools on it before. The device appears in the menu, but attempting to connect results in the Cannot read property 'toLowerCase' of undefined message. The versions are 

    • Power profiler 2.2.0
    • NRF Connect 3.0.0
  • Hello,

    I have forwarded your error to our nRF Desktop team. Will get back to you as soon as I have an answer from them. Note that we have entered summer vacation time, and some delay must be expected.

    Kind regards,
    Øyvind

  • I have the same issue when using the nRF Connect v2.7.0 or v3.0.0, but the v2.6.0 works correctly.

  • I have the same problem,... Please help I am using macOS nRF Connect 3.0.0 

    00:54:43.115
    Validating firmware for device with s/n 000063630424
    00:54:43.778
    Error while setting up device 000063630424: Cannot read property 'toLowerCase' of undefined
    00:54:43.778
    Deselecting device
    00:54:43.783
    Serial port is closed
Related