I found that I can wash out the B&T factory program through OTA so that I can update the FW through the Ardunio UART process without failing to load it successfully.
我發現透過OTA方式可以將B&T出廠程式洗掉,這樣之後就可以透過Ardunio UART process 去更新FW而不會無法載入成功.
事先準備
請下載ambd_sdk,連結如下
ambd_sdk
step 1:
connect to AP
連接上AP
#ATPN=myAP,12345678
Wait ATPN response OK
等待ATPN 回應OK
#ATPN OK
Step2
use ambd_sdk image_tools generate OTA.bin ,path:
ambd_sdk\tools\AmbaD\Image_tool\image_tool.exe
Ardunio binray file as below
C:%USER%\AppData\Local\Arduino15\packages\realtek\tools\ameba_d_tools\1.0.5\km0_km4_image2.bin
使用ambd_sdk image_tools 產生OTA bin檔,路徑為
ambd_sdk\tools\AmbaD\Image_tool\image_tool.exe, 並將bin3選擇為Ardunio產生的bin檔案
Ardunio 所產生出的Binary File路徑在C:%USER%\AppData\Local\Arduino15\packages\realtek\tools\ameba_d_tools\1.0.5\km0_km4_imag2.bin
select Arduino geneate bin file
選擇Ardunio 產生的bin檔案
select source binary file
選擇來源檔案
press generate button save to binary to download_server directory and rename to ota.bin
點選generate 按鈕將檔案存在download_server資料夾,並且檔名為ota.bin
Step3
BW16 startup OTA process
BW16 開始進行OTA程序
set OTA Server IP & port (ex: 192.168.88.92, port: 8092)
輸入OTA 主機IP (例如我的為192.168.99.92,port: 8092)
#ATSO=192.168.88.92,8082
You can see that the terminal shows OTA status, when OTA finish, please press the reset button again
[可以看到終端機顯示OTA狀態,當完成之後就可以壓Reset 按鈕
Step4
Now we can download the program via UART in Ardunio, but since the RTLDuino USB chip is connected to LP_UART instead of LOG_UART, we need to jump the cable, please refer to the below picture
PB01->PA07
PB02->PA08
現在我們可以在Ardunio下透過UART 下載程式,但是由於RTLDuino USB晶片是接LP_UART而不是LOG_UART所以我們必須要跳線,請參考下圖
PB01->PA07
PB02->PA08
If entries UART download process, first hold the burn button and reset button and then release the reset button and burn button
要進入UART模式,必須先壓Burn 按鈕然後壓著Reset 再放開Reset 在放開Burn 按鈕