# RTL8722DM : BT example

**URL:** <https://forum.amebaiot.com/t/rtl8722dm-bt-example/462>\
**Category:** USB\
**Created:** [April 13, 2021, 2:39am UTC](https://forum.amebaiot.com/t/rtl8722dm-bt-example/462 "2021-04-13T02:39:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cavo](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cavo](https://forum.amebaiot.com/u/cavo)\
**Post date:** [April 13, 2021, 2:39am UTC](https://forum.amebaiot.com/t/rtl8722dm-bt-example/462/1 "2021-04-13T02:39:50Z")

</div>

I set it up like AN0400 Ameba-D Application Note(page. 258)  
However, error is occurred as shown in the following.

* * *

> make[2]: Entering directory ‘/cygdrive/d/2.Project/1.xPod/Software/ambd\_sdk-master/project/realtek\_amebaD\_va0\_example/GCC-RELEASE/project\_hp/asdk/make’  
> make[3]: Entering directory ‘/cygdrive/d/2.Project/1.xPod/Software/ambd\_sdk-master/project/realtek\_amebaD\_va0\_example/GCC-RELEASE/project\_hp/asdk/make/rtl\_bluetooth’  
> make -C bt\_beacon all  
> make[4]: Entering directory ‘/cygdrive/d/2.Project/1.xPod/Software/ambd\_sdk-master/project/realtek\_amebaD\_va0\_example/GCC-RELEASE/project\_hp/asdk/make/rtl\_bluetooth/bt\_beacon’  
> make[4]: \*\*\* No rule to make target ‘/cygdrive/d/2.Project/1.xPod/Software/ambd\_sdk-master/project/realtek\_amebaD\_va0\_example/GCC-RELEASE/project\_hp/asdk/../../../../../component/common/bluetooth/realtek/sdk/board/common/os/freertos/osif\_freertos.o’, needed by ‘CORE\_TARGETS’. Stop.  
> make[4]: Leaving directory ‘/cygdrive/d/2.Project/1.xPod/Software/ambd\_sdk-master/project/realtek\_amebaD\_va0\_example/GCC-RELEASE/project\_hp/asdk/make/rtl\_bluetooth/bt\_beacon’  
> make[3]: \*\*\* [Makefile:25: all] Error 2  
> make[3]: Leaving directory ‘/cygdrive/d/2.Project/1.xPod/Software/ambd\_sdk-master/project/realtek\_amebaD\_va0\_example/GCC-RELEASE/project\_hp/asdk/make/rtl\_bluetooth’  
> make[2]: \*\*\* [Makefile:14: all] Error 2  
> make[2]: Leaving directory ‘/cygdrive/d/2.Project/1.xPod/Software/ambd\_sdk-master/project/realtek\_amebaD\_va0\_example/GCC-RELEASE/project\_hp/asdk/make’  
> make[1]: \*\*\* [Makefile:165: make\_subdirs] Error 2  
> make[1]: Leaving directory ‘/cygdrive/d/2.Project/1.xPod/Software/ambd\_sdk-master/project/realtek\_amebaD\_va0\_example/GCC-RELEASE/project\_hp/asdk’  
> make: \*\*\* [Makefile:17: all] Error 2

* * *

I think the BT example is not existed in the ambd\_sdk-master project.  
How can I get it?

---

<div class="post-metadata">

**Author:** ![xidameng](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/xidameng/32/18_2.png) [@xidameng](https://forum.amebaiot.com/u/xidameng)\
**Post date:** [April 13, 2021, 6:36am UTC](https://forum.amebaiot.com/t/rtl8722dm-bt-example/462/2 "2021-04-13T06:36:41Z")

</div>

Hi @cavo Joseph,

I assume you downloaded it and used the open source version of the Realtek Standard SDK, if that’s the case, then I regret to let you know that BT example is currently only available on Arduino IDE platform.

---

<div class="post-metadata">

**Author:** ![xidameng](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/xidameng/32/18_2.png) [@xidameng](https://forum.amebaiot.com/u/xidameng)\
**Post date:** [April 13, 2021, 6:38am UTC](https://forum.amebaiot.com/t/rtl8722dm-bt-example/462/3 "2021-04-13T06:38:30Z")

</div>

However, this should not interfere with building the project, you should be able to build the project even without changing anything

---

<div class="post-metadata">

**Author:** ![cavo](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cavo](https://forum.amebaiot.com/u/cavo)\
**Post date:** [April 13, 2021, 7:02am UTC](https://forum.amebaiot.com/t/rtl8722dm-bt-example/462/4 "2021-04-13T07:02:38Z")

</div>

I have already implemented the functions(LED display algorithm, WIFI Protocol, etc) using by ambd\_sdk-master and amazon-freertos project. I just need BT fuction.  
Is there any solution?

thanks.

---

<div class="post-metadata">

**Author:** ![xidameng](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/xidameng/32/18_2.png) [@xidameng](https://forum.amebaiot.com/u/xidameng)\
**Post date:** [April 13, 2021, 7:20am UTC](https://forum.amebaiot.com/t/rtl8722dm-bt-example/462/5 "2021-04-13T07:20:01Z")

</div>

If you are using open source SDK, then Arduino SDK is you only option, take a look below

> <https://github.com/ambiot/ambd_arduino/blob/master/Arduino_package/hardware/system/libameba/sdk/component/common/bluetooth/realtek/sdk/example/bt_beacon/bt_beacon_app.h>

If you wish to access more source code, you may sign NDA with Realtek through your company
