--- tags: Arduino,BW16 --- # BW16-rtlduino開光儀式 本文僅支援windows,但其實只有erase的步驟僅支援win,之後就可以用mac/linux了!   * [購買連結](https://www.taiwaniot.com.tw/product/%E7%91%9E%E6%98%B1rtl8720dn%E9%96%8B%E7%99%BC%E6%9D%BF-%E9%9B%99wifi%E4%BD%8E%E5%8A%9F%E8%80%97%E8%97%8D%E7%89%995-0%E6%A8%A1%E7%B5%84-bt16-%E5%AE%89%E4%BF%A1%E5%8F%AF%E5%8E%9F%E5%BB%A0/)(但我是在[某寶](https://item.taobao.com/item.htm?spm=a1z09.2.0.0.49d52e8dcO4tmE&id=642191148136&_u=c27qcht7d5ae)買的) * 非官方教學:[陳亮-RTL8720DN](https://www.instructables.com/RTL8720DN/) * [官方教學](https://www.amebaiot.com/zh/amebad-arduino-getting-started/) * How to erase flash ([link](https://iotforums.com/t/resources-bw16-troubleshooting-guide-3.133/)) # 具體操作步驟如下 #### Step 1. 在 ArduinoIDE,偏好設定,將以下 url 貼上 ``` https://github.com/ambiot/ambd_arduino/raw/master/Arduino_package/package_realtek.com_amebad_index.json ```  #### Step 2. 在 ArduinoIDE,開發板管理員,安裝 Ameba 開發板  #### Step 3. 跳線  #### Step 4. 下載 ImageTool (僅支援 windows) * [下載整包SDK](https://github.com/ambiot/ambd_sdk) * [僅下載ImageTool](https://github.com/Chihhao/Public_Drive/raw/main/ameba_Image_Tool.7z) #### Step 5. 如何進入燒錄模式? (1) 板上有兩顆按鈕: Burn與RST,將其同時按下 (2) 放掉RST,在放掉Burn #### Step 6. 使用 ImageTool 清除 Flash * 使用 ImageTool,設定好 COM,BaudRate=115200,Addr=0x08000000,Size=2048KB (Flash Download區塊的設定不重要) * 燒錄模式,然後按下Erase * 要看到Falsh erase done!才算成功,不成功就多試幾次,可能是你沒有進入到燒錄模式。(Falsh拼錯了!)  #### Step 7. 燒錄Blink * 開啟Arduino,開發板選RTL8720DN(BW16) * 使用標準的範例程式 ```cpp= void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); // turn the LED on delay(1000); // wait for a second digitalWrite(LED_BUILTIN, LOW); // turn the LED off by delay(1000); // wait for a second } ``` * 按下上傳後,要在五秒內進入燒錄模式,要看到Upload Image done.才算成功  #### Step 8. 成功開光 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up