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

USB CDC ACM example and ‘TX_PIN_NUMBER’ error

Hello all

I was just following the thread launched by Alex concerning nrf 52 dongle driven from serial port, which is also very important to me, and now that thread is already closed.

I was just trying to compile the usbd_cdc_acm example... I updated it for donge hardware (changed project properties) but when compilling the sample I see these errors:


‘TX_PIN_NUMBER’ undeclared (first use in this function); did you mean ‘P0_PIN_NUM’?
‘RX_PIN_NUMBER’ undeclared (first use in this function); did you mean ‘P0_PIN_NUM’?

Please, could you guide me to solve these compiler errors.

I am compilling it in ubuntu machine, using SES and SDK 15

Thank you

Ub

Parents Reply
  • They are solely used in this function:

    static void init_cli(void)
    {
    ret_code_t ret;
    ret = bsp_cli_init(bsp_event_callback);
    APP_ERROR_CHECK(ret);
    nrf_drv_uart_config_t uart_config = NRF_DRV_UART_DEFAULT_CONFIG;
    uart_config.pseltxd = TX_PIN_NUMBER;
    uart_config.pselrxd = RX_PIN_NUMBER;
    uart_config.hwfc = NRF_UART_HWFC_DISABLED;
    ret = nrf_cli_init(&m_cli_uart, &uart_config, true, true, NRF_LOG_SEVERITY_INFO);
    APP_ERROR_CHECK(ret);
    ret = nrf_cli_start(&m_cli_uart);
    APP_ERROR_CHECK(ret);
    }

    But not declared...

Children
Related