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

HOW TO DEBUG NRF52832 USING MINICOM ON UBUNTU(/dev/ttyACM0)

hai, i am using sdk-v-12.3.0 for nrf52832-pca10040,

I connected the SOC to PC using Daplink.Now,i want to just print "hello world " on the /dev/ttyACM0.could any one please assist me.

Parents Reply Children
  • Finally myself i did R&D and solved the problem.its all about changing the pin numbers in main.c and some configurations related to UART in sdk_config.h.Below was the change in my main.c file

    static void uart_init(void)
    {
        uint32_t err_code;

        const app_uart_comm_params_t comm_params =
          {
            .rx_pin_no    = 30,
            .tx_pin_no    = 29,
            .rts_pin_no   = 2,
            .cts_pin_no   = 28,
            .flow_control = APP_UART_FLOW_CONTROL_DISABLED,
            .use_parity   = false,
            .baud_rate    = UART_BAUDRATE_BAUDRATE_Baud115200
          };

        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);
    }

    And just use printf(); in order to print string

    printf("\r\nhello world\r\n");

    And also make sure that your sdk_config.h file must be like attached file

    5187.sdk_config.h

Related