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

An engineer has been assigned to Could someone help me for understanding nordic better ?

Hi!

This is Cemal from Turkey.

I'm new to this community and for nordic nrf. First of all, I wish everyone a good work.

I've just started a new job at a new company. And my team leader gave me a project. The project includes a nrf52 and it is about communication between nrf52 and mobile phone via bluetooth low energy protocol.  There is nobody around me who understand nRF and BLE. Actually, the project was written by another person, and my mission is only find existing bugs. I try to learn nrf52 via this project codes. I want to ask some question for understand better. 

1- Sometimes, program stops at this column when I running in debug mode. what is this means? What caused the program to stop here? how can i learn it?

2- what exactly duty of  "APP_ERROR_CHECK" and "err_code" ?

"err_code" keeps return value of a lot of functions and just after that "APP_ERROR_CHECK(err_code)" is written. 

What is these operations mean?

I'm trying to learn by reviewing the documents on the nordicsemi site. however, I wanted to ask you these questions to speed up my learning. I wish to everyone health and happy. 

  • Hi Cemal,

    Welcome to Devzone.  

    1- Sometimes, program stops at this column when I running in debug mode. what is this means? What caused the program to stop here? how can i learn it?

    If you build your project with Debug instead of Release, then you can set a breakpoint at the same place, but then you can find the file name, line number, and error code in app_error_fault_handler() in the switch(id) case above your screenshot. Try to enable the logging module, and defining DEBUG in your preprocessor defines, then your log should tell you why the project is stopping.

     

    2- what exactly duty of  "APP_ERROR_CHECK" and "err_code" ?

    I'd suggest reading this blog post devzone.nordicsemi.com/.../ on error handling. 

    You can search for the solutions on the Devzone or https://infocenter.nordicsemi.com/index.jsp regarding the error code.

    -Amanda H.

Related