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

Fatal error

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

  • As said, please check that you are using the correct baudrate on your UART terminal. I see from the youtube video that you use 115200 on your UART (arduino IDE) terminal. Is that also what you use in your Segger Embedded Studio project?

    Check the function uart_init() in main.c.

    static void uart_init(void)
    {
        uint32_t                     err_code;
        app_uart_comm_params_t const comm_params =
        {
            .rx_pin_no    = RX_PIN_NUMBER,
            .tx_pin_no    = TX_PIN_NUMBER,
            .rts_pin_no   = RTS_PIN_NUMBER,
            .cts_pin_no   = CTS_PIN_NUMBER,
            .flow_control = APP_UART_FLOW_CONTROL_DISABLED,
            .use_parity   = false,
    #if defined (UART_PRESENT)
            .baud_rate    = NRF_UART_BAUDRATE_115200
    #else
            .baud_rate    = NRF_UARTE_BAUDRATE_115200
    #endif
        };
    
        APP_UART_FIFO_INIT(&comm_params,
                           UART_RX_BUF_SIZE,
                           UART_TX_BUF_SIZE,
                           uart_event_handle,
                           APP_IRQ_PRIORITY_LOWEST,
                           err_code);
        APP_ERROR_CHECK(err_code);
    }

    What do you use as the .baud_rate?

    The error did not show up in the video. What did you change so that this issue occured?

  • yes I am using the same baud rate 

    and I am using terminal software to receive the data and also for transmit 
    plz see in the screenshot

    and this nRF UART APP which I am using to send the data

    Thank you 
    BR
    Saira

  • This is the path

    G:\EMBEDDEDBMY\nRF52832 new version\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_uart\pca10040\s132\ses

  • Edvin said:
    The error did not show up in the video. What did you change so that this issue occured?
  • ok I used 16th version in my project 

    in which what I changed I wrote DEBUG in preprocessor definition (in COMMON mode)


    After that, I changed NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0 in sdk_config.h.

    and last and finally i commented //APP_ERROR_HANDLER(p_event->data.error_communication);
    after that 17th pin number led started blinking.
    i connected via nRF UART APP to the BLE then LED stopped blinking.

    But i am not able to receve on APP printf("\r\nUART started.\r\n");
    and also not able to  transmit

    Thank you

Related