The nrf52840 usbd examples of peripheral in SDK 13.0.0 worked fine. I want usb work with BLE softdevice and there are lots of conflicts between nrf drv and softdevice. Is there any example of usbd working together with ble softdevice?
The nrf52840 usbd examples of peripheral in SDK 13.0.0 worked fine. I want usb work with BLE softdevice and there are lots of conflicts between nrf drv and softdevice. Is there any example of usbd working together with ble softdevice?
Hi Don,
It's easiest to wait for a new SDK with support for S140 6.0.0-6.alpha, but it should be possible to do the migration to the new S140 and implement the new S140 USB Power functions, such as sd_power_usbpwrrdy_enable()
and sd_power_usbdetected_enable()
yourself. But if this is not critical for you at the current time, then it could be better to wait for the supported SDK.
Hi Don,
It's easiest to wait for a new SDK with support for S140 6.0.0-6.alpha, but it should be possible to do the migration to the new S140 and implement the new S140 USB Power functions, such as sd_power_usbpwrrdy_enable()
and sd_power_usbdetected_enable()
yourself. But if this is not critical for you at the current time, then it could be better to wait for the supported SDK.
Hello Sigurd, You write we need to implement the function, sd_power_usbpwrrdy_enable() and sd_power_usbdetected_enable(), but those are supervisor calls. I tried to look how to write the supervisor calls, and didn't find any information about this. Would you please advise how to write? Thanks!
Hi Hayk ,
The functions themselves are already implemented, but you need to “implemented / integrate” them into your own application code. You don’t need to write the sd_ functions, they are already implemented.
We tried to call them from many different places in the code, but the bootloader is not recognized by OS as a USB CDC device. We also noticed, that the softdevice is not enabled and tried to enable it, but it didn't work.BTW, the recent softdevice 6.0.0-ALPHA has a problem of compiling with latest SDK. Gives an error on xtal_accuracy. Thank you for quick response.
Sigurd - Do you have an update to the nrf_soc.h
file which would allow us to add the SVCALL macros needed to access those functions? We're dead in the water on our USB CDC ACM work without the ability to implement the sd_power_usbpwrrdy_enable()
(etc.) calls. If you can provide the changes to the enum
needed to make that work at least we could move forward. Also, the function prototypes would be nice.
Hi Julie H,
You can download S140 6.0.0-6.alpha from here. Unzip the downloaded zip, and you can then find the updated nrf_soc.h
in the folder s140_nrf52840_6.0.0-6.alpha_API\include
.