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

nRF5340 automatically runs DTM when power is supplied

Dear Nordic

I have a question to ask your.When I used the NRF52 Series and nRF5 SDK,I made a simple modification tot the radio test program in examples\peripheral\radio_test so that the NRF52 series chip can be directly fixed at the frequency when the program is running.I don't need the uart to control it.

I would like to know where how modify the radio test program in NCS SDK to achieve the same effect for nRF5340.I studied the radio_test program of NCS SDK,an it's structure seems to be different from the radio test program in nRF5 SDK.Plese help me.

Thank you for your supprot and best regard.

Parents
  • Hi,

     

    In main.c, you add these headers:

    #include "radio_test.h"
    #include <string.h>

    And this code:

    	struct radio_test_config my_config;
    	memset(&my_config, 0, sizeof(struct radio_test_config));
    	my_config.type = UNMODULATED_TX;
    	my_config.mode = NRF_RADIO_MODE_BLE_1MBIT;
    	my_config.params.unmodulated_tx.txpower = RADIO_TXPOWER_TXPOWER_0dBm;
    	my_config.params.unmodulated_tx.channel = 40;
    
    	radio_test_start(&my_config);

     

    And you should have a unmodulated carrier at channel 40.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    In main.c, you add these headers:

    #include "radio_test.h"
    #include <string.h>

    And this code:

    	struct radio_test_config my_config;
    	memset(&my_config, 0, sizeof(struct radio_test_config));
    	my_config.type = UNMODULATED_TX;
    	my_config.mode = NRF_RADIO_MODE_BLE_1MBIT;
    	my_config.params.unmodulated_tx.txpower = RADIO_TXPOWER_TXPOWER_0dBm;
    	my_config.params.unmodulated_tx.channel = 40;
    
    	radio_test_start(&my_config);

     

    And you should have a unmodulated carrier at channel 40.

     

    Kind regards,

    Håkon

Children
No Data
Related