• 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 » Microcontrollers » Stellaris® ARM® Microcontrollers » Stellaris® ARM® LM3S Microcontrollers Forum » web server using lm3s9b92
Share
Stellaris® ARM® Microcontrollers
  • Forum
Options
  • Subscribe via RSS
Helpful Stellaris® LM4F Series Links
  • LM4F Series
  • Stellaris PinMux Utility
  • Stellaris® LM4F120 LaunchPad
  • LM4F MCU Applications
  • LM4F MCU Video
  • ARM Cortex-M4F Whitepaper
  • Stellaris MCU Brochure
  • LM4F232 Eval Kit
  • web server using lm3s9b92

    web server using lm3s9b92

    This question is not answered
    gopi krishnas
    Posted by gopi krishnas
    on Aug 07 2012 00:27 AM
    Prodigy145 points

    sir,

    my project is to do a webserver using lm3s9b92. here i wanna connect a wifi module via uart. so i want some sampel program based on uart and lwip, such that i can i understand beter. plz suggest and give some idea

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Stellaris John
      Posted by Stellaris John
      on Aug 07 2012 10:42 AM
      Intellectual2130 points

      Gopi,

      The enet_lwip example in StellarisWare is an example of a webserver with lwip and ethernet. You would have to make significant changes to the code to get it to work with a UART Wi-Fi. The uart_echo example will help you to understand how to configure a simple UART connection.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • gopi krishnas
      Posted by gopi krishnas
      on Aug 22 2012 01:24 AM
      Prodigy145 points

      sir,

      I have gone through the program. I would like to know how to dump the low wieght webpage onto the kit.

      Secondly, i cannot evaluate the  code i write for UART1(i cannot see the rsult in HYPERTERMINAL) since the debugger is connected to UART0. Is there anyway around this?

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Stellaris John
      Posted by Stellaris John
      on Aug 22 2012 10:48 AM
      Intellectual2130 points

      Gopi,

      If you want to replace the default enet_lwip example webpage with your own custom webpage, you will need to generate a new lmi-fsdata.h. In the StellarisWare\tools\bin directory there is a makefsfile.exe. Run makefsfile in a command prompt with no arguments to see how to use the options and arguments. Then generate a new lmi-fsdata.h from you webpage directory and replace the default one used by the example. Then rebuild the project, and reload the program onto the part. 

      If you change the UART1 code to use UART0, you should be able to see the output on hyperterminal. You can do this at the same time as debugging, because the debugger uses separate JTAG pins to do the debugging.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Andy Neil
      Posted by Andy Neil
      on Aug 22 2012 13:41 PM
      Guru31975 points

      gopi krishnas
      i wanna connect a wifi module via uart. so i want some sampel program

      You haven't said what WiFi module! It is impossible to give example code without knowing what module you are using!

      Besides, doesn't the module manufacturer provide support...?

      http://www.8052.com/forum/read/160143

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • gopi krishnas
      Posted by gopi krishnas
      on Aug 23 2012 05:37 AM
      Prodigy145 points

      sir,

      i am using "WI2610wi"-wireless lan(UART to WiFi)..this module is provided by my institution and i am not aware of any support provided by the manufacturer...

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Stellaris John
      Posted by Stellaris John
      on Aug 23 2012 10:11 AM
      Intellectual2130 points

      Gopi,

      So you have no datasheets or user manuals? I looked up the part number on Google, and this thread is the only relevant result. If you can't contact the manufacturer and get some more information, you will need to use a different Wi-Fi module.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Stellaris John
      Posted by Stellaris John
      on Aug 23 2012 11:20 AM
      Intellectual2130 points

      Gopi,

      I was looking for alternate Wi-Fi modules that had been used for Stellaris parts before and I think I found your module. It looks like somewhere a 'z' got recorded as a '2' when you looked at the part number. The WIZ610wi is the correct part number. You can find the documentation for it here.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • gopi krishnas
      Posted by gopi krishnas
      on Aug 25 2012 02:02 AM
      Prodigy145 points

      sir,

      i did as you said. but it giving an error "lmi_fs.c(95): error:  #20: identifier "FS_ROOT" is undefined"

      and when i am trying to execute the sampel program its saying

       "linking...
      .\rvmdk\enet_lwip.axf: error: L6047U: The size of this image (34668 bytes) exceeds the maximum allowed for this version of the linker
      Target not created"

      iam using keil uVision, as i am not familiar "IAR Embedded Workbench"

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Andy Neil
      Posted by Andy Neil
      on Aug 25 2012 02:10 AM
      Guru31975 points

      gopi krishnas
      error "lmi_fs.c(95): error:  #20: identifier "FS_ROOT" is undefined"

      So define it!

      gopi krishnas
      The size of this image (34668 bytes) exceeds the maximum allowed for this version of the linker
      Target not created"

      You are using the free Evaluation (or "lite") version of Keil, aren't you?

      The free version is "code-size limited";  that means that there is a limit on the maximum size of the code that it will generate - you have exceeded that limit!

       

      You need to either re-think your project to work within the limits of the available tools, or re-think your tool choice according to your project requirements...

      http://www.keil.com/demo/limits.asp

       

      gopi krishnas
      iam using keil uVision, as i am not familiar "IAR Embedded Workbench"

      IAR has a similar code-size limit.

      I think IAR also do a time-limited free version - as the name suggests, this has no code-size limit, but expires after a certain time (30 days, I think).

      Free tool limitations
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Andy Neil
      Posted by Andy Neil
      on Aug 25 2012 02:21 AM
      Guru31975 points

      Have you actually studied the documentation for the WIZ610wi module?

      - Stand-alone typed 802.11b/g wireless LAN module
      - Ethernet to Wireless Bridging Enable wired network device to have wireless
        communication interface
      - Supports Serial Interface for "Serial to Wireless" application
      - Supports AP/Station/Gateway mode
      - 54Mbps data rate and Max.20Mbps Effective Data Transmission
      - Full-Featured Network Protocol Stack
      - Built-in Web server for configuration via standard web browser
      - Wireless antenna is not included / needs to be purchased separately if needed

      The module includes the protocol stack!  Therefore,  you do not need to implement that on the microcontoller!!

      RTFM
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • gopi krishnas
      Posted by gopi krishnas
      on Sep 09 2012 04:30 AM
      Prodigy145 points

      sir,

       sorry for the late replay. i have gone throught the document, but my department asked me to interface this wifi module to lm3s9b92 & they said it is a serial to wireless. i want to interface it with uart 1.  i have gone through the sampel program (enet_lwip). there they enable the ethernet controller and port f. 

       so, similarly if i enable uart 1 using the uart interrupt handler and interface the sin & sout pins of wifi to the microcontroller u1tx, u1rx then is there any chance to communicate.

      or what changes i should make to the sampel program . i should complete my project within 75 days, is that possible. 

       

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Andy Neil
      Posted by Andy Neil
      on Sep 09 2012 14:29 PM
      Guru31975 points

      gopi krishnas
      my department asked me to...

      So your department must be under the impression that you should be capable of doing this. If you feel that it's beyond you, and you need further support, you should be discussing that with your department...

      gopi krishnas
      i have gone through the sampel program (enet_lwip).

      The clue is in the name: "enet" is short for "ethernet" - you are not doing an ethernet project, so much (most?) of that project is not going to be directly applicable.

      If you want to use the UART, then you need to be looking at the UART documentation & examples, to gain an understanding of how the UART works, and how to use it.

      But also, as previously mentioned, this module has the TCP/IP built-in in hardware - doesn't it?

       

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • cb1-
      Posted by cb1-
      on Sep 09 2012 18:04 PM
      Mastermind9110 points

      Andy Neil
      as previously mentioned, this module has the TCP/IP built-in

      Perchance you could "better" emphasize such - use of bold and TI Red.   Oh - wait - you did just that!   (your patience on high display)

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Stellaris John
      Posted by Stellaris John
      on Sep 10 2012 11:20 AM
      Intellectual2130 points

      Gopi,

      The Wi-Fi module does have integrated TCP/IP. This means that much of the enet_lwip project is no longer relevant.

      75 days should be more than enough time to complete this project. The difficulty of completion depends significantly on the complexity of the webserver application. If all you need is a terminal connection over Wi-Fi, you could be done much more quickly than if you needed a multipage website with images.

      http://members.home.nl/bzijlstra/software/examples/wiz610wi.htm (particularly sections 4,6, and 9) has an example of using the WIZ610wi with an Arduino board in the BASIC language. It looks like the WIZ610wi just outputs the straight ASCII of the HTTP requests and responses. This example differs significantly from the enet_lwip example in that in addition to not using Ethernet and TCP/IP, it embeds the HTML directly in the file, instead of having in in part of a file system. Also, the Arduino example kind of cheats when displaying the webpage image, since the image is just a link to an externally hosted file.

      You will need an external power supply for the WIZ610wi. The on board voltage regulator of the EK-LM3s9b92 is limited to 400 mA, and the Wi-Fi module can draw up to 479 mA.

      Once you have your power supply, you should be able to modify uart_echo to bridge the connection between your PC terminal program and the WIZ610wi. Then you can start configuring the module. After you can connect it to your wireless network, either write your own HTTP server or you may be able to find one online.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Andy Neil
      Posted by Andy Neil
      on Sep 10 2012 18:44 PM
      Guru31975 points

      Stellaris John
      75 days should be more than enough time to complete this project

      It's not clear whether the 75 days were to be devoted entirely & exclusively to this project, or if the OP also has other tasks/studies/etc in this time?

      Stellaris John
      The difficulty of completion depends significantly on the complexity of the webserver

      and, of course, on the competence & determination of the worker.

      The OP needs to study, "research", and, thus, understand:

      • What is a "webserver"; how does it work; what are the protocols involved?
      • What facilities, exactly, does this WiFi module provide? What does it rquire from the microcontroller?
      • What facilities does the Stellaris provide, and how can they be used to support the project goals?

      Which is just a restatement of: http://www.8052.com/forum/read/160143

       

      Here's a tutorial on HTTP: http://www.jmarshall.com/easy/http/ - with links to other "Web Technology" tutorials...

      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