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

nRF52833DK not building for DTM example

Hi, 

I tried to build and programm this DTM example from this SDK example:   ncs\v1.6.1\nrf\samples\bluetooth\direct_test_mode  

I got this following  error. Do you know where I can find this file or function or why I am getting this error?  As below and the figure below: 

'DT_N_S_zephyr_user_P_dtm_antenna_count' undeclared (first use in this function)

Parents Reply
  • Hi Hakon, 

    The first time when I loaded the overlay file and compile, it still have the same error as I mentioned earlier. When I click on the overlay file at the IDE, it is there. 

    Then I close the IDE and open again and recompile again, this time it runs without error. Do you know why it works after I close and open again the IDE and then build again? 

    Regards, 

    Kelvin

Children
  • Hi Kelvin,

     

    vin said:

    The first time when I loaded the overlay file and compile, it still have the same error as I mentioned earlier. When I click on the overlay file at the IDE, it is there. 

    Then I close the IDE and open again and recompile again, this time it runs without error. Do you know why it works after I close and open again the IDE and then build again? 

    It is not always that the current build is able to detect certain DTS changes on-the-fly, meaning that you might have to re-generate the build-folder (ie. delete it and re-import the ncs project). I suspect that this is what's happening on your end. Could you try deleting/clearing the build folder and reimporting the project?

     

    Kind regards,

    Håkon

  • Hi Hakon, 

    Thank you for your explanation, this is clear. It is working now after I close and open the IDE and recompile again, hence I will put your suggestions in regenerating the build folder in mind. Please can you close this ticket. Thank you. 

    Kelvin

Related