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 Reply Children
  • 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

  • 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
Related