0
bbebmsa

使用IAR IDE调试时,运行正常,使用help命令时,会正常回显。

======================================================
===> Flash Init

===> Flash Init Done, vendor: [32mMXIC[m

===> Flash Write, start 0, addr 595e8, offset 0, count 14056, buf 10003a00
Write Binary....Write Binary....Done

<=== Flash Write Done 3708

===> Flash Init

===> Flash Init Done, vendor: [32mMXIC[m
[36mOTA addr is 50000 [m

===> Flash Write, start b000, addr 3708, offset 0, count 270384, buf 10003a00
Write Binary....Write Binary....Done

<=== Flash Write Done 4d03c

===> Flash Init

===> Flash Init Done, vendor: [32mMXIC[m

===> Flash Write, start 0, addr 4d03c, offset 0, count 49872, buf 10003a00
Write Binary....Write Binary....Done

<=== Flash Write Done 59318
<RTL8195A>=========================================================

ROM Version: 0.3

Build ToolChain Version: gcc version 4.8.3 (Realtek ASDK-4.8.3p1 Build 2003)

=========================================================
Check boot type form eFuse
SPI Initial
Image1 length: 0x36e8, Image Addr: 0x10000bc8
Image1 Validate OK, Going jump to Image1
===== Enter Image 1 ====

load NEW fw 0
Flash Image2:Addr 0xb000, Len 270380, Load to SRAM 0x10006000
Image3 length: 0xc2cc, Image3 Addr: 0x30000000
Img2 Sign: RTKWin, InfaStart @ 0x10006079
===== Enter Image 2 ====

IDE -> GO

#
Initializing WIFI ...
Start LOG SERVICE MODE

# [ATW0]: _AT_WLAN_SET_SSID_ [iot]
[ATW1]: _AT_WLAN_SET_PASSPHRASE_ [rtl00000]
[ATWC]: _AT_WLAN_JOIN_NET_

Joining BSS by SSID iot...

RTL8195A[Driver]: set ssid [iot]

RTL8195A[Driver]: start auth to 10:c3:7b:41:71:0b

RTL8195A[Driver]: auth success, start assoc

RTL8195A[Driver]: association success(res=1)

RTL8195A[Driver]: set pairwise key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4)

RTL8195A[Driver]: set group key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4) keyid:2

Connected after 258ms.

IP address : 192.168.2.149

Got IP after 786ms.

WIFI initialized

init_thread(56), Available heap 0xa148

=========================================

 

但是退出IAR IDE后,设备好像没有正常运行,help命令无效,log提示和IDE下复位也不同,人工按下RTL8710_DEBUG_V1.0的复位键,log提示也是不正常的,如下:

===============================

\0<RTL8195A>=========================================================

ROM Version: 0.3

Build ToolChain Version: gcc version 4.8.3 (Realtek ASDK-4.8.3p1 Build 2003)

=============================================
Check boot type form eFuse
SPI Initial
Image1 length: 0x36e8, Image Addr: 0x10000bc8
Image1 Validate OK, Going jump to Image1
===== Enter Image 1 ====

load NEW fw 0
Flash Image2:Addr 0xb000, Len 270380, Load to SRAM 0x10006000
Image3 length: 0xc2cc, Image3 Addr: 0x30000000

=============================================

问题1:

请问是什么原因?

 

 

问题2:

另外,使用IAR的 Make & Restart Debugger时,能自动连接上原先设置好的AP。但是,在debug状态下,按Reset:Software 按钮时,就无法自动连接上Ap,log提示如下:

=====================

Joining BSS by SSID iot...

RTL8195A[Driver]: set ssid [iot]
Drop packet! crc_err = 0, icv_err = 0, rx_pkt_len = 0, skb_pkt_len = 1578

ERROR: Can't connect to AP
WIFI initialized

init_thread(56), Available heap 0xa480
auto reconnect ...

RTL8195A[Driver]: set ssid [iot]

auto reconnect ...

================================

 

 

 

 

 

 

=

sean 回答了