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

k_malloc failing in peripheral_uart example NRF5340

Hello,

I am trying to build on the nrf5340_cpuappns sample, however this snippet seems to always warn unable to allocated UART send data buffer. Is there any reason k_malloc may be failing? I have loaded the network core with hci_rpmsg example, running the nrf5340_cpuapp sample has the same issue. 

Thanks!

 

	struct uart_data_t *tx = k_malloc(sizeof(*tx));

		if (!tx) {
			LOG_WRN("Not able to allocate UART send data buffer");
			return;
		}

Related