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

Changes to usbd_cdc_acm example to make it work with S140 Soft device and ble_app_uart_c example

I am using SDK 15.2 with IAR's EWARM 8.30.1 and the nRF52840 Development Kit.  My eventual target is the nRF52-Dongle.  If it matters my development OS is Windows 7 64-bit.

I have been trying to combine the usbd_cdc_acm and ble_app_uart_c examples.  I copied what I thought were the necessary parts of the usbd_cdc_acm project into the ble_app_uart_c example but the CDC interface does not show up on the PC.

The BLE part of the project seems to work fine and connects to my custom hardware.

I cannot find what part of the USB related code is not working properly.  All the return codes are success.

There is a parameter in the sdk_config.h file called "APP_USBD_CONFIG_POWER_EVENTS_PROCESS"  which I have set to either 0 or 1 and still had no success.

Can anyone provide a guide as to what should be done to bring the non-softdevice usbd_cdc_acm example into the S140 based ble_app_uart_c example?

This really seems like an example Nordic should provide.

Parents Reply Children
  • I did a diff between the usual Central and Peripheral uart code then used that to modify the main.c code in the example mentioned (15.0.0 I think); I found the USB serial link was not as stable as I hoped, but I don't remember the details offhand and that issue may have been related to the recent posts on 64-byte transfers. If I find the file I will post it, but it wasn't captured in our repository being just a test.

Related