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

Parents
  • 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

Reply
  • 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

Children
No Data
Related