一 , bootloader 升级踩坑。
模块升级需要进入bootloader,通过串口来升级,开始短路帽各种设置,而而可以,很不稳定,折腾了挺长实际,后面发现R4,R5上拉电阻不知为啥厂家没焊接,将R4,R5焊锡短路,每次能稳定进入bootloader。
二, 环境配置编译升级。
先到兆易网站 https://www.gd32mcu.com/cn/download/7?kw=GD32VW5 下载以下文件:
GD32 All-In-One Programmer ---- 基于芯片内部Bootloader的编程软件,通讯接口支持UART和USB,支持对MCU的Flash和选项字节进行编程/擦除/读取等基本操作。
GD32 Embedded Builder ---- GD32MCU的集成开发环境,支持图形化配置、代码生成、工程编译和调试。
GD32VW55x Wi-Fi&BLE SDK ---- GD32VW553系列Wi-Fi & BLE SDK
GD32VW553 Demo Suites ---- GD32VW553系列开发板套件。支持GD32VW553H_EVAL板。
GD32VW553的开发环境使用比较快捷方便,不需要安装,注册。EmbeddedBuilder_v1.4.7.26843.7z解压后,运行Embedded Builder.exe就可以使用。
选择Import projects。
选择sdk目录。
选择需要编译的项目,右键build projects。等待编译完成,生成https_client.bin。
接下来按下面接线连接好串口。
打开GD32AllInOneProgrammer.exe,使用短路帽短接J3的boot0.按复位按键进入bootloader模式。
三,wifi 连接测试。
下载完成去掉J3短路帽。 按复位进入正常工作模式。
这时GD32VW553连接上AP,并连接成功到www.baidu.com,下载网站数据。以下是启动连接的log:
[12:10:06.775]接收←Chip: GD32VW55x
=== RF initialization finished ===
[12:10:06.867]接收←=== WiFi calibration done ===
=== PHY initialization finished ===
Start Wi-Fi scan.
[12:10:07.503]接收←Start Wi-Fi connection.
[12:10:08.122]接收←[0] (-35 dBm) CH= 11 BSSID=00:ba:52:6b:00:3a SSID=h [RSN:WPA-PSK CCMP/CCMP]
[12:10:08.169]接收←MAC: auth req send
MAC: auth rsp received, status = 0
MAC: assoc req send
MAC: assoc rsp received, status = 0
[12:10:08.524]接收←WPA: 4-1 received
WPA: 4-2 send
[12:10:08.602]接收←WPA: 4-3 received
WPA: 4-4 send
[12:10:09.817]接收←WIFI_MGMT: IPv4 addr got 192.168.0.102
Start HTTPS client.
. Seeding the random number generator...
. Loading the CA root certificate ... ok (0 skipped)
. Connecting to tcp/www.baidu.com/443...
[12:10:09.925]接收← ok
. Setting up the SSL/TLS structure... ok
. Performing the SSL/TLS handshake...
[12:10:10.017]接收←Verify requested for (Depth 2):
cert. version : 3
serial number : 01:FF:5F:16:9D:FF:07:35:2B:60:65:A5:A4
issuer name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
subject name : OU=GlobalSign Root CA - R3, O=GlobalSign, CN=GlobalSign
issued on : 2018-09-19 00:00:00
expires on : 2028-01-28 12:00:00
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=true
key usage : Key Cert Sign, CRL Sign
Certificate verified without error flags
Verify requested for (Depth 1):
cert. version : 3
serial number : 01:FF:5F:16:9D:FF:07:35:2B:60:65:16:B4
issuer name : OU=GlobalSign Root CA - R3, O=GlobalSign, CN=GlobalSign
subject name : C=BE, O=GlobalSign nv-sa, CN=GlobalSign RSA OV SSL CA 2018
issued on : 2018-11-21 00:00:00
expires on : 2028-11-21 00:00:00
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=true, max_pathlen=0
key usage : Digital Signature, Key Cert Sign, CRL Sign
Certificate verified without error flags
Verify requested for (Depth 0):
[12:10:10.157]接收←cert. version : 3
serial number : 55:40:03:A6:5E:B6:81:E0:6F:2A:A8:3B
issuer name : C=BE, O=GlobalSign nv-sa, CN=GlobalSign RSA OV SSL CA 2018
subject name : C=CN, ST=beijing, L=beijing, O=Beijing Baidu Netcom Science Technology Co., Ltd, CN=baidu.com
issued on : 2024-07-08 01:41:02
expires on : 2025-08-09 01:41:01
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=fals
[12:10:10.203]接收←e
subject alt name : baidu.com, baifubao.com, www.baidu.cn, www.baidu.com.cn, mct.y.nuomi.com, apollo.auto, dwz.cn, *.baidu.com, *.baifubao.com, *.baidustatic.com, *.bdstatic.com, *.bdimg.com, *.hao123.com, *.nuomi.com, *.chuanke.com, *.trustgo.com, *.bce.baidu.com, *.eyun.baidu.com, *.map.baidu.com, *.mbd.baidu.com, *.fanyi.baidu.com, *.baidubce.com, *.mipcdn.com, *.news.baidu.com, *.baidupcs.com, *.aipage.com, *.aipage.cn, *.bcehost.com, *.safe.baidu.com, *.im.baidu.com, *.baiducontent.com, *.dlnel.com, *.dlnel.org, *.dueros.baidu.com, *.su.baidu.com, *.91.com Certificate verified without error flags
[12:10:10.279]接收← ok
. Verifying peer X.509 certificate... ok
> Write to server: 39 bytes written
HEAD https://www.baidu.com HTTP/1.0
< Read from server:
701 bytes read
HTTP/1.0 200 OK
Accept-Ranges: bytes
Cache-Control: max-age=1
Content-Length: 7382
Content-Type: text/html
Date: Sun,
[12:10:10.356]接收← 06 Apr 2025 04:10:09 GMT
Etag: "1cd6-5480030886ba0"
Expires: Sun, 06 Apr 2025 04:10:10 GMT
Last-Modified: Wed, 08 Feb 2017 07:55:35 GMT
P3p: CP=" OTI DSP COR IVA OUR IND COM "
P3p: CP=" OTI DSP COR IVA OUR IND COM "
Server: Apache
Set-Cookie: BAIDUID=89DBA6AF444A01AAA51A5B545AF25A95:FG=1; expires=Mon, 06-Apr-26 04:10:09 GMT; max-age=31536000; path=/; domain=.baidu.com; version=1
Set-Cookie: BAIDUID=89DBA6AF444A01DD61711FF62063510D:FG=1; expires=Mon, 06-Apr-26 04:10:09 GMT; max-age=31536000; path=/; domain=.baidu.com; version=1
Vary: Accept-Encoding,User-Agent
Last error was: -30848 -
Exit ssl client task: stack high water mark = 2926
Stop Wi-Fi connection.
MAC: deauth send
MGMT: disconnect complete
the test has ended.

