# Arduino Ameba SDK - How to compile?

**URL:** <https://forum.amebaiot.com/t/arduino-ameba-sdk-how-to-compile/2288>\
**Category:** SDK\
**Tags:** evb-bw16, rtl872xd\
**Created:** [October 10, 2023, 8:59pm UTC](https://forum.amebaiot.com/t/arduino-ameba-sdk-how-to-compile/2288 "2023-10-10T20:59:35Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![nic\_ea](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/nic_ea/32/1683_2.png) [@nic\_ea](https://forum.amebaiot.com/u/nic_ea)\
**Post date:** [October 11, 2023, 4:40pm UTC](https://forum.amebaiot.com/t/arduino-ameba-sdk-how-to-compile/2288/7 "2023-10-11T16:40:01Z")

</div>

Hello again,  
I tried compiling using the CLI with the clean option enabled but no success. No redefined macros in main.c (MQTT\_TLS.ino).  
I used this command:  
`arduino-cli compile --fqbn realtek:AmebaD:Ai-Thinker_BW16 --clean --verbose MQTT_TLS.ino`  
[This](https://drive.google.com/file/d/1dbA4QUkqLO247Kw0zrhOiV90NbsaXjqZ/view?usp=sharing) is the output (sorry, it is too large that isn’t allowed in Pastebin).

Still, the uploaded binaries (using CLI) are the same and no changes are effective. I guess that what @xidameng says [here](https://forum.amebaiot.com/t/rtl8720dn-ota-update/380/3) is related.

---

_[View the full topic](https://forum.amebaiot.com/t/arduino-ameba-sdk-how-to-compile/2288)._
