This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Direction Finding Example Zephyr

Hi I am working on nrf5340 direction finding example using nrfconnect zephyr v1.6.0-rc2. i had build example zephyr\samples\bluetooth\direction_finding_connectionless_tx for build_nrf5340dk_nrf5340_cpuapp. when i am debugging it facing issue 

static int bt_rpmsg_open(void)
{
BT_DBG("");

while (!bt_rpmsg_platform_endpoint_is_bound()) {
k_sleep(K_MSEC(1));
}
return 0;
}

code is stuck in this loop.

i search issue i found that i have to program hci_rpmsg project in network core. i  build this for  build_nrf5340dk_nrf5340_cpunet and tried to flash but i am not able to flash it getting error-

Parents Reply Children
  • Hi I checked same link provided by you. problem i  am facing is that whem i building samples/bluetooth/hci_rpmsg  with configuration provided i am not able to flash it this program need to flash in network core and i am getting same error as attached previously .  i have 2 type sdk.

    I need any document with provide how to build and flash code (configuration information)

    with child image sdk i followed 

    Building With Child Image

    and without child image sdk i had followed 

    Without child image build process

    i first process (Building With Child Image) i am not coming from below loop seem network core is not working

     

    static int bt_rpmsg_open(void)
    {
    BT_DBG("");
    
    while (!bt_rpmsg_platform_endpoint_is_bound()) {
    k_sleep(K_MSEC(1));
    }
    return 0;
    

    in Second process (Without child image build process) i was not able to flash  code on network core.

    Kindly help me with proper document which have better explanation for which core we have to select during building to any example provide and which version of sdk i should used for this project.

    i have to use only transmission code with nrf5340. for rx i am using nrf52833.

  • Hello, 

    Øyvind said:
    The nRF5340 is not supported by the AoA samples in NCS v1.6.x.

    In your image provided, you are referring to two SDK folders which both are NCS v1.6.x. These do not support nRF5340. The master branch has added support for nRF5340, however, please note that the master branch of the sdk-nrf repository always contains the latest development state of the nRF Connect SDK. Since all development is done openly, you can use it if you are not particularly concerned about stability and want to track the latest changes that are being merged continuously into the different repositories. Please see Revisions under nRF Connect SDK code base.

    Please see our official nRF Connect SDK documentation (master branch), and especially Working with nRF53 series. To program the device, have a look under Building and programming a sample

    Kind regards,
    Øyvind

      

  • what about error in first image during programming.

    Second thing i cloned master branch of each below and put in a folder and copied other dependency folder from sdk v1.61 as below-

     https://github.com/nrfconnect/sdk-nrf

    https://github.com/nrfconnect/sdk-zephyr

    https://github.com/nrfconnect/sdk-nrfxlib

    https://github.com/zephyrproject-rtos/mcuboot

    then tried to build nrf\samples\bluetooth\direction_finding_connectionless_tx project-

    copied  content of overlay-aoa.conf  into hci_rpmsg.conf at sdk_mster\nrf\samples\bluetooth\direction_finding_connectionless_tx\child_image

    and open project nrf5340dk_nrf5340_cpuapp and build it.

    then flash this in nrf5340dk. now this code it printing -

    Bluetooth initialization...*** Booting Zephyr OS build v2.6.0-rc1-ncs1 ***
    Starting Connectionless Beacon Demo
    Bluetooth initialization...

    which means

     it is stuck at 

    static int bt_rpmsg_open(void)
    {
    BT_DBG("");
    
    while (!bt_rpmsg_platform_endpoint_is_bound()) {
    k_sleep(K_MSEC(1));
    }
    return 0;

    Is any step i am missing?

    Kindly help me to come out of this issue

  • Please clone a full version of nRF Connect SDK, following the steps provided in our documentation. This will ensure that all connections are kept. I am not able to help without a complete version of NCS, i.e. master branch.

  • Hi i clone full repo using nrfconnect getting started. from it  1.699 version i downloaded 

    I build project  nrf\samples\bluetooth\direction_finding_connectionless_tx - by placing overlay-aoa.conf content at hci_rpmsg.conf

    No flash merge.hex in board.

    getting print 

    Bluetooth initialization...*** Booting Zephyr OS build v2.6.0-rc1-ncs1-2275-g2716fad989a4 ***
    Starting Connectionless Beacon Demo
    Bluetooth initialization...

    still seems same issue as above

    I have doubt which build type i should select app or net. i had selected app

Related