i am working with NRF52840 and i am using nRF Connect SDk.
can i get the help/documentation or guide to add the custom service.
can anyone compare and explain with nRF_SDK_17.0.2.
i am working with NRF52840 and i am using nRF Connect SDk.
can i get the help/documentation or guide to add the custom service.
can anyone compare and explain with nRF_SDK_17.0.2.
Thank you Simonr , i have completed that part but stuck after discovering the service.
The discovery get completed and then while processing the following line
bt_gatt_dm_data_print(dm); bt_nus_handles_assign(dm, nus); bt_nus_subscribe_receive(nus); bt_gatt_dm_data_release(dm); k_sleep(K_SECONDS(10)); //bt_gatt_dm_continue(dm,context);
I get the following errors and then device reset,
[00:00:31.800,567] <err> os: ***** MPU FAULT *****
[00:00:31.800,598] <err> os: Data Access Violation
[00:00:31.800,598] <err> os: MMFAR Address: 0x4
[00:00:31.800,628] <err> os: r0/a1: 0x0000001a r1/a2: 0x00000000 r2/a3: 0x0001537b
[00:00:31.800,628] <err> os: r3/a4: 0x00015379 r12/ip: 0x000000d7 r14/lr: 0x00010d9b
[00:00:31.800,659] <err> os: xpsr: 0x01000000
[00:00:31.800,659] <err> os: Faulting instruction address (r15/pc): 0x00010da8
[00:00:31.800,689] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
[00:00:31.800,720] <err> os: Current thread: 0x20001d98 (BT RX)
Hi
I would recommend using logging to try and debug this to see where exactly it would fail. As I can't think of what exactly the issue would be from these error messages. Are you able to see where the device fails exactly when this error occurs? Try setting CONFIG_LOG=y in your project config file, and add some printk() lines to make sure that steps are completed successfully. You can also use the Debug extension in VS Code, we have a tutorial video available here.
Best regards,
Simon
i want to implement similar to this in nRF COnnect SDK, Do we have any similar example?
Hi
This project doesn't seem to have anything to do with Bluetooth LE and services, so I'm not sure I understand how this is related to your ticket, but we do have multiple USB sample projects available in the Zephyr branch here. The USB CDC ACM sample application is likely the easiest to get into.
Best regards,
Simon