This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

merge cdc-acm support and BLE service

I has successfully built the following demos and run them on a nrf52840 dongle (board: nrf52840dongle_nrf52840) :

  • cdc-acm-console demo            from Samples and Demos » Various Subsystems Samples » USB device support samples
  • bluetooth-st_ble_sensor demo from Samples and Demos » Bluetooth Samples

Based on these demos I am trying to introduce cdc-acm-console support to the bluetooth-st_ble_sensor demo.

Could you please help me to produce the right project configuration (and eventual overlay) to merge both functions (cdc-acm-console and ble GATT services) on a single demo ?

thanks in advance

Parents Reply
  • Hi,

    I tried reproducing this, but I did not get this build assert.

    What version of nRF Connect SDK(NCS) are you using ?

    If you are using an older version, app.overlay might need to look like this

    /*
     * Copyright (c) 2021 Nordic Semiconductor ASA
     *
     * SPDX-License-Identifier: Apache-2.0
     */
    
     / {
    	chosen {
    		zephyr,console = &cdc_acm_uart0;
    	};
    };
    
    &usbd {
    	cdc_acm_uart0: cdc_acm_uart0 {
    		compatible = "zephyr,cdc-acm-uart";
    		label = "CDC_ACM_0";
    	};
    };

    (i.e. &usbd instead of &zephyr_udc0)

Children
No Data
Related