Using radio_test sample on custom board.

Hi,

I want to run the radio_test sample on a custom board, how do I go about doing this?

The custom board uses a UBLOX NINA B401- which utilises the nRF52833 chip. Do you have any examples available for the UBLOX NINA B401 chip, including how to set up a dts for custom boards etc. 

I have the radio test sample running successfully using two nRF52840-DK boards, using nRF connect SDK on Visual Studio.

Parents Reply Children
  • I see. Did you make any other changes to the project than what we have discussed? Can you share the project with your modifications? Also, if you build the project without any modifications, will it build then?

  • I fixed this issue by including CONFIG_CORTEX_M_SYSTICK=n in proj.conf. And successfully got the radio test running on nrf52833 DK, however now when attempting on my custom board using Ublox NINA B401. I am not getting any response. 

    Rather than adding overlay file, I edited the .dtsi file to match my board making it 

    &pinctrl {
        uart0_default: uart0_default {
            group1 {
                psels = <NRF_PSEL(UART_TX, 0, 17)>;
                    //<NRF_PSEL(UART_RTS, 0, 5>;
            };
            group2 {
                psels = <NRF_PSEL(UART_RX, 0, 16)>;
                    //<NRF_PSEL(UART_CTS, 0, 7)>;
                bias-pull-up;
            };
        };
    Note I have commented out the RTS and CTS code as I do not have these connections on my board will that be an issue?
    My proj.conf is:
    CONFIG_CONSOLE_HANDLER=y
    CONFIG_SHELL=y

    CONFIG_DYNAMIC_INTERRUPTS=y

    CONFIG_NRFX_TIMER0=y

    CONFIG_ENTROPY_GENERATOR=y
    CONFIG_NRF_SECURITY=y

    CONFIG_FEM_AL_LIB=y
    CONFIG_CORTEX_M_SYSTICK=n
    CONFIG_BOARD_ENABLE_DCDC=n
     
    los is it possible to use the nrf connect serial terminal for chips connected via JTAG, as currently my board is not coming up in the available devices. Therefore I am using a python script currently to read the serial data, which I am not recieing any and I am expecting: 
    Clock has started
  • Hi,

    nicoled123 said:
    I fixed this issue by including CONFIG_CORTEX_M_SYSTICK=n in proj.conf.

    I see. It should not be needed though, and the sample builds out of the box for the nRF52833 DK on my end. Could it be that you have (inadvertedly or not) made some changes to the SDK? It could be worth wonloading the SDK and toolchain again to know that you have a good starting point.

    nicoled123 said:
    Note I have commented out the RTS and CTS code as I do not have these connections on my board will that be an issue?

    There is no need to comment out the flow control pin configuration. The default configuration for the DK does not enable flow control as the hw-flow-control property is not present. You can verify this by looking at the generatd zephyr.dts file in the build folder. And if you have a board where it is defined you can remove it in the board file or add an overlay with the following (adjust to another uart instance if not using uart0):

    &uart0 {
         /delete-property/ hw-flow-control;
    };

    nicoled123 said:
    los is it possible to use the nrf connect serial terminal for chips connected via JTAG, as currently my board is not coming up in the available devices.

    You can use PuTTY or another serial terminal of your choise as well.

    Note that if you still have problems you can use Segger RTT with the radio test example, by adding the following to prj.conf if you have a Segger debugger:

    CONFIG_USE_SEGGER_RTT=y
    CONFIG_SHELL_BACKEND_RTT=y

    But please be aware that RTT does continious access to the device which will cause noise and affect the measurements, so you should keep that in mind. 

    Br,

    Einar

  • Thanks for your help!  I reinstalled SDK and toolchains and that fixed the need for adding   CONFIG_CORTEX_M_SYSTICK=n in proj.conf.

    However I am still having issues running samples on my custom board. I am currently to run the simple blinky sample and no luck. I have tried adding an overlay to nrf52833 DK to change led0 from 13 to 28 and no luck! I have also tried creating a custom board. I have attached the custom board folder and also the blinky project I am working with (I have tested on nrf52833DK and it works on it). Also please see image below for pin out of my custom board. 

    I have tried flashing the board via nrf Connect VS code, programmer from nrf Connect Desktop and also JFlash.  I am using a Jlink Segger Plus to flash the board.  wombat_nina.zip1526.BLINKY.zip

Related