Configuring nRF5340 DK

Hi,

How to configure nRF5340 DK for evaluation. 

While I tried using nRF connect for desktop and while using "Quick start" tool, it only stays in the searching for device window and doesn't show any progress from there.

the tool shows a window like this and stays there. 
And while using PROGRAMMER application, it shows the device is connected, "Device is loaded and ready for further operation". But where can I find the hex files to program the device.

In short, I want to configure the device in different modes for evaluation and measure the Current consumption and RF performance of the device in those states.

please help me configure the device.

Regards,

Arun

Parents
  • Hi Arun,

    This app is currently only support for the nRF91 series. This is why your nRF5340 DK shows up as unsupported.

    To get started, I recommend going through the SDK fundamentals course at https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/. You will need to install the SDK to build and configure the hex files you want

    Best regards,

    Vidar

  • Hi Vidar,

    Aint the programmer come as part of the nRF Connect? 
    on opening programmer from nRF Connect I'm getting the below window. 

    Also while trying to use the "Bluetooth Low Energy" Tool in nRF connect, I'm getting this below window saying, "Error occured when opening port. Errorcode: NRF_ERROR_TIMEOUT (0xd)",

    How to resolve this and execute programs to configure the chip in BLE modes?

    Basically, what I'm looking for is to configure the chip's BT/BLE modes at first.

    Regards,

    Arun

  • Hi Vidar,

    I was not able to find the data sheet of nRF5340 in any of the documents. Can you please guide me where I can find the expected numbers for these BLE modes.

    Also please guide me to the examples with which I can configure these modes.

    Regards,

    Arun

  • Hi Vidar,

    Considering the above cases I've asked you on configuring,

    1, sleep
    I didn't find any example in the nRF connect in VS code, please help me configure sleep as mentioned in the product specification.


     2, BLE Advertisement
    I've only find one example,  "BLE multiple advertising sets example" that configures advertising. But the problem is, here it is configuring in such a way that connectable and unconnectable advertisings are coming together in a small interval between the intervals of advertisement that we've set. 
    I've tried disabling one case in main.c but it was not working. how to configure both connectable and unconnectable separate cases.

    3, BLE Scan

    Though I'm a little doubtful about the state this example gives. considering this scan in main.c, changing the scan interval is not working whether are changing scan window is giving desired change.

    4,BLE Connected
    this may be possible from the advertisement example and connecting usi ng nRF connect for smartphone, correct me if I'm wrong and help me configure this too.

    5, BT Tx and Rx
    yet to check, please help me configure these too.

    These are the state of my trials, please direct me in configuring these modes.

    Regards,

    Arun

  • Hi Arun,

    arun12 said:
    1, sleep
    I didn't find any example in the nRF connect in VS code, please help me configure sleep as mentioned in the product specification.

    You can select one of the BLE peripheral samples, such as peripheral_lbs, and comment out the 'advertising start'. Additionally, add CONFIG_SERIAL=n to the prj.conf. The application should then remain in the idle thread (i.e., sleep).

    arun12 said:
     2, BLE Advertisement
    I've only find one example,  "BLE multiple advertising sets example" that configures advertising. But the problem is, here it is configuring in such a way that connectable and unconnectable advertisings are coming together in a small interval between the intervals of advertisement that we've set. 
    I've tried disabling one case in main.c but it was not working. how to configure both connectable and unconnectable separate cases.

    I suggest you use the peripheral_lbs sample for this as well. You can change the advertising parameters as you wish.

    arun12 said:

    3, BLE Scan

    Though I'm a little doubtful about the state this example gives. considering this scan in main.c, changing the scan interval is not working whether are changing scan window is giving desired change.

    Could you please show how it's not working? E.g., with a picture of the PPK2 plot.

    arun12 said:
    4,BLE Connected
    this may be possible from the advertisement example and connecting usi ng nRF connect for smartphone, correct me if I'm wrong and help me configure this too.

    Yes, you can use the nRF connect app on your phone to connect to your peripheral application.

    arun12 said:
    yet to check, please help me configure these too.

    You can test sending and receiving data with the nRF connect app.

  • Hi Vidar,

    Can you help me find a reference document. I'm only seeing current numbers in the product specification which only tells about sleep numbers.

    where can I find the current values of the other mode mentioned here. I didn't find the data sheet of nRF5340 in the documents session.

    Regards,

    Arun

  • Hi Arun,

    Please refer to the 'Current consumption' chapter of the PS. 

    Best regards,

    Vidar

Reply Children
  • Hi Vidar, 
    one more doubt I was trying to configure the connection interval in periheral_lbs example in gap.h file.

    but it is not setting the connection interval right.

    #define BT_GAP_INIT_CONN_INT_MIN                0x0320  /* 1s    */
    #define BT_GAP_INIT_CONN_INT_MAX                0x0320 /* 1s    */
    how to set the connection interval to 1?

    by setting below parameters, I was able to set advertisement to 1second,\

    #define BT_GAP_ADV_FAST_INT_MIN_1               0x0640  /* 1s    */
    #define BT_GAP_ADV_FAST_INT_MAX_1               0x0640  /* 1s    */
    #define BT_GAP_ADV_FAST_INT_MIN_2               0x0640  /* 1000 ms   */
    #define BT_GAP_ADV_FAST_INT_MAX_2               0x0640  /* 1000 ms   */
    aslso like you suggsted peripheral_lbs program for sleep, advertisement and connected case. can you tell me which program can be used for Scan, RX and TX?
    Regards,
    Arun
  • Hi Arun,

    The BT_GAP_* symbols in gap.h define common default values for use by the application. This file should not be modified.

    The connection interval is ultimately determined by the GAP central connecting to your device. However, you can request a specific connection interval or range from the central by adding the following symbols to your prj.conf file:

    - CONFIG_BT_PERIPHERAL_PREF_MAX_INT

    - CONFIG_BT_PERIPHERAL_PREF_MIN_INT

    If you want to measure the connection events, you can connect to the peripheral from an Android or iOS app with our nRF Connect app.

    Regards,

    Vidar

  • Hi Vidar,
    Thank you for the response. But on changing the parameters in gap.h for advertisement interval, it was working,

    #define BT_GAP_ADV_FAST_INT_MIN_1               0x0640  /* 1s    */
    #define BT_GAP_ADV_FAST_INT_MAX_1               0x0640  /* 1s    */
    #define BT_GAP_ADV_FAST_INT_MIN_2               0x0640  /* 1000 ms   */
    #define BT_GAP_ADV_FAST_INT_MAX_2               0x0640  /* 1000 ms   */

    is this why I'm facing issue in changing scan parameters as well?
    can you please suggest programs to execute scan, RX 100% and TX 100% cases?
    Regards,
    Arun
  • Hi Arun,

    arun12 said:
    Thank you for the response. But on changing the parameters in gap.h for advertisement interval, it was working,

    It's not that it doesn't work, but you should generally avoid modifying source files in the SDK tree. When you change this definition, it will change the advertising interval not just for your project, but also for any other project using the same symbol.

  • Got it, but what I'm looking for is to set the connection interval to a set rate just like how I set advertising interval. 

    for which it is not working for me whether editing gap.h or  "CONFIG_BT_PERIPHERAL_PREF_MAX_INT" in prj.conf. Is there any way I can set connection interval, through any other example or any other method?

    also please suggest me the examples to configure the device in scan, tx and rx modes.

    Regards,

    Arun

Related