建立基於mk3080 helloworld工程mk3080開發板介紹
參考阿里官方-WiFi開發板使用指南
產品特性及引數mk3080 指的是這個開發板的名稱,內部有一個基於wifi SOC晶片
開發板介面結構圖---- TOP圖 PCB板的頂層引腳分配圖-BOTTOM PCB板的底層引腳介面描述建立基於mk3080 helloworld工程建立命令lzd@lzd:~/alios/demo$ aos create project -b mk3080 -t helloworld_demo helloworld_mk3080
編譯生成bin檔案燒寫到開發板編譯命令aos make
初次編譯
當第一次編譯的時候,我們是沒有基於這個RTL8710BN這個晶片編譯工具,aos-cube工具會幫助我們自動下載
編譯資訊# 列印aos版本號aos-cube version: 0.5.11# 檢查 SDK否正確Parsing all components ...# 開始編譯,列印編譯的配置資訊 app是什麼 開發板是什麼Build Configuration:====================App: helloworld_mk3080Board: mk3080====================Creating /home/lzd/project/helloworld_mk3080/out/config/autoconf.h ...Making config file for first time# 檢查工程當中使用的元件是否完整processing components: helloworld_mk3080 mk3080 app_adapterboot version:boot-1.0.0-20200706.232629# 下面都是我們編譯helloworld工程,所需要的AliOS Things提供的元件 重點分析helloworld工程的原因*** All Components: helloworld_mk3080 mk3080 app_adapter osal_aos mcu_rtl8710bn kernel_init network rhino arch_armv7m newlib_stub lwip netmgr debug ulog lib_rbtree vfs kv yloop bootloaderboot version:boot-1.0.0-20200706.232629Build AOS Now# 獲取編譯工具鏈路徑TOOLCHAIN_PATH=## 根據工程中使用的元件進行編譯----生成.o檔案Compiling helloworld_mk3080Compiling board_mk3080Compiling app_adapterCompiling osal_aosCompiling mcu_rtl8710bnCompiling rhinoCompiling kernel_initCompiling arch_armv7mCompiling newlib_stubCompiling lwipCompiling netmgrCompiling debugCompiling ulogCompiling lib_rbtreeCompiling vfsCompiling kvCompiling yloop# 根據不同的元件生成 不同元件的.a 靜態庫Making /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/helloworld_mk3080.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/board_mk3080.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/app_adapter.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/osal_aos.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/mcu_rtl8710bn.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/kernel_init.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/rhino.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/arch_armv7m.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/newlib_stub.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/lwip.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/netmgr.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/debug.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/ulog.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/lib_rbtree.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/vfs.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/kv.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/yloop.a# 生成可執行程式Making [email protected]# 重點關注這個.bin----最終要燒錄到開發板中Making [email protected] [email protected] MEMORY MAP |=================================================================|| MODULE | ROM | RAM ||=================================================================|| arch_armv7m | 2173 | 0 || board_mk3080 | 624 | 36 || debug | 3471 | 24 || helloworld_mk3080 | 141 | 12 || kernel_init | 90 | 0 || kv | 2325 | 24 || libc_nano | 11395 | 464 || libgcc | 3384 | 0 || lib_platform | 5068 | 3256 || lib_wlan | 321 | 4 || mcu_rtl8710bn | 9130 | 1156 || newlib_stub | 306 | 0 || osal_aos | 986 | 0 || rhino | 12175 | 7688 || ulog | 377 | 7 || vfs | 1092 | 1113 || yloop | 1303 | 32 || *fill* | 109 | 32 ||=================================================================|| TOTAL (bytes) | 54470 | 13848 ||=================================================================|Linux64 /home/lzd/AliOS-Things helloworld_mk3080 mk3080 /home/lzd/AliOS-Things/build/compiler/gcc-arm-none-eabi/Linux64/bin/Generate Standard Images: /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/binary/[email protected] Raw OTA image: /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/binary/helloworld_mk3080@mk3080_ota.bin ...Generate Compressed OTA image: /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/binary/helloworld_mk3080@mk3080_ota.bin.xz ...57892df2fb680de2127294ae987bc09d86c2f36272bd883f1da6c31f1013a121a07cdf4077# 編譯完成資訊Build complete: helloworld_mk3080@mk3080# 第二次編譯 編譯生成的目標為boot程式-------這是RTL8710的特性,也是AliOS Things做的bootloader,做OTA使用Making config file for first timeprocessing components: mk3080 mcu_rtl8710bnboot version:boot-1.0.0-20200706.232637*** All Components: mk3080 mcu_rtl8710bn bootloaderboot version:boot-1.0.0-20200706.232637Build AOS Second Boot NowTOOLCHAIN_PATH=Compiling mcu_rtl8710bnCompiling board_mk3080Compiling bootloaderMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/board_mk3080_2ndboot.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/mcu_rtl8710bn_2ndboot.aMaking /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/libraries/bootloader.aMaking [email protected] [email protected] [email protected] MEMORY MAP |=================================================================|| MODULE | ROM | RAM ||=================================================================|| board_mk3080_2ndboot | 372 | 0 || bootloader | 3145 | 64 || libc | 148 | 0 || mcu_rtl8710bn_2ndboot | 1823 | 1192 || ota_updater | 12013 | 20 || *fill* | 27 | 12 ||=================================================================|| TOTAL (bytes) | 17528 | 1288 ||=================================================================|Linux64 /home/lzd/AliOS-Things helloworld_mk3080 mk3080 /home/lzd/AliOS-Things/build/compiler/gcc-arm-none-eabi/Linux64/bin/Generate Second Boot Images: /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/binary/mk3080.2ndboot.binGenerate ALL Standard Flash Images: /home/lzd/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/binary/[email protected]# 編譯完成Build 2nd boot complete: helloworld_mk3080@mk3080Check if required tools for mk3080 exist
燒寫helloworld映象到目標板檢視工程生成映象lzd@ubuntu:~/project/helloworld_mk3080/out/helloworld_mk3080@mk3080/binary$ lltotal 5396drwxrwxr-x 2 lzd lzd 4096 Jul 6 23:26 ./drwxrwxr-x 8 lzd lzd 4096 Jul 6 23:26 ../-rw-rw-r-- 1 lzd lzd 4496 Jul 6 23:26 boot_all.bin-rw-rw-r-- 1 lzd lzd 1077968 Jul 6 23:26 [email protected] 1 lzd lzd 1386568 Jul 6 23:26 [email protected]*-rw-rw-r-- 1 lzd lzd 162749 Jul 6 23:26 [email protected] 1 lzd lzd 2819756 Jul 6 23:26 [email protected] 1 lzd lzd 1700 Jul 6 23:26 helloworld_mk3080@mk3080_map.csv-rw-rw-r-- 1 lzd lzd 57920 Jul 6 23:26 helloworld_mk3080@mk3080_ota.bin-rw-rw-r-- 1 lzd lzd 36300 Jul 6 23:26 helloworld_mk3080@mk3080_ota.bin.xz-rwxrwxr-x 1 lzd lzd 221364 Jul 6 23:26 [email protected]*-rwxrwxr-x 1 lzd lzd 17640 Jul 6 23:26 image2_2ndboot.bin*-rw-rw-r-- 1 lzd lzd 2105 Jul 6 23:26 link.opts-rw-rw-r-- 1 lzd lzd 277 Jul 6 23:26 readme.txt
匯出映象檔案到windows系統匯出命令lzd@lzd:~/alios/demo/helloworld/out/helloworld@mk3080/binary$ cp [email protected] /mnt/hgfs/share/
開啟燒錄工具燒錄軟體使用windows電腦檢視串列埠號配置開發板進入燒寫模式mk3080開發板除錯串列埠除錯工具SecrueCRT安裝破解
參考破解文件
SecrueCRT配置串列埠通訊檢視log資訊
最新評論