# BLE beacon build

**URL:** <https://forum.amebaiot.com/t/ble-beacon-build/782>\
**Category:** USB\
**Tags:** evb-bw16\
**Created:** [September 14, 2021, 2:49am UTC](https://forum.amebaiot.com/t/ble-beacon-build/782 "2021-09-14T02:49:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![brcisna](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@brcisna](https://forum.amebaiot.com/u/brcisna)\
**Post date:** [September 14, 2021, 2:49am UTC](https://forum.amebaiot.com/t/ble-beacon-build/782/1 "2021-09-14T02:49:55Z")

</div>

Hello All,

Trying to find out if there are build options someplace in the Standard SDK to compile a BLE beacon bit the RTL8720dn rtlduino , BW16 module ? There none that I see in the ‘examples’ directory. Am very illetierate on this,and if there are some examples would like to try and learn a little more on this.

Thanks

---

<div class="post-metadata">

**Author:** ![wyy](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wyy](https://forum.amebaiot.com/u/wyy)\
**Post date:** [September 14, 2021, 6:00am UTC](https://forum.amebaiot.com/t/ble-beacon-build/782/2 "2021-09-14T06:00:57Z")

</div>

the BLE beacon example can be enabled by using make `menuconfig -> config BT -> BT beacon`.  
the specific example files are located at `\component\common\bluetooth\realtek\sdk\example`

---

<div class="post-metadata">

**Author:** ![brcisna](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@brcisna](https://forum.amebaiot.com/u/brcisna)\
**Post date:** [September 14, 2021, 12:08pm UTC](https://forum.amebaiot.com/t/ble-beacon-build/782/3 "2021-09-14T12:08:19Z")

</div>

Hi wyy,

Thank You for this information. I will try this. Still learning the Amebad SDK setup. I will learn something out of this.

---

<div class="post-metadata">

**Author:** ![brcisna](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@brcisna](https://forum.amebaiot.com/u/brcisna)\
**Post date:** [September 14, 2021, 11:18pm UTC](https://forum.amebaiot.com/t/ble-beacon-build/782/4 "2021-09-14T23:18:14Z")

</div>

Hi wyy,

As soon as i enabled the BLE-\> Beacon and saved as alternate file. Then done a make all in the project\_hp directory am now getting the following error:

```auto
mbd_sdk/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/soc/realtek/amebad/fwlib/usrcfg/rtl8721dhp_intfcfg.c:46:2: error: #error "You should allocate flash sectors to for FTL physical map as following, then set FTL_MEM_CUSTEM to 1. For more information, Please refer to Application Note, FTL chapter. "
 #error "You should allocate flash sectors to for FTL physical map as following, then set FTL_MEM_CUSTEM to 1. For more information, Please refer to Application Note, FTL chapter. "

```

I did look in the application notes PDF at the FTL chapter but dont really know what to do,to circumvent the error that is showing here?

Thank You

---

<div class="post-metadata">

**Author:** ![brcisna](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@brcisna](https://forum.amebaiot.com/u/brcisna)\
**Post date:** [September 15, 2021, 1:06am UTC](https://forum.amebaiot.com/t/ble-beacon-build/782/5 "2021-09-15T01:06:51Z")

</div>

Ok,

Got through the previous error.and done as recommended in the Appication Notes PDF.  
Now am getting the following error( after enabling BLE-\> beacon.)

```auto
/home/brcisna/MyPrograms/ambd_sdk/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/at_cmd/atcmd_bt.c:977: undefined reference to `bt_beacon_app_init'
/home/brcisna/MyPrograms/ambd_sdk/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../../../../../component/common/api/at_cmd/atcmd_bt.c:985: undefined reference to `bt_beacon_app_deinit'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:358: linker_image2_ns] Error 1
make[1]: Leaving directory '/home/brcisna/MyPrograms/ambd_sdk/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk'
make: *** [Makefile:17: all] Error 2

```

---

<div class="post-metadata">

**Author:** ![wyy](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wyy](https://forum.amebaiot.com/u/wyy)\
**Post date:** [September 15, 2021, 1:50am UTC](https://forum.amebaiot.com/t/ble-beacon-build/782/6 "2021-09-15T01:50:24Z")

</div>

It is my mistake, you are right that the BT beacon example has not been released in the current GitHub version of the SDK. The examples currently available are central, peripheral, scatternet and config.

---

<div class="post-metadata">

**Author:** ![Cool](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@Cool](https://forum.amebaiot.com/u/Cool)\
**Post date:** [February 2, 2024, 10:34am UTC](https://forum.amebaiot.com/t/ble-beacon-build/782/7 "2024-02-02T10:34:20Z")

</div>

Hello ,I have meet the same situation.by use make menuconfig command,Enable BT and BT\_Peripheral ,then build,but the error still happen. how can I solve the issue，waitting for you help,thanks

---

<div class="post-metadata">

**Author:** ![Kelvin\_Huang](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kelvin_huang/32/2130_2.png) [@Kelvin\_Huang](https://forum.amebaiot.com/u/Kelvin_Huang)\
**Post date:** [February 5, 2024, 2:23am UTC](https://forum.amebaiot.com/t/ble-beacon-build/782/8 "2024-02-05T02:23:27Z")

</div>

Hi @Cool ,

Can I check what example are you running and can you screenshot what error etc?

Would you mind sharing the code that you are building?

Thank you.

---

<div class="post-metadata">

**Author:** ![M-ichae-l](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/m-ichae-l/32/33_2.png) [@M-ichae-l](https://forum.amebaiot.com/u/M-ichae-l)\
**Post date:** [February 5, 2024, 3:04am UTC](https://forum.amebaiot.com/t/ble-beacon-build/782/9 "2024-02-05T03:04:44Z")

</div>

> [@Cool](#):
>
> Enable

> <https://github.com/ambiot/ambd_sdk/blob/dev/project/realtek_amebaD_va0_example/inc/inc_hp/platform_opts_bt.h>

looks like the BT and BT\_Peripheral already enabled.
