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

Uart issue NRF_BREAKPOINT_CND

Hello All,

I am developing project which is based on nRF52840 and uses UART.

This my nRF52840 UART connect to STM's MCU UART.

If I do the connect Rx-Tx, Tx-Rx and VCC, GND then I power up the STM board my nRF code entering into below attached app_error_weak file.

Attached is the image and code.

Please help me what is the problem it very urgent for me.

uart _Exercise20210513.zip

Thanks and Regards

Rohit R

Parents
  • Hello Rohit,

    To supplement @anweil 's answer, please make sure that you have DEBUG defined in your preprocessor defines, like shown in the included image.

    This will make a detailed error message be printed to your logger whenever a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.
    Do this, and let us know what this error message reads.

    Best regards,
    Karl

  • HI Karl,

    Thank you for the quick response.

    No, DEBUG is not mentioned in preprocessor defination window.

    - I will do this

    And one more thing is I am using Tx- P0_6 and Rx-P0_8. these nRF pins connected to Stm board.

    will this log print still on putty?

    Thanks and Regards

    Rohit

  • Rohit Rajapure said:
    Thank you for the quick response.

    No problem at all, I am happy to help!

    Rohit Rajapure said:

    And one more thing is I am using Tx- P0_6 and Rx-P0_8. these nRF pins connected to Stm board.

    will this log print still on putty?

    You will then have to use the RTT backend for the logger, you can configure this in your sdk_config.h file.
    If you are working out of the ble_app_uart example, it is already configured to use the RTT backend.
    The RTT messages will then show up in the SES Debug terminal, or you could download Segger's own RTT Viewer application to see them in a separate terminal.

    Best regards,
    Karl 

Reply
  • Rohit Rajapure said:
    Thank you for the quick response.

    No problem at all, I am happy to help!

    Rohit Rajapure said:

    And one more thing is I am using Tx- P0_6 and Rx-P0_8. these nRF pins connected to Stm board.

    will this log print still on putty?

    You will then have to use the RTT backend for the logger, you can configure this in your sdk_config.h file.
    If you are working out of the ble_app_uart example, it is already configured to use the RTT backend.
    The RTT messages will then show up in the SES Debug terminal, or you could download Segger's own RTT Viewer application to see them in a separate terminal.

    Best regards,
    Karl 

Children
Related