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

radio_test example can't close uart0

你好 

我是nrf5340的较新版本。我要测试我的板子。

以下是配置信息

ncs sdk:v1.5.0

例如:ncs1.5.0 \ v1.5.0 \ nrf \ samples \ peripheral \ radio_test

问题

我无法关闭uart0。

我尝试这样做 

1.打开ncs1.5.0 \ v1.5.0 \ zephyr \ boards \ arm \ nrf5340dk_nrf5340 \ nrf5340dk_nrf5340_cpunet.dts上的nrf5340dk_nrf5340_cpunet.dts

2。

3.西部编译-b nrf5340dk_nrf5340_cpunet --build-dir build_nrf5340dk_nrf5340_cpunet -p  

我有这样的错误

C:/ncs1.5.0/v1.5.0/zephyr/cmake/extensions.cmake:416(add_library)上的CMake错误:未给目标指定源:drivers__serial

Parents
  • Hi Xinglong,

    1.If you have tried radio_test example, you would find that uart0 has to be used on this example because you need to use shell commands to configure testing devices and monitoring testing results.

    2.Normally you do not need to modify anything in dts files from the manufacturer. Unless you need to create one for your custom borad. You can enable or disable peripherals on prj.conf file. In the radio_test example, uart0 is enabled as shell dependence.

    Best regards,

    Charlie

  • Hi Charlie,

    Thank you for your reply.

    I want to test my board. Here are the test steps.

    1. All io control,I can’t control part of IO because of uart0 and nfc.

    2. radio test, I can use 

    radio_unmodulated_tx_carrier(NRF_RADIO_MODE_BLE_1MBIT,RADIO_TXPOWER_TXPOWER_0dBm, 40); for this 
    3. Low power module,I can't do this because of uart0.
    Can you give me some advice,I am struggling in this problem for a long time. Thank you.
  • Hi,

    For your questions,

    1. You need to create DTS files for your custom board. There are some guidelines from Zephyr, but you can read a brief explanation from our NCS tutorial, then modify the DTS files of nRF9160DK for your own board. Normally there are just some pin changes and disable the peripheral you do not use. It is also possible to used an overlay file to modify dts file during compiling as shown in the tutorial. 

    2. 3. Do you want to run a radio test and low power at the same time? why? This is quite confusing because radio tests are normally only used to test hardware RF parameters. On application development, you may need to disable uart port to saving power. There are some discussions about how to disable uart on nrf9160DK on devzon, just search "disable uart". Please correct me if I am wrong.  

    Best regards,

    Charlie

Reply
  • Hi,

    For your questions,

    1. You need to create DTS files for your custom board. There are some guidelines from Zephyr, but you can read a brief explanation from our NCS tutorial, then modify the DTS files of nRF9160DK for your own board. Normally there are just some pin changes and disable the peripheral you do not use. It is also possible to used an overlay file to modify dts file during compiling as shown in the tutorial. 

    2. 3. Do you want to run a radio test and low power at the same time? why? This is quite confusing because radio tests are normally only used to test hardware RF parameters. On application development, you may need to disable uart port to saving power. There are some discussions about how to disable uart on nrf9160DK on devzon, just search "disable uart". Please correct me if I am wrong.  

    Best regards,

    Charlie

Children
Related