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

Working with RF51422 Development Kit

I am having trouble getting up and running with the development kit (without the starter kit).

My setup is as follows:

The PCB antenna module is hooked up to the JTAG programmer/debugger and simple_tx_broadcast is downloaded on the chipset. The power is supplied directly via an external DC power supply to pins 1 (VTG) and 39 (GND) of P2 connector. LED_0 (pin 29 on P1 connector) and LED_1 ports (pin 29 on P1 connector) are monitored on the oscilloscope.

nRFAP2 development kit USB dongle is connected to the PC and ANTware II is used to receive data (the USB dongle that came with the RF51422 kit is not recognized by the PC).

The screenshot of the oscilloscope (corresponding to LED's) and ANTware is attached. In the scope trace, Channel 1 is LED_0 and Channel 2 is LED_1.

Can someone help me out why the simple tx broad demo is not working. Is it something to do with the fact that I do not have the starter kit and I am not supplying power to the right pins?

Thanks, Vamsi

Scope Traces.jpg

antware_screenshot.png

  • I have been battling with it for a while now and I have a few updates:

    1. My was observation was that the 32 KHz crystal was not turned on (used oscilloscope to verify). So, I turned the crystal ON first thing in the main loop.

    2. Next, I went into debugging mode, I noticed that the following function was throwing up 1000 error code:

    err_code = sd_softdevice_enable(NRF_CLOCK_LFCLKSRC_XTAL_50_PPM, softdevice_assert_callback);

    Since the error_code != NRF_SUCCESS, it was stuck in the following infinite loop:

    void app_error_handler(uint32_t error_code, uint32_t line_num, const uint8_t * p_file_name) { for ( ; ; ) { // No implementation needed. } }

    This means there is problem with enabling of SoftDevice (error code 1000).

    1. Next, I tried to comment out the infitnite loop and noticed error code 2 for the following function:

    err_code = sd_nvic_SetPriority(SD_EVENT_IRQn, NRF_APP_PRIORITY_LOW);

    [b]This error code again corresponds to SoftDevice has not been enabled. [/b]

    Can someone please help out with the issue. Is it a problem with my setup or does the SDK project not work out of the box. Any help, especially working code would be appreciated.

    For reference, the main file attached (the version that came with the SDK with the above mentioned modifications).

    Thanks, Vamsi

    main_broadcast_tx.c

    main_broadcast_tx.txt

  • The error code you're getting (if it's hex 0x1000) means that the clock source is invalid. This doesn't make much sense given the code snippet you shared, so I suspect that you may be using an SDK that is built for a different chip than you have.

    Beware that SDK 5.0.0 requires a chip revision DA or later, due to upgraded S210 softdevices. If you have an earlier chip revision, you should make sure to use SDK 4.x.x, as stated in the SDK's release notes.

  • Great, that did the trick. I am all set with the ANT radio but I am having some difficulty with the ARM core. I posted my problems with a detail of what I am trying to implement as a case (ID:11247).

    Thanks, Vamsi

Related