• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » WLAN Applications Forum » "HW_WD_EXPIRE " with wl1271
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

"HW_WD_EXPIRE " with wl1271

This question is answered
yong yu
Posted by yong yu
on Apr 05 2011 05:53 AM
Prodigy40 points

Dear all:

I'm  in a custom omap3530  HW project .I've connected a  module to MMC2.

In file ~/ti-dvsdk_omap3530-evm_4_01_00_09/psp/linux-2.6.32-psp03.00.01.06.v1/drivers/net/wireless/wilink/platforms/hw/host_platform_omap3530/linux/host_platform.h

i edit with my devices as follow:

 //#define PMENA_GPIO                      150 /* WLAN_ENABLE */
#define PMENA_GPIO                      162 /* WLAN_ENABLE */
//#define IRQ_GPIO                        149 /* WLAN_IRQ */
#define IRQ_GPIO                        160 /* WLAN_IRQ */


when i insmod drivers,have an error .  I follow  the steps to find problems,

[root@ti-wlan-modules]# insmod sdio.ko
[root@ti-wlan-modules]# insmod testsdio.ko
OMAP3430_Wlan_Hardware_Init start
OMAP3430_Wlan_Hardware_Init() enter
OMAP3430_Wlan_Hardware_Init() exit
OMAP3430_Wlan_Hardware_Init - SUCCESS
OMAP3430_TNETW_HardReset start
OMAP3430_TNETW_Power(-OFF-)
OMAP3430_TNETW_Power(-ON-)
OMAP3430_TNETW_HardReset - SUCCESS
sdio_test_module_init: SDIO Test Reset OK
sdio_test_module_init: OK
[root@ti-wlan-modules]#

 

[root@/proc]# echo i > sdio_test
SDIO clock Configuration is now set to 24Mhz
After sdioDrv_ConnectBus, iStatus=0
After SD_IO_GO_IDLE_STATE, iStatus=0
After VDD_VOLTAGE_WINDOW, iStatus=0
After SD_IO_SEND_RELATIVE_ADDR, iStatus=0
After SD_IO_SELECT_CARD, iStatus=0
After w 0x82, iStatus=0
After r 0x82, iStatus=0
After w 0xC8, iStatus=0
After CCCR_BUS_INTERFACE_CONTOROL, uCount=1
After CCCR_IO_ENABLE, uCount=1
In sdio_test_init: going to perform set_partition. mem size = 0x16800, mem addr =  0x0, reg size = 0x8800, reg addr = 0x300000
Running set_partition status = 0 OK
Read device ID via ReadByte: 0x4030111
[root@ /proc]#

 

[root/proc]# echo  cs > sdio_test
Perform Synch Complete SDIO
************ SDIO Complete Test, 4 byte block   ************
Test Code Ram Succeed
Test Data Ram Succeed
Test Packet Ram Succeed
Test Registers Ram Succeed
************ SDIO Complete Sync Test, 64 byte block   ************
Test Code Ram Succeed
Test Data Ram Succeed
Test Packet Ram Succeed
Test Registers Ram Succeed
************ SDIO Complete Sync Test, 128 byte block  ************
Test Code Ram Succeed
Test Data Ram Succeed
Test Packet Ram Succeed
Test Registers Ram Succeed
************ SDIO Complete Sync Test, 256 byte block  ************
Test Code Ram Succeed
Test Data Ram Succeed
Test Packet Ram Succeed
Test Registers Ram Succeed
************ SDIO Complete Sync Test, 384 byte block  ************
Test Code Ram Succeed
Test Data Ram Succeed
Test Packet Ram Succeed
Test Registers Ram Succeed
************ SDIO Complete Sync Test, 512 byte block  ************
Test Code Ram Succeed
Test Data Ram Succeed
Test Packet Ram Succeed
Test Registers Ram Succeed

 

root@ wifi-beagle]# cd ti-wlan-modules/
[root@ti-wlan-modules]# ls
bmtrace.ko     sdio.ko        testsdio.ko    tiwlan_drv.ko
[root@ti-wlan-modules]# insmod sdio.ko
[root@ti-wlan-modules]# insmod bmtrace.ko
[root@ti-wlan-modules]# insmod tiwlan_drv.ko
TIWLAN: driver init


[root@ti-wireless]# ./tiwlan_loader
[root@ti-wireless]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 02:F5:13:01:C0:12 
          inet addr:192.168.0.125  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9283 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3552 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12337655 (11.7 MiB)  TX bytes:555372 (542.3 KiB)
          Interrupt:185 Base address:0x8000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

tiwlan0   Link encap:Ethernet  HWaddr 00:00:00:00:00:00 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

[root@ti-wireless]#

 


[root@ti-wireless]# ifconfig tiwlan0 192.168.1.25 up
TIWLAN: 82.109069: pInitParams->RoamingScanning_2_4G_enable 0
SDIO clock Configuration is now set to 24Mhz
After sdioDrv_ConnectBus, iStatus=0
After SD_IO_GO_IDLE_STATE, iStatus=0
After VDD_VOLTAGE_WINDOW, iStatus=0
After SD_IO_SEND_RELATIVE_ADDR, iStatus=0
After SD_IO_SELECT_CARD, iStatus=0
After w 0x82, iStatus=0
After r 0x82, iStatus=0
After w 0xC8, iStatus=0
After CCCR_BUS_INTERFACE_CONTOROL, uCount=1
After CCCR_IO_ENABLE, uCount=1
TIWLAN: 82.348297: CHIP VERSION... set 1273 chip top registers
TIWLAN: 82.354675: Working on a 1273 PG 2.0 board.
TIWLAN: 82.359252: Starting to process NVS...
TIWLAN: 82.363433: No Nvs, Setting default MAC address
TIWLAN: 82.368347: pHwInit->uEEPROMCurLen: 1c
TIWLAN: 82.372497: ERROR: If you are not calibating the device, you will soon get errors !!!
TIWLAN: 82.380889: Chip ID is 0x4030111.
TIWLAN: 82.384979: FEM Type 1
TIWLAN: 82.388031: Starting to download firmware...
TIWLAN: 82.439666: Starting to download firmware...
TIWLAN: 82.455993: Starting to download firmware...
TIWLAN: 82.460815: Starting to download firmware...
TIWLAN: 82.469451: Starting to download firmware...
TIWLAN: 82.476104: Starting to download firmware...
TIWLAN: 82.481628: Finished downloading firmware.
TIWLAN: 82.486145: Firmware running.
TIWLAN: 82.508148:
TIWLAN: 82.510040: --------------------------------------------------------------------
TIWLAN: 82.517883: Driver Version  : WiLink_Driver_6.1.0.0.130
TIWLAN: 82.523498: Firmware Version: Rev 6.1.0.0.313
TIWLAN: 82.528503: Station ID      : 08-00-28-12-34-56
TIWLAN: 82.533447: --------------------------------------------------------------------
TIWLAN: 82.541290:
[root@ti-wireless]# TIWLAN: 82.555847: Interrogate TX/RX parameters
TIWLAN: 82.570434: ***** recovery trigger: HW_WD_EXPIRE *****, ts=82570
TIWLAN: 82.576843: .....drvMain_Recovery, ts=82576
SDIO clock Configuration is now set to 24Mhz
After sdioDrv_ConnectBus, iStatus=0
After SD_IO_GO_IDLE_STATE, iStatus=0
After VDD_VOLTAGE_WINDOW, iStatus=0
After SD_IO_SEND_RELATIVE_ADDR, iStatus=0
After SD_IO_SELECT_CARD, iStatus=0
After w 0x82, iStatus=0
After r 0x82, iStatus=0
After w 0xC8, iStatus=0
After CCCR_BUS_INTERFACE_CONTOROL, uCount=1
After CCCR_IO_ENABLE, uCount=1
TIWLAN: 82.913360: CHIP VERSION... set 1273 chip top registers
TIWLAN: 82.919769: Working on a 1273 PG 2.0 board.
TIWLAN: 82.924346: Starting to process NVS...
TIWLAN: 82.928497: No Nvs, Setting default MAC address
TIWLAN: 82.933410: pHwInit->uEEPROMCurLen: 1c
TIWLAN: 82.937530: ERROR: If you are not calibating the device, you will soon get errors !!!
TIWLAN: 82.945953: Chip ID is 0x4030111.
TIWLAN: 82.949981: FEM Type 1
TIWLAN: 82.953063: Starting to download firmware...
TIWLAN: 83.003417: Starting to download firmware...
TIWLAN: 83.019775: Starting to download firmware...
TIWLAN: 83.024627: Starting to download firmware...
TIWLAN: 83.033233: Starting to download firmware...
TIWLAN: 83.039886: Starting to download firmware...
TIWLAN: 83.045349: Finished downloading firmware.
TIWLAN: 83.049865: Firmware running.
TIWLAN: 83.070648:
TIWLAN: 83.072509: --------------------------------------------------------------------
TIWLAN: 83.080352: Driver Version  : WiLink_Driver_6.1.0.0.130
TIWLAN: 83.085968: Firmware Version: Rev 6.1.0.0.313
TIWLAN: 83.090972: Station ID      : 08-00-28-12-34-56
TIWLAN: 83.095916: --------------------------------------------------------------------
TIWLAN: 83.103729:
TIWLAN: 83.119567: Interrogate TX/RX parameters
TIWLAN: 83.124267: .....drvMain_RecoveryNotify: End Of Recovery, ts=83124
TIWLAN: 83.140716: ***** recovery trigger: HW_WD_EXPIRE *****, ts=83140
TIWLAN: 83.147125: .....drvMain_Recovery, ts=83147
SDIO clock Configuration is now set to 24Mhz
After sdioDrv_ConnectBus, iStatus=0
After SD_IO_GO_IDLE_STATE, iStatus=0
After VDD_VOLTAGE_WINDOW, iStatus=0
After SD_IO_SEND_RELATIVE_ADDR, iStatus=0
After SD_IO_SELECT_CARD, iStatus=0
After w 0x82, iStatus=0
After r 0x82, iStatus=0
After w 0xC8, iStatus=0
After CCCR_BUS_INTERFACE_CONTOROL, uCount=1
After CCCR_IO_ENABLE, uCount=1

(and continuing)

 

what's wrond with me ? How can i deal with it?

thank you.

wl1271 omap3530 mmc2
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • sinoj issac
    Posted by sinoj issac
    on Apr 06 2011 04:28 AM
    Expert2800 points
    Hi, It seems the SDIO interface works fine. Please ensure that WLAN_IRQ is correct and connectivity is OK. The release ti-dvsdk_omap3530-evm_4_01_00_09 is for OMAP3 EVM +WL1271 daughter card on which WL1271 module from LSR is mounted. Is your WL1271 module from LSR? Otherwise you may need to set Ref clock accordingly in the driver/firmware configuration INI file. Also, latest version of WiLink driver for omap35x is available at http://processors.wiki.ti.com/index.php/ARM_Processor_Wireless_Connectivity_Downloads - OMAP3530 GA Release Thanks, Sinoj
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • yong yu
    Posted by yong yu
    on Apr 07 2011 21:55 PM
    Prodigy40 points

    thanks  for reply.

    log linux through telnet.   I can find this.  GPIO160 for wlan_irq,it seems working(NO320 ,tiwlan0).

    [root@/]# cat /proc/interrupts 

               CPU0

      7:          0        INTC  TWL4030-PIH

     11:          0        INTC  prcm

     12:      22754        INTC  DMA

     56:        814        INTC  i2c_omap

     61:          0        INTC  i2c_omap

     72:          1        INTC  serial idle

     73:          1        INTC  serial idle

     74:        140        INTC  serial idle, serial

     77:         25        INTC  ehci_hcd:usb1

     83:         32        INTC  mmc0

     86:      22751        INTC  TIWLAN_SDIO

     92:          0        INTC  musb_hdrc

     93:          0        INTC  musb_hdrc

     95:       4580        INTC  gp timer

    185:       6344        GPIO  eth0

    320:       3001        GPIO  tiwlan0

    378:          0     twl4030  twl4030_usb

    384:          0     twl4030  mmc0

    Err:          0

    [root@/]# 

     

    but in console 

    TIWLAN: 493.383148: 

    TIWLAN: 493.385101: --------------------------------------------------------------------

    TIWLAN: 493.393035: Driver Version  : WiLink_Driver_6.1.0.0.130

    TIWLAN: 493.398742: Firmware Version: Rev 6.1.0.0.313

    TIWLAN: 493.403564: Station ID      : 08-00-28-12-34-56

    TIWLAN: 493.408599: --------------------------------------------------------------------

    TIWLAN: 493.416503: 

    TIWLAN: 493.436309: Interrogate TX/RX parameters

    TIWLAN: 493.441192: .....drvMain_RecoveryNotify: End Of Recovery, ts=493441

    TIWLAN: 493.461059: ***** recovery trigger: HW_WD_EXPIRE *****, ts=493461

    TIWLAN: 493.467620: .....drvMain_Recovery, ts=493467

    SDIO clock Configuration is now set to 24Mhz

    After sdioDrv_ConnectBus, iStatus=0 

    After SD_IO_GO_IDLE_STATE, iStatus=0 

    After VDD_VOLTAGE_WINDOW, iStatus=0 

    After SD_IO_SEND_RELATIVE_ADDR, iStatus=0 

    After SD_IO_SELECT_CARD, iStatus=0 

    After w 0x82, iStatus=0 

    After r 0x82, iStatus=0 

    After w 0xC8, iStatus=0 

    After CCCR_BUS_INTERFACE_CONTOROL, uCount=1 

    After CCCR_IO_ENABLE, uCount=1 

    TIWLAN: 493.805328: CHIP VERSION... set 1273 chip top registers

    TIWLAN: 493.811767: Working on a 1273 PG 2.0 board.

    TIWLAN: 493.816467: Starting to process NVS...

    TIWLAN: 493.820709: No Nvs, Setting default MAC address

    TIWLAN: 493.825714: pHwInit->uEEPROMCurLen: 1c

    TIWLAN: 493.829956: ERROR: If you are not calibating the device, you will soon get errors !!!

    TIWLAN: 493.838439: Chip ID is 0x4030111.

    TIWLAN: 493.842559: FEM Type 1 

    TIWLAN: 493.845733: Starting to download firmware...

    TIWLAN: 493.935729: Starting to download firmware...

    TIWLAN: 493.963562: Starting to download firmware...

    TIWLAN: 493.968475: Starting to download firmware...

    TIWLAN: 493.978546: Starting to download firmware...

    TIWLAN: 493.985870: Starting to download firmware...

    TIWLAN: 493.992156: Finished downloading firmware.

    TIWLAN: 493.996795: Firmware running.

    TIWLAN: 494.015960: 

    TIWLAN: 494.017913: --------------------------------------------------------------------

    TIWLAN: 494.025817: Driver Version  : WiLink_Driver_6.1.0.0.130

    TIWLAN: 494.031555: Firmware Version: Rev 6.1.0.0.313

    TIWLAN: 494.036376: Station ID      : 08-00-28-12-34-56

    TIWLAN: 494.041412: --------------------------------------------------------------------

    TIWLAN: 494.049316: 

    (all contiuning)

     

     

    How can i deal with ti?

    can TI  supply  WL1271  datasheet??

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • sinoj issac
    Posted by sinoj issac
    on Apr 08 2011 07:56 AM
    Verified Answer
    Verified by yong yu
    Expert2800 points

    Hi,

    You may not require the WL1271 Chip datasheet. You need to refer to WL1271module datasheet and below links.

    http://processors.wiki.ti.com/index.php/ARM_Processor_Wireless_Connectivity_Hardware_specifications#Typical_SW_modification_needed_when_using_a_different_HW

    http://e2e.ti.com/support/low_power_rf/f/307/t/34619.aspx

    If the problem persists, please let us know.

    Thanks,

    Sinoj

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • yong yu
    Posted by yong yu
    on Apr 13 2011 21:36 PM
    Prodigy40 points

    Frist of all , thanks for your help.

    I slove the problem.I use  jorjin WG7310.The problem is the crystal.It should  use 32.768K,but  HW mistake using 32M crystal.

     

    Best wishes to you!Thanks  your help.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use