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

CDC_ACM with softdevice.

Hi,

I have a BLE application, which I want to interface with PC via serial communication through USB.

It seems that just adding Softdevice breaks the USB_CDC_ACM example, which I have ported to Dongle (Worked fine without softdevice).

I have also changed application flash placement to start at 0x26000, so it doesn't collide with Softdevice.

Is it possible to combine cdc_acm with another BLE example, let's say peripheral blinky?

When combining two projects there is a lot of configuration to be merged in config files and more, is there a simple way to merge solutions? (I am using SES)

Also as an alternative connectivity examples work in a way that PC runs the logic through driver and Dongle acts as a physical link or am I misunderstanding the concept?

Awaiting Yours,

Parents
  • UPDATE: It is not necessary to go through the steps below, here is an example that combines the ble_app_uart example with the usb_cdc_acm module.

    I would approach it by starting with a simple ble example (e.g. BLE Blinky Application), then I would add line by line from the USB CDC ACM Example. While doing this you will encounter many errors, which can be resolved by adding the appropriate .c (Include them in the project explorer window to the left) and .h files (include them at the top in the main file, and add the path). You must also remember to enable the necessary peripherals and settings in the sdk_config.h file.

    If you encounter any problems while doing this, please ask.

    Best regards, Simon

Reply
  • UPDATE: It is not necessary to go through the steps below, here is an example that combines the ble_app_uart example with the usb_cdc_acm module.

    I would approach it by starting with a simple ble example (e.g. BLE Blinky Application), then I would add line by line from the USB CDC ACM Example. While doing this you will encounter many errors, which can be resolved by adding the appropriate .c (Include them in the project explorer window to the left) and .h files (include them at the top in the main file, and add the path). You must also remember to enable the necessary peripherals and settings in the sdk_config.h file.

    If you encounter any problems while doing this, please ask.

    Best regards, Simon

Children
Related