感谢 发烧友学院以及江苏润和软件股份有限公司为我和孩子提供星闪派物联网开发套件。收到了套件包含2个W63 模组开发板和和外设板套件
开发板简介 :
**是一款基于高度集成 2.4GHz Wi-Fi6 、BLE、SLE 为主控芯片的核心板,支持Liteos、OpenHarmony轻量系统,套件 32bit 微处理器(MCU)外设接口包括 SPI、UART、I2C、PWM、GPIO,支持 6 路 13bit 分辨率 ADC,内置 SRAM 和 Flash。用户定义LED,3色;********Typec USB接口, 18 个 GPIO****支持加密低成本高性能开发板
支持板载340com更新程序,可直接集成到底板上* 支持低功耗睡眠和休眠模式* 温度传感器
|
开发板的原理图:
***环境搭建
git clone https://gitee.com/HiSpark/fbb_ws63.git
或者点击直接下载代码包,
我没能运行成功git clone,到网上下载此包:https://gitee.com/HiSpark/fbb_ws63
文件名fbb_ws63-master.zip,279M
编程: **
-
HiSpark Studio 工具,进入欢迎页面,单击“新建工程”,进入新建工程页面。
-
芯片选择“WS63”,开发板选择“ws63”,工程名自定义填写,软件包路径选择SDK代码“fbb_ws63-master\src”层级, 点击“完成”.
.
新建工程成功后如下图所示代码结构
选择案例:点击工具栏中的“系统配置”选项,选择Application目录,勾选“Enable Sample”、“Enable the Sample of peripheral”以及需要要编译的Sample名称,并保存。
. 编译: 点击工具栏中的“重编译”按钮,编译代码
时间比较长。
data size: 16
finally size: 64struct writing in: ./output/ws63/database/cco/system/nv/nv_struct_def.txt
generate rom_in_one done!
[ws63][acore] run custom cmd success!packet success!
INFO:root:elf_path: ./output/ws63/acore/ws63-liteos-app/ws63-liteos-app.elf
INFO:root:map_path: ./output/ws63/acore/ws63-liteos-app/ws63-liteos-app.map
INFO:root:compiler_path: d:\\\\bearpi\\\\HiSpark Studio\\\\tools\\\\Windows\\\\cc_riscv32_musl_fp_win\\\\bin
INFO:root:build_config_path: None
INFO:root:prefix: riscv32-linux-musl
INFO:root:environment: windows
project analysis Done!
================================ [SUCCESS] Took 320.45 seconds ================================
* 终端将被任务重用,按任意键关闭。
5分钟以上。
[烧录镜像]
此程序包括烧录
-
点击工具栏中的“工程配置”, 找到“程序加载”选项, 选择开发板与电脑连接后映射出来的端口。
-
点击工具栏中的“程序加载”,按一下开发板的复位按键就会进行烧录
-
下载完毕后,开发板复位,使用串口工具即可查看运行日志,日志打印波特率为115200。
此程序
com信息:
2024-10-07 07:15:23:165 -> Flash Init Fail! ret = 0x80001341
2024-10-07 07:15:23:167 -> verify_public_rootkey secure verify disable!
2024-10-07 07:15:23:170 -> verify_params_key_area secure verify disable!
2024-10-07 07:15:23:176 -> verify_params_area_info secure verify disable!
2024-10-07 07:15:23:179 -> verify_image_key_area secure verify disable!
2024-10-07 07:15:23:184 -> verify_image_code_info secure verify disable!
2024-10-07 07:15:23:255 -> SSB Uart Init Succ!
2024-10-07 07:15:23:257 -> Flash Init Succ!
2024-10-07 07:15:23:258 -> SSB Flash Init Succ!
2024-10-07 07:15:23:260 -> ETI: 0x0
2024-10-07 07:15:23:263 -> verify_image_key_area secure verify disable!
2024-10-07 07:15:23:268 -> verify_image_code_info secure verify disable!
2024-10-07 07:15:23:280 -> Flashboot Uart Init Succ!
2024-10-07 07:15:23:282 -> Flashboot Malloc Init Succ!
2024-10-07 07:15:23:285 -> Flash Init Succ!
2024-10-07 07:15:23:288 -> [UPG] upgrade init OK!
2024-10-07 07:15:23:289 -> No need to upgrade...
2024-10-07 07:15:23:321 -> flash_encrypt enable.
2024-10-07 07:15:23:321 -> verify_image_key_area secure verify disable!
2024-10-07 07:15:23:322 -> verify_image_code_info secure verify disable!
2024-10-07 07:15:23:613 -> APP|Debug uart init succ.
2024-10-07 07:15:23:615 -> [UPG] upgrade init OK!
2024-10-07 07:15:23:621 -> APP|init_dev_addr, mac_addr:0x 0,0x16,0x3e,0x2b,0x**,0x**,
2024-10-07 07:15:23:624 -> APP|AT uart init succ.
2024-10-07 07:15:23:626 -> los_at_plt_cmd_register EXCUTE
2024-10-07 07:15:23:629 -> los_at_radar_cmd_register EXCUTE
2024-10-07 07:15:23:632 -> APP|no custom at cmd register.
2024-10-07 07:15:23:634 -> APP|WARNING: main_initialise::thread[9] func is null
2024-10-07 07:15:23:640 -> APP|WARNING: main_initialise::thread[12] func is null
2024-10-07 07:15:37:612 -> cpu 0 entering scheduler
boot.
2024-10-07 07:15:37:659 -> Flash Init Fail! ret = 0x80001341
2024-10-07 07:15:37:662 -> verify_public_rootkey secure verify disable!
2024-10-07 07:15:37:664 -> verify_params_key_area secure verify disable!
2024-10-07 07:15:37:671 -> verify_params_area_info secure verify disable!
2024-10-07 07:15:37:673 -> verify_image_key_area secure verify disable!
2024-10-07 07:15:37:679 -> verify_image_code_info secure verify disable!
2024-10-07 07:15:37:749 -> SSB Uart Init Succ!
2024-10-07 07:15:37:751 -> Flash Init Succ!
2024-10-07 07:15:37:752 -> SSB Flash Init Succ!
2024-10-07 07:15:37:754 -> ETI: 0x0
2024-10-07 07:15:37:757 -> verify_image_key_area secure verify disable!
2024-10-07 07:15:37:761 -> verify_image_code_info secure verify disable!
2024-10-07 07:15:37:773 -> Flashboot Uart Init Succ!
2024-10-07 07:15:37:776 -> Flashboot Malloc Init Succ!
2024-10-07 07:15:37:779 -> Flash Init Succ!
2024-10-07 07:15:37:782 -> [UPG] upgrade init OK!
2024-10-07 07:15:37:782 -> No need to upgrade...
2024-10-07 07:15:37:784 -> flash_encrypt enable.
2024-10-07 07:15:37:788 -> verify_image_key_area secure verify disable!
2024-10-07 07:15:37:793 -> verify_image_code_info secure verify disable!
2024-10-07 07:15:38:106 -> APP|Debug uart init succ.
2024-10-07 07:15:38:109 -> [UPG] upgrade init OK!
2024-10-07 07:15:38:115 -> APP|init_dev_addr, mac_addr:0x 0,0x16,0x3e,0x2b,0x**,0x**,
2024-10-07 07:15:38:117 -> APP|AT uart init succ.
2024-10-07 07:15:38:121 -> los_at_plt_cmd_register EXCUTE
2024-10-07 07:15:38:123 -> los_at_radar_cmd_register EXCUTE
2024-10-07 07:15:38:126 -> APP|no custom at cmd register.
2024-10-07 07:15:38:129 -> APP|WARNING: main_initialise::thread[9] func is null
2024-10-07 07:15:38:134 -> APP|WARNING: main_initialise::thread[12] func is null
2024-10-07 07:15:52:106 -> cpu 0 entering scheduler
boot.
2024-10-07 07:15:52:153 -> Flash Init Fail! ret = 0x80001341
2024-10-07 07:15:52:156 -> verify_public_rootkey secure verify disable!
2024-10-07 07:15:52:158 -> verify_params_key_area secure verify disable!
2024-10-07 07:15:52:165 -> verify_params_area_info secure verify disable!
2024-10-07 07:15:52:168 -> verify_image_key_area secure verify disable!
2024-10-07 07:15:52:173 -> verify_image_code_info secure verify disable!
2024-10-07 07:15:52:243 -> SSB Uart Init Succ!
2024-10-07 07:15:52:246 -> Flash Init Succ!
2024-10-07 07:15:52:246 -> SSB Flash Init Succ!
2024-10-07 07:15:52:249 -> ETI: 0x0
2024-10-07 07:15:52:251 -> verify_image_key_area secure verify disable!
2024-10-07 07:15:52:256 -> verify_image_code_info secure verify disable!
2024-10-07 07:15:52:268 -> Flashboot Uart Init Succ!
2024-10-07 07:15:52:270 -> Flashboot Malloc Init Succ!
2024-10-07 07:15:52:273 -> Flash Init Succ!
2024-10-07 07:15:52:276 -> [UPG] upgrade init OK!
2024-10-07 07:15:52:276 -> No need to upgrade...
2024-10-07 07:15:52:279 -> flash_encrypt enable.
2024-10-07 07:15:52:282 -> verify_image_key_area secure verify disable!
2024-10-07 07:15:52:287 -> verify_image_code_info secure verify disable!
2024-10-07 07:15:52:601 -> APP|Debug uart init succ.
2024-10-07 07:15:52:603 -> [UPG] upgrade init OK!
0
|
|
|
|