主题:EM9360 485疑问

  共有58335人关注过本帖    
帅哥哟,离线,有人找我吗?
fengshu777
1楼 信息 | 搜索 | 邮箱


加好友 发短信
EM9360 485疑问  发帖心情 Post By:2015-12-17 15:09:00   [只看该作者]

我们使用的是EM9360,系统是WINCE。在COM4 485RTS设置使用RTS_CONTROL_TOGGLE,但在数据收发时,SA9/GPIO8始终是低电平,请问是什么问题?使用EscapeCommFunction也无法改变电平状态。

  单帖管理 | 引用 | 回复 回到顶部
zxw
2楼


  发帖心情 Post By:2015-12-17 15:39:00   [只看该作者]

 你好!
请问你使用的是CE5还是CE6呢?
ISA上面有没有扩展其它功能模块,使ISA被占用。
方便的话,可以接上超级终端看系统启动信息,看到ISA接口扩展使用了哪些资源

  单帖管理 | 引用 | 回复 回到顶部
帅哥哟,离线,有人找我吗?
fengshu777
3楼 信息 | 搜索 | 邮箱


加好友 发短信
  发帖心情 Post By:2015-12-17 16:39:00   [只看该作者]

WINCE5.0 1400 

  单帖管理 | 引用 | 回复 回到顶部
帅哥哟,离线,有人找我吗?
fengshu777
4楼 信息 | 搜索 | 邮箱


加好友 发短信
  发帖心情 Post By:2015-12-17 16:51:00   [只看该作者]

RX:->OALIoCtlHalPostInit
OALIoCtlHalPostInit::InitializeCriticalSection(&g_oalNandMutex)
<-OALIoCtlHalPostInit
->OALIoCtlHalInitRTC
<-OALIoCtlHalInitRTC OK
OEMIoControl: Unsupported Code 0x101008c - device 0x0101 func 35
 (16:48:25:679)
RX:->FMD_Init +SoftECC 0x40000000
Master Clock is 90000000 Hz
---------------------------------------
--- Configuring Chip Select 3       ---
---------------------------------------
---         Desired timings         ---
---------------------------------------
dwNWE_SETUP      20
dwNCS_WR_SETUP   0
dwNRD_SETUP      20
dwNCS_RD_SETUP   0
dwNWE_PULSE      30
dwNCS_WR_PULSE   70
dwNRD_PULSE      30
dwNCS_RD_PULSE   50
dwNRD_CYCLE      70
dwNWE_CYCLE      90
dwClockPeriod_ns 11
---------------------------------------
---           Real timings          ---
---------------------------------------
dwNWE_SETUP      22
dwNCS_WR_SETUP   0
dwNRD_SETUP      22
dwNCS_RD_SETUP   0
dwNWE_PULSE      33
dwNCS_WR_PULSE   77
dwNRD_PULSE      33
dwNCS_RD_PULSE   55
dwNRD_CYCLE      77
dwNWE_CYCLE      99
FMD_Init: Hynix - HY27US0812 Polling+Schedule
<-FMD_Init 0x1
FMD_OEMIoControl: IOCTL_FMD_GET_INTERFACE
 (16:48:25:835)
RX:OEMIoControl: Unsupported Code 0x10100c4 - device 0x0101 func 49
OEMIoControl: Unsupported Code 0x10100c4 - device 0x0101 func 49
 (16:48:27:146)
RX:->FMD_Init +SoftECC 0x10000000
Master Clock is 90000000 Hz
---------------------------------------
--- Configuring Chip Select 0       ---
---------------------------------------
---         Desired timings         ---
---------------------------------------
dwNWE_SETUP      20
dwNCS_WR_SETUP   0
dwNRD_SETUP      20
dwNCS_RD_SETUP   0
dwNWE_PULSE      30
dwNCS_WR_PULSE   70
dwNRD_PULSE      30
dwNCS_RD_PULSE   50
dwNRD_CYCLE      70
dwNWE_CYCLE      90
dwClockPeriod_ns 11
---------------------------------------
---           Real timings          ---
---------------------------------------
dwNWE_SETUP      22
dwNCS_WR_SETUP   0
dwNRD_SETUP      22
dwNCS_RD_SETUP   0
dwNWE_PULSE      33
dwNCS_WR_PULSE   77
dwNRD_PULSE      33
dwNCS_RD_PULSE   55
dwNRD_CYCLE      77
dwNWE_CYCLE      99
FMD_Init: Samsung - K9F2G08U0A Polling+Schedule
<-FMD_Init 0x1
FMD_OEMIoControl: IOCTL_FMD_GET_INTERFACE
 (16:48:27:395)
RX:FMD_GetBlockStatus::Logical block 0x4C is marked as bad
FMD_GetBlockStatus::Logical block 0x53 is marked as bad
 (16:48:27:692)
RX:FMD_GetBlockStatus::Logical block 0x406 is marked as bad
FMD_GetBlockStatus::Logical block 0x45D is marked as bad
 (16:48:30:468)
RX:FMD_GetBlockStatus::Logical block 0x687 is marked as bad
FMD_GetBlockStatus::Logical block 0x6FB is marked as bad
FMD_GetBlockStatus::Logical block 0x7FD is marked as bad
 (16:48:30:578)
RX:CAN Driver, Compiled at Aug 26 2015 18:34:56
+OALIntrRequestSysIntr(1, 0x1d, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 16)
 (16:48:31:155)
RX:OEMIoControl: Unsupported Code 0x10100d0 - device 0x0101 func 52
OEMIoControl: Unsupported Code 0x10100f8 - device 0x0101 func 62
 (16:48:31:638)
RX:Loading WinCE driver for ATMEL EMACB controller
Using registry ethernet configuration
-->EDeviceInitialize(0)
Hardware Reset PHY
PHY ID : 181b881
Phy found addr 0


  单帖管理 | 引用 | 回复 回到顶部
帅哥哟,离线,有人找我吗?
fengshu777
5楼 信息 | 搜索 | 邮箱


加好友 发短信
  发帖心情 Post By:2015-12-17 16:52:00   [只看该作者]

Start Autonegotiation
 (16:48:32:372)
RX:Autonegotiation complete
PHY_GetConfiguration : autoneg is completed!
EMAC Init: 100 Mbps FULL DUPLEX (MII)
<--EDeviceInitialize
+OALIntrRequestSysIntr(1, 0x15, 0x00000008)
-OALIntrRequestSysIntr(sysIntr = 17)
DM9000D port2: Hardware Initialization(0)
+OALIntrRequestSysIntr(1, 0x12, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 18)
+OALIntrReleaseSysIntr(18)
-OALIntrReleaseSysIntr(rc = 1)
+OALIntrRequestSysIntr(1, 0x12, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 18)
+OALIntrRequestSysIntr(1, 0x12, 0x00000008)
-OALIntrRequestSysIntr(sysIntr = 18)
Ethernet2 MAC address: d0-9b-05-45-7a-92
DM9000D Driver: MiniportIntialize succeeded
Ethernet2 MAC address: d0-9b-05-45-7a-92
DM9000D port3: Hardware Initialization(0)
+OALIntrRequestSysIntr(1, 0x13, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 19)
+OALIntrReleaseSysIntr(19)
-OALIntrReleaseSysIntr(rc = 1)
+OALIntrRequestSysIntr(1, 0x13, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 19)
+OALIntrRequestSysIntr(1, 0x13, 0x00000008)
-OALIntrRequestSysIntr(sysIntr = 19)
Ethernet3 MAC address: d0-9b-05-85-7a-92
DM9000D Driver: MiniportIntialize succeeded
Ethernet3 MAC address: d0-9b-05-85-7a-92
 (16:48:34:524)



  单帖管理 | 引用 | 回复 回到顶部
帅哥哟,离线,有人找我吗?
fengshu777
6楼 信息 | 搜索 | 邮箱


加好友 发短信
  发帖心情 Post By:2015-12-17 16:52:00   [只看该作者]

RX:+OALIntrRequestSysIntr(1, 0xa, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 20)
+OALIntrRequestSysIntr(1, 0x82, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 21)
 (16:48:34:680)
RX:CAN Driver, Compiled at Aug 26 2015 18:34:56
+OALIntrRequestSysIntr(1, 0x1e, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 22)
CAN Controller Hardware Error!
DeviceFolder::LoadDevice!Enumerate Found deprecated load instructions at (Drivers\BuiltIn\AFD). Driver cannot be unloaded.
 (16:48:35:008)
RX:Ethernet3 MAC address: d0-9b-05-85-7a-92
Ethernet2 MAC address: d0-9b-05-45-7a-92
 (16:48:35:476)
RX:+OALIntrRequestSysIntr(1, 0x6, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 23)
 (16:48:35:570)
RX:+OALIntrRequestSysIntr(1, 0x7, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 24)
 (16:48:35:648)
RX:+OALIntrRequestSysIntr(1, 0x8, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 25)
 (16:48:35:710)
RX:+OALIntrRequestSysIntr(1, 0x17, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 26)
 (16:48:35:788)
RX:+OALIntrRequestSysIntr(1, 0x18, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 27)
 (16:48:35:866)
RX:+OALIntrRequestSysIntr(1, 0x19, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 28)
 (16:48:35:944)
RX:DeviceFolder::LoadDevice!Enumerate Found deprecated load instructions at (Drivers\BuiltIn\PPP). Driver cannot be unloaded.
 (16:48:36:038)
RX:USB:OhcdPdd_Init
 (16:48:36:194)
RX:++InitializeOHCI
+OALIntrRequestSysIntr(1, 0x14, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 29)
--InitializeOHCI
 (16:48:36:272)
RX:ExSerInit::quit COM8 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:36:599)
RX:ExSerInit::quit COM9 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:36:864)
RX:ExSerInit::quit COM10 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:37:130)
RX:ExSerInit::quit COM11 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:37:145)
RX:ExSerInit::quit COM12 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:37:254)
RX:ExSerInit::quit COM13 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:37:379)
RX:ExSerInit::quit COM14 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:37:504)
RX:ExSerInit::quit COM15 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:37:644)
RX:+OALIntrRequestSysIntr(1, 0x1e, 0x00000000)
+OALIntrRequestSysIntr IRQ (30) already used by SYSINTR (22)
-OALIntrRequestSysIntr(sysIntr = 30)
 (16:48:37:847)
RX:+OALIntrRequestSysIntr(1, 0x1b, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 31)
 (16:48:37:925)
RX:+OALIntrRequestSysIntr(1, 0x1c, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 32)
 (16:48:38:003)
RX:+-->PPS_Init
PPS_Init::disable ToggleBit
+OALIntrRequestSysIntr(1, 0x7e, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 33)
 (16:48:38:097)
RX:OEMIoControl: Unsupported Code 0x10100fc - device 0x0101 func 63
 (16:48:38:268)
RX:
EM9X60 Emtronix Built at Aug 26 2015 18:34:49
Adaptation performed by Emtronix (c)
wstartup::resume WDT refresh 1
 (16:48:38:705)
RX:
 AdapterName: DM9K31 (16:48:38:752)
RX:
File bResult=1 nBytes=143 (16:48:38:861)
RX:
RegOpenKeyEx Comm\EMACB1 0
RegOpenKeyEx Comm\EMACB1 0
 IPAddr: 192.168.1.250    SunnetMask: 255.255.255.0    Gateway: 192.168.1.1

FileName:\NandFlash\userinfo.txt
CreatFile 15BCFD6
File bResult=1 nBytes=143
DHCP Disable
 IP Parameters aren't changed, need not set AdapterIPProperties
 (16:48:39:064)
RX:Explorer(V2.0) taskbar thread started.
 (16:48:40:016)
RX:OEMIoControl: Unsupported Code 0x10100f8 - device 0x0101 func 62
 (16:48:40:421)
RX:NDISPWR:: Found adapter [DM9K31]
 (16:48:40:530)
RX:NDISPWR:: Found adapter [DM9K21]
 (16:48:40:733)
RX:NDISPWR:: Found adapter [EMACB1]
 (16:48:40:874)
RX:
RegOpenKeyEx Comm\EMACB1 0 (16:48:41:186)
RX:
RegOpenKeyEx Comm\EMACB1 0
RegOpenKeyEx Comm\DM9K21 0
RegOpenKeyEx Comm\DM9K31 0
RegOpenKeyEx Comm\EMACB1 0
RegOpenKeyEx Comm\DM9K21 0
RegOpenKeyEx Comm\DM9K31 0 (16:48:41:342)

  单帖管理 | 引用 | 回复 回到顶部
zxw
7楼


  发帖心情 Post By:2015-12-17 17:11:00   [只看该作者]

果然,你的板子使能了ETA508串口扩展模块,系统驱动就会占用ISA高位地址线,所以你无法使用。
我刚才测试了COM4的RTS,正常使用。
图片点击可在新窗口打开查看

  单帖管理 | 引用 | 回复 回到顶部
帅哥哟,离线,有人找我吗?
fengshu777
8楼 信息 | 搜索 | 邮箱


加好友 发短信
  发帖心情 Post By:2015-12-17 17:20:00   [只看该作者]

我们没有ETA508模块,只有EM9360

  单帖管理 | 引用 | 回复 回到顶部
帅哥哟,离线,有人找我吗?
fengshu777
9楼 信息 | 搜索 | 邮箱


加好友 发短信
  发帖心情 Post By:2015-12-17 17:22:00   [只看该作者]

是不是ISA扩展影响了。但硬件工程师说没有占用GPIO8

  单帖管理 | 引用 | 回复 回到顶部
zxw
10楼


  发帖心情 Post By:2015-12-17 17:24:00   [只看该作者]

RX:ExSerInit::quit COM8 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:36:599)
RX:ExSerInit::quit COM9 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:36:864)
RX:ExSerInit::quit COM10 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:37:130)
RX:ExSerInit::quit COM11 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:37:145)
RX:ExSerInit::quit COM12 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:37:254)
RX:ExSerInit::quit COM13 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:37:379)
RX:ExSerInit::quit COM14 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:37:504)
RX:ExSerInit::quit COM15 driver installation.
Hardware doesn't init correctly, COM_Init failed
 (16:48:37:644)

  单帖管理 | 引用 | 回复 回到顶部
帅哥哟,离线,有人找我吗?
fengshu777
11楼 信息 | 搜索 | 邮箱


加好友 发短信
  发帖心情 Post By:2015-12-17 17:36:00   [只看该作者]

请问这个ETA508模块使能可以关闭吗?

  单帖管理 | 引用 | 回复 回到顶部
xd
12楼


  发帖心情 Post By:2015-12-17 18:22:00   [只看该作者]

 需要重烧写内核,内核在网站上下载或者给个邮箱地址,发到您邮箱。

  单帖管理 | 引用 | 回复 回到顶部
客人
13楼


  发帖心情 Post By:2015-12-17 19:12:00   [只看该作者]

四川汇友电气有限公司 shenyang@schydq.com

  单帖管理 | 引用 | 回复 回到顶部
x10
14楼


  发帖心情 Post By:2015-12-18 9:05:00   [只看该作者]

注意在使用硬件RTS做方向控制时,需要有设置:

           DCB dcb;            // 定义参数控制块

            GetCommState( m_hSer, &dcb );    // 读取当前参数块
            dcb.fRtsControl = RTS_CONTROL_TOGGLE; // 设置RTS方向控制
            SetCommState(m_hSer, &dcb);     // 重设串口参数


硬件才会起作用。

  单帖管理 | 引用 | 回复 回到顶部
xd
15楼


  发帖心情 Post By:2015-12-18 9:16:00   [只看该作者]

四川汇友专用内核已发到您邮箱,请查收。您反映的这个问题是指1张板卡还是所以板卡都这样。

  单帖管理 | 引用 | 回复 回到顶部
zxw
16楼


  发帖心情 Post By:2015-12-18 9:59:00   [只看该作者]

我从库房拿了张你们专用内核来测试,启动后系统还是会显示COM8-COM15的初始化过程,但和你们那里一样,会初始化失败。
另外,再次测试RTS(COM4_RTS:GPIO8),在使用ISA操作后,RTS信号一样可以正常使用。
现在需要确认你们手上的内核是否正确,以及硬件环境是否有变化。
建议先使用最简单的串口测试程序,试试这个功能。

  单帖管理 | 引用 | 回复 回到顶部
客人
17楼


  发帖心情 Post By:2015-12-19 19:43:00   [只看该作者]

原因是主板RTS低电平有效,我们以为是高电平,麻烦朱工了。

  单帖管理 | 引用 | 回复 回到顶部

返回首页

EM9360 485疑问

用户名:
            验证码: 验证码,看不清楚?请点击刷新验证码
内容: