Hi
i am getting Fatal error while uploading code in my nRF52823 plz find attachment which i enclosed.
and showing break point at NRF_BREAKPOINT_COND; plz tell me what should i do ?
Thank you
Hi
i am getting Fatal error while uploading code in my nRF52823 plz find attachment which i enclosed.
and showing break point at NRF_BREAKPOINT_COND; plz tell me what should i do ?
Thank you
It is indeed working. Try to scroll a bit to the right:
What file name does the log point to, G:\EMBEDDEDBMY\nrf528... ? is it main.c? And it should also say a line number. What is on that line in that file? And more importantly, what is right before that line?
the name of log point is
<error> app: ERROR 4 [NRF_ERROR_NO_MEM] at G:\EMBEDDEDBMY\nRF52832 new version\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_uart\main.c:560
PC at: 0x0002EBA5
<error> app: End of error report
you can also see in screen short
Thank You
Please reply
Edvin said:What is on that line in that file? And more importantly, what is right before that line?
Please see what I wrote in the previous reply.
This is not an issue with the SDK. You have probably changed something in your project that leads to an application error. The log points to where this application error occurs.
Line 560 in your main.c file contains:
APP_ERROR_CHECK(err_code);
Where err_code = 4.
What function returned that err_code, and why? You need to debug to find out why it returned 4.
Source code in main looks like:
case APP_UART_COMMUNICATION_ERROR: APP_ERROR_HANDLER(p_event->data.error_communication); // line 560 here break;
Hold on: error_communication is just the ERRORSRC register value here. And value of 4 equals FRAMING error - which occurs when baud rate is wrong. Look at your UART signals with an oscilloscope - wrong baud rate should be obvious.
TL;DR
Your baud rate is set to a wrong value.