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

How can I find source of problem?

Hi !

I'm trying to debug. I followed this video : https://www.youtube.com/watch?v=uP8RYgYGRvI&list=PLx_tBuQ_KSqGHmzdEL2GWEOeix-S5rgTV&index=7 .  But I can't completely.

the program stop at NRF_BREAKPOINT_COND in app_error_weak.c.

I used breakpoint to understand which function the error occurred after.  I guess there is a problem when setting Uart. What should I do to better interpret the problem? What can be the problem ?

The program enters the following functions respectively:

1- nrf_drv_uart_init(...);

2- nrfx_uart_init(....);

3- interrupts_enable(....)

4- NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number((void *)p_instance->p_reg), interrupt_priority);

5- nrfx_get_irq_number(.....)

I added the 5 step's photos to explain better

1)

2)

3)

4)

5)

after step 5, the program stop at at NRF_BREAKPOINT_COND in app_error_weak.c

Parents Reply Children
  • It is unfortunately very hard to say exactly why the creation of those two timers failed before you started checking their returned error codes.. but it looks like their creation failed, which led to you call to app_timer_start also failing. I can't really say much more than that, because I do not have any information about whether the conditions of your testing has changed since then, or if you have made any other changes to the code, etc.

    Best regards,
    Karl

  • In fact, it cannot be said that I have made much changes in the codes. Although we cannot explain it exactly, the problem seems to be fixed. If I encounter the same problem again, I would bother you :) 

    Thank you for your help and patience.

  • cemalb said:
    the problem seems to be fixed. 

    I am happy to hear that the problem seems to be resolved!
    While we may not have added a lot of new features during this back-and-forth, we certainly have improved the overall quality of your project, and minimized a lot of potential for future frustration and failure.

    cemalb said:
    If I encounter the same problem again, I would bother you :) 

    Sure, that sounds all right with me!

    cemalb said:
    Thank you for your help and patience.

    No problem at all, I am happy to help! :) 

    Please do not hesitate to open a new ticket if you should encounter any other issues or questions in the future.

    Good luck with your development!

    Best regards,
    Karl

Related