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

UART on nrf9160dk

Hello,

I am using UART1 to communicate with sensor. It is working fine. I can receive the data. Now I want to modify this data. When I use strcpy() function, it works properly. But when I use functions like strchr(), there is error. I will paste the code and error as well.

To modify the received data from sensor, I am modifying the UART callback function. So is this the reason for the error and what should I do to overcome this problem?

Code:

Output: