NRF54L15 Radio Test Sample TFM Secure Halt

Good day,

I was attempting to test the radio performance of the NRF54L15. I ported over the Radio_Test sample project to try and transmit an unmodulated carrier wave at a configurable frequency. When using the unmodulate carrier wave function as is, the radio would configure. However as soon as the radio started Tx'ing, the device would become unresponsive, and I noticed that the MCU would get stuck in a TFM_Secure_Halt loop. I confirmed that I'm using the correct radio memory address (RADIO_NS). I noticed that when you configure the radio and don't trigger a start, so just enabling the Radio in Tx mode, it works perfectly (Radio transmitting)without locking up, but as soon as you call include NRFRADIO->TASKS_START = 1; it locks up as soon as the firmware reaches that line(Radio transmits, but I'm not able to communicate with the micro, presumably due it spinning in the tfm_secure_halt function). I'm just curious if this is expected behaviour or not?

extern void radio_unmodulated_tx_carrier(uint8_t mode, int8_t txpower, uint8_t channel)
{
	radio_disable();

	radio_mode_set(NRF_RADIO, mode);
	radio_power_set(mode, channel, txpower);
	
	radio_channel_set(mode, channel);
	
	if (sweep_processing) {
		radio_ppi_config(false);
	}
	NRF_RADIO->TASKS_TXEN = 1;
	while (NRF_RADIO->EVENTS_READY == 0);
}

Parents
  • Hello,

    Could you please change this line NRF_RADIO->TASKS_TXEN = 1; to  NRF_RADIO_NS->TASKS_TXEN = 1; just to be sure it's using the NS address? You can also check if TF-M is outputting a crashlog to confirm what the memory violation is. 

    Not sure if it is relevant, but we are not testing the radio test sampel for the *_ns target.

    Best regards,

    Vidar

Reply
  • Hello,

    Could you please change this line NRF_RADIO->TASKS_TXEN = 1; to  NRF_RADIO_NS->TASKS_TXEN = 1; just to be sure it's using the NS address? You can also check if TF-M is outputting a crashlog to confirm what the memory violation is. 

    Not sure if it is relevant, but we are not testing the radio test sampel for the *_ns target.

    Best regards,

    Vidar

Children
No Data
Related