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

  • 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

  • As mentioned earlier, a GAP peripheral cannot set the connection interval.

    arun12 said:
    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?

    How do you determine that it is not working?

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

    Could you please provide more details about what you are trying to evaluate? TX and RX currents can be measured during connection events, as illustrated by the power profiles in our online power profiler. What is the purpose of testing with a 100% duty cycle?

Related