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

Radio test with nrf21540

Hi,

I using the nrf52840 EVB(pca10056), there's no nrf21540 connect, but in our design we will using the nrf52840 + nrf21540.

And I build the radio test example with pca10112(nrf52840 + nrf21540).

Then I send the start_tx_modulated_carrier command to test Tx.

After send "start_tx_modulated_carrier  100" to nrf52840, there's no response after finish tx as below:

usb_cli:~$ start_tx_modulated_carrier 100
Start the modulated TX carrier.

And nrf52840 will halt on after that.

I using the "#define NRF21540_USE_GPIO_MANAGEMENT 1"

Is that related to I didn't connect nrf21540?

Parents
  • Hi,

     

    I using the nrf52840 EVB(pca10056), there's no nrf21540 connect, but in our design we will using the nrf52840 + nrf21540.

     Without having the nRF21540 attached, the firmware will be stuck when trying to communicate with it.

    Here's the stack trace when running this project on the nRF52840-DK without a nRF21540 attached:

    (gdb) bt
    #0  is_device_on () at ../../../../../../components/drivers_ext/nrf21540/nrf21540.c:555
    #1  nrf21540_power_down (user_trigger_event=user_trigger_event@entry=0x0, mode=mode@entry=NRF21540_EXEC_MODE_BLOCKING) at ../../../../../../components/drivers_ext/nrf21540/nrf21540.c:555
    #2  0x00009362 in radio_disable () at ../../../radio_test.c:296
    #3  RADIO_IRQHandler () at ../../../radio_test.c:677
    #4  <signal handler called>
    #5  nrf_queue_generic_pop (p_queue=<optimized out>, p_element=0x2003feac, just_peek=<optimized out>) at ../../../../../../components/libraries/queue/nrf_queue.c:281
    #6  0x00000000 in ?? ()
    

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    I using the nrf52840 EVB(pca10056), there's no nrf21540 connect, but in our design we will using the nrf52840 + nrf21540.

     Without having the nRF21540 attached, the firmware will be stuck when trying to communicate with it.

    Here's the stack trace when running this project on the nRF52840-DK without a nRF21540 attached:

    (gdb) bt
    #0  is_device_on () at ../../../../../../components/drivers_ext/nrf21540/nrf21540.c:555
    #1  nrf21540_power_down (user_trigger_event=user_trigger_event@entry=0x0, mode=mode@entry=NRF21540_EXEC_MODE_BLOCKING) at ../../../../../../components/drivers_ext/nrf21540/nrf21540.c:555
    #2  0x00009362 in radio_disable () at ../../../radio_test.c:296
    #3  RADIO_IRQHandler () at ../../../radio_test.c:677
    #4  <signal handler called>
    #5  nrf_queue_generic_pop (p_queue=<optimized out>, p_element=0x2003feac, just_peek=<optimized out>) at ../../../../../../components/libraries/queue/nrf_queue.c:281
    #6  0x00000000 in ?? ()
    

     

    Kind regards,

    Håkon

Children
No Data
Related