SOFTDEVICE: INVALID MEMORY ACCESS when use the radio test?

Hello,

I use nRF5 SDK and nRF52833. Now I want to do the radio test at the "examples\ble_peripheral\ble_app_uart".

When I use radio_test_init(&m_test_config); or other related to radio test , it will generate the following errors.

00> <error> app: SOFTDEVICE: INVALID MEMORY ACCESS

This is why? Do the radio test  not use on the Softdevice?

#include "rftest.h"
#include "radio_test.h"

static radio_test_config_t  m_test_config;      /**< Radio test configuration. */

void rf_test_init(void)
{
    radio_test_init(&m_test_config);
	
	  memset(&m_test_config, 0, sizeof(m_test_config));
    m_test_config.type                          = UNMODULATED_TX;
    m_test_config.mode                          = NRF_RADIO_MODE_BLE_1MBIT;
    m_test_config.params.unmodulated_tx.txpower = NRF_RADIO_TXPOWER_0DBM;
    m_test_config.params.unmodulated_tx.channel = 0;

    radio_test_start(&m_test_config);
}

Thank you.

  • Hello,

    As you suspected, the softdevice does not implement the radio test code. Instead, the radio test application accesses the RADIO peripheral directly. This means the softdevice must be disabled while running the radio test program. Otherwise, the Softdevice will raise the  INVALID MEMORY ACCESS when the app tries to access peripherals such as the RADIO which is is reserved to the softdevice.

    Best regards,

    Vidar

Related