# Use AmebaD Arduino 3.0.9-build20210514 compile error

**URL:** https://forum.amebaiot.com/t/use-amebad-arduino-3-0-9-build20210514-compile-error/542
**Category:** SDK
**Tags:** rtl872xd
**Created:** [May 20, 2021, 9:32am UTC](https://forum.amebaiot.com/t/use-amebad-arduino-3-0-9-build20210514-compile-error/542 "2021-05-20T09:32:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Alphi\_Jiang](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/alphi_jiang/32/379_2.png) [@Alphi\_Jiang](https://forum.amebaiot.com/u/Alphi_Jiang)
#### Post date: [May 20, 2021, 9:32am UTC](https://forum.amebaiot.com/t/use-amebad-arduino-3-0-9-build20210514-compile-error/542/1 "2021-05-20T09:32:26Z")

</div>

when i upgrade to ambd\_arduino early 3.0.9-build20210514 version,  
compile has an error and missing lib\_wifi\_fw and lib\_wifi\_ucps\_fw library.

1. variant.h  
**rtlw\_calloc** function prototyping is conflicting  

2. library  
with link-statge told not found lib\_wifi\_fw.a …  
 ![Image 1](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/1X/b0d802ce62a9e82f3ed1b9dc1009ea3bfd3b39a6.png)

Anyway, I copied these two libraries from the previous version to theat. It seems that the connection to 5G is smoother than the previous version. However, I often have problems getting the data for the first time when I use WebScoket. It only works when reconnecting to the server. And the disconnection rate also provides

---

<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: [May 20, 2021, 10:11am UTC](https://forum.amebaiot.com/t/use-amebad-arduino-3-0-9-build20210514-compile-error/542/2 "2021-05-20T10:11:36Z")

</div>

Yes, this is right, there are a few archive libraries defined in the “platform.txt” missing from the variants directory, which cause the issue, we will look into it

---

<div class="post-metadata">

### Author: ![Alphi\_Jiang](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/alphi_jiang/32/379_2.png) [@Alphi\_Jiang](https://forum.amebaiot.com/u/Alphi_Jiang)
#### Post date: [May 20, 2021, 10:14am UTC](https://forum.amebaiot.com/t/use-amebad-arduino-3-0-9-build20210514-compile-error/542/3 "2021-05-20T10:14:15Z")

</div>

so i need use lib\_wifi\_fw and lib\_wifi\_upcs\_fw library or comment define?

---

<div class="post-metadata">

### Author: ![Alphi\_Jiang](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/alphi_jiang/32/379_2.png) [@Alphi\_Jiang](https://forum.amebaiot.com/u/Alphi_Jiang)
#### Post date: [May 20, 2021, 10:44am UTC](https://forum.amebaiot.com/t/use-amebad-arduino-3-0-9-build20210514-compile-error/542/4 "2021-05-20T10:44:31Z")

</div>

when comment platform.txt lib\_wifi\_fw.a and lib\_wifi\_ipcs\_fw.a , compile success.  
but i change to 5G band . keep wifi init stage ,

 ![Image 2](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/1X/3e57da86e8878f1671535979ce2b7afaffb0f360.png)

i try to many times, some time connected AP success(AP distance to node only 200cm)

---

<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: [May 20, 2021, 11:02am UTC](https://forum.amebaiot.com/t/use-amebad-arduino-3-0-9-build20210514-compile-error/542/5 "2021-05-20T11:02:19Z")

</div>

the latest SDK has fixed the issue. Update early access SDK 3.0.9-build20210520

---

<div class="post-metadata">

### Author: ![Alphi\_Jiang](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/alphi_jiang/32/379_2.png) [@Alphi\_Jiang](https://forum.amebaiot.com/u/Alphi_Jiang)
#### Post date: [May 20, 2021, 11:17am UTC](https://forum.amebaiot.com/t/use-amebad-arduino-3-0-9-build20210514-compile-error/542/7 "2021-05-20T11:17:42Z")

</div>

@M-ichae-l I upgrade to the latest version. seems is all right. and  
I have another question as as below hyper-Link

[SSL Issue](https://forum.amebaiot.com/t/when-use-ssl-in-arduino-issue/535)
