Issues adapting the Radio Test sample to our custom hardware which is using the nRF52840 SoC

Currently I am trying to adapt the Radio Test example to function on our custom hardware which uses the nRF52840 SoC. We need the Radio Test firmware to give access to the certification engineers to have control over the radio and conduct the appropriate radio tests. I am using Segger V5.68 and all the examples are from SDK V16.0.0.

The Radio Test example comes using UART and the external high frequency crystal oscillator which both have to be adapted to suite our hardware. This is why I set in the sdk_config.h file the NRFX_CLOCK_CONFIG_LF_SRC to 0, CLOCK_CONFIG_LF_SRC to 0, and CLOCK_CONFIG_LF_CAL_ENABLED 1 (to match the settings of our existing hardware). I then followed the CLI example to adapt the UART to USB CDC ACM. When I was done adapting it, the project built successfully, I uploaded with the J-Link, two of our devices with the firmware (one to conduct the tests while the second to display and record the data), and finally In the serial terminal (I am using MobaXterm with the settings outlined here) I adjusted both devices to run on the same configurations (as can be seen below in picture 1).

Picture 1. Parameters of the two devices

Then on device 1 (on the left) I issue the command "start_tx_carrier" then "start_tx_sweep". On device 2 (on the right) I issue the command "print_rx" but it prints only 0s which should not be the case (as can be seen below in picture 2, not all the data can be seen as I have increased the buffer size but it is all 0)

Picture 2. Attempting to print out rx.

I have tried multiple times issuing different commands on either device to no avail. The print_rx command always prints out 0s. I am of course doubting both of my adaptations of the USB CDC ACM and the external oscillator but when reviewing the code they all seem fine to me (which ofc if that was the case I would not have this problem). I have also made sure that it's not a hardware related issue on our side so that's outside of consideration. 

I am attaching the project to this issue here. Hopefully someone can take a look at it and pass on their advice :)

Parents Reply Children
No Data
Related