星通智联TB01 W600芯片 RT-Thread在苹果MacOS+GCC环境下的编译与固件刷写

简介

到手了一块W600芯片的星通智联TB01,与ESP8266相似,自带wifi,但却芯片内置1M 的存储,并且可以使用RT-Thread系统,于是上手耍起来。
在这里插入图片描述在这里插入图片描述

刚拿到板子,发现真的非常小巧,呈星型排布的蓝色LED非常有特色。板子上只有个MicroUSB,上电与刷写固件均使用这个口,可以说是非常简洁了。两边共放置了24个排针插孔,赠送插针没有焊,整体看着非常舒爽。

下载官方的SDK(从QQ群中获取,github上也有),展开后,非常简洁

➜  rt tree RT-Thread_W60X_SDK -L 1
RT-Thread_W60X_SDK
├── README.pdf
├── docs
├── drivers
├── examples
├── libraries
├── rt-thread
└── tools

6 directories, 1 file

相关的文档也非常齐全,看着内心无比愉悦,赶紧上手搞起来!

环境

我使用的环境是MacOS+GCC

点灯

上手一块板子,点灯可以说是第一课了。这里官方提供的examples可以说是非常完整了:

➜  rt tree RT-Thread_W60X_SDK/examples -L 1
RT-Thread_W60X_SDK/examples
├── 01_basic_led_blink
├── 02_basic_key
├── 03_basic_rgb_led
├── 04_basic_beep
├── 05_basic_ir
├── 06_driver_lcd
├── 07_driver_temp_humi
├── 08_driver_als_ps
├── 09_component_fs_tf_card
├── 10_component_fal
├── 11_component_kv
├── 12_component_fs_flash
├── 13_component_ulog
├── 14_component_adbd
├── 15_component_micropython
├── 16_iot_wifi_manager
├── 17_iot_web_config_wifi
├── 18_iot_airkiss
├── 20_iot_at_server
├── 21_iot_mqtt
├── 22_iot_http_client
├── 23_iot_web_server
├── 24_iot_websocket
├── 25_iot_cjson
├── 26_iot_mbedtls
├── 27_iot_hw_crypto
├── 28_iot_ota_ymodem
├── 29_iot_ota_http
├── 30_iot_netutils
├── 31_iot_cloud_rtt
├── 32_iot_cloud_onenet
├── 33_iot_cloud_ali_iotkit
├── 34_iot_cloud_ms_azure
├── 35_iot_cloud_tencent
└── 36_iot_board_demo

35 directories, 0 files

我们首先使用第一个 01_basic_led_blink 进行学习和上手。

➜  rt tree RT-Thread_W60X_SDK/examples/01_basic_led_blink -L 1 
RT-Thread_W60X_SDK/examples/01_basic_led_blink
├── Bin
├── Kconfig
├── README.md
├── ROM.ini
├── SConscript
├── SConstruct
├── applications
├── build
├── cconfig.h
├── makeimg.bat
├── makeimg.py
├── project.ewp
├── project.eww
├── project.uvoptx
├── project.uvprojx
├── rtconfig.h
├── rtconfig.py
├── rtconfig.pyc
├── rtthread-w60x.map
├── rtthread.bin
├── rtthread.elf
├── template.ewp
├── template.uvoptx
└── template.uvprojx

3 directories, 21 files

这里默认有Keil的工程文件,是针对使用Windows+keil的开发者使用的。而我是Mac用户,习惯使用GCC,这里就忽略那些工程文件了。

修改源码

直接打开 examples/01_basic_led_blink/applications 就可以看到main.c,根据相关文档,我们这里只把led灯的引脚改为TB01的一个LED即可,不过我这里做了一点点小修改:

#include <rtth
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值