This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

app_uart_put sending "0x00"

I am using the nRF52 SDK : nRF5_SDK_17.0.2_d674dde

- When data are all ASCII-Hex (0x30) the code working fine

- Now I try to optimize code by changing to binary data.

- Below code fails when the data content is "0x00" - NRF_ERROR_NO_MEM

- Is there some configuration need to do to support binary data send ??

void SendUartMessage(uint8_t *buf, uint8_t len)
{
ret_code_t ret_val;
SetSendUartBusy(true);

for (uint32_t i=0; i<len; i++)
{
ret_val = app_uart_put(buf[i]);
if (ret_val != NRF_SUCCESS)
{
NRF_LOG_ERROR("app_uart_put() failed at : %d = 0x%02x", i, buf[i]);
APP_ERROR_CHECK(ret_val);
SetSendUartBusy(false);
return;
}
}
}

Parents Reply Children
No Data
Related