主題:EM9360 485疑問 共有67200人關注過本帖 |
---|
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 ); // 讀取當前參數塊 硬件才會起作用。
|
|
單帖管理 | 引用 | 回復 |
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低電平有效,我們以為是高電平,麻煩朱工了。
|
|
單帖管理 | 引用 | 回復 |