element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Nico teWinkel's Blog Web server testing
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ntewinkel
  • Date Created: 23 Mar 2013 3:21 AM Date Created
  • Views 313 views
  • Likes 2 likes
  • Comments 4 comments
  • stedvavc
  • stm32f4-discovery
  • web
  • discover-mo:)
  • review
  • server
Related
Recommended

Web server testing

ntewinkel
ntewinkel
23 Mar 2013

Finally, some time!

 

I was able to get the webserver code compiling by signing up for the IAR time-limited license. I have much better uses for the $300/month they wanted to charge me for a regular license.

 

And then I didn't have time to work on this for a while... so that license is probably close to expiring!

Oh well, I ran the samples and that's really all I wanted to do. For anything I (hopefully) end up building I would like to do it in a way that anyone can copy without too much extra expense - and an IAR license falls into that category for the average hobbyist.

 

Tonight I ran the standalone Httpserver sample, and the standalone tcp_echo_server sample.

 

Here are some pictures...

I really like that the developers use the display to show status information in their samples!

image

And this is what the sample website looks like:

image

I was very impressed with how quickly the website loads - seriously fast!

 

I followed their instructions in the DM-STF4BB User Manual to hook up a 10k variable resistor (pot).

 

To hook up the board to be able to use the webserver I simply plugged the board into my router - much easier than trying to find a x-over tcp patch cord, plus the router way will eventually allow me to open it up to the public internet.

 

I then changed the code for both samples to uncomment the USE_DHCP define, as I was unsure of what IP addresses were still available. And the router takes care of assigning all the required information to the webserver samples.

 

I tried the LED control and the ADC status bar options - quite neat to see it in action. The LED control let me turn the green LED on and off by using a checkbox on this webpage. The ADC displayed the voltage of the variable resistor mid pin. Very cool.

 

Then I thought I'd try the tcp_echo_server sample, as it is much simpler and I thought that might make a better starting point for me trying to serve up images.

The instructions point to using some kind of echo tool that is included with the samples, but I was not able to get that to run in my Windows XP environment. After going through a lot of pain trying to get it working, I figured out that a MUCH easier way was to simply use Hyperterminal to connect via TCP/IP to port 3 on the dev board's address. The tcp_echo_server then just sends you back what you type in hyperterminal.

 

Here is a summary of how I'm feeling about this dev kit so far:

 

The Awesome bits:

1. The samples all work, and it's VERY easy to get them to work - big plus!

2. The samples use the display to show status information, which saves having to use a separate debug or serial connection to figure things out.

3. This thing is FAST!

4. Lots of pins, lots of options.

5. oh yes, almost forgot the colourful flashy LEDs.

6. easy to use USB connections for power/development

7. That's a very nice touch display.

 

The bits that I'm not sure about yet:

1. I would prefer if STM had some kind of dev environment available themselves, as it wasn't fun running into evaluation license limits while trying the samples. That's one thing I like about Arduino. TI also has their own "CCS" environment for their launchpad boards (though I don't recall if it has code size limits on it).

2. Is that big serial port really still being used in the land of firmware? I think most computers don't even have serial ports anymore, and USB is all the rage these days - I would have preferred a USB connection with serial-over-usb. Maybe the serial-over-usb chips add too much to the cost?

3. The samples are nice, but it would have been great if they had included more explanation of how the samples are built, and which files I need to look at to change things. For example, I'd like to know where the code is that turns the LED on and off, and the part that sends the pot values.

 

 

That's all for tonight!

Hopefully I'll get some time soonish to see about building my own sample next.

 

Cheers,

-Nico

  • Sign in to reply

Top Comments

  • DAB
    DAB over 12 years ago +1
    Hi Nico, Good update. I had thought that STM had some free software, but I might be thinking of another vendor. I can't believe that IAR wants 300/month for a software license. At those prices, they can…
  • ericwertz
    ericwertz over 12 years ago +1
    CCS is unlimited for TI's devboards and download pod hardware, and the full-license is a cost that (at least some) people can verbalize with a straight face.
  • ericwertz
    ericwertz over 12 years ago in reply to DAB +1
    Their 32K-limited eval license is their hobbyist version -- not really that useful unless you stay on the -M0 parts.
  • Former Member
    Former Member over 12 years ago

    At least his LCD worked. Mine makes text all scritchy and broken up like a bit driver is stuck. Chars look like a cross between morse code and braille. Tried 3 different 32F4 boards and gave up. The RGB test kinda works, although green is hardly green accoding to the two other people who looked.

     

    You don't have to pay $300 a month for IAR, they have a $5000 one time payment option they are just as proud of.

     

    The Raisonance RIDE compilerworks as well as IAR, but even with the kinda spendy STX PRO verion ($1150) you don't get to use the SWO debug channel. Which is a cryin' shame when you realize what it is capable of. Also it has no BSPs for the DISCOVERY which is really annoying.

     

    Also, the examples do not necessarily have the size optimization maxed out. That will get some of them below 32k.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ericwertz
    ericwertz over 12 years ago in reply to DAB

    Their 32K-limited eval license is their hobbyist version -- not really that useful unless you stay on the -M0 parts.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ericwertz
    ericwertz over 12 years ago

    CCS is unlimited for TI's devboards and download pod hardware, and the full-license is a cost that (at least some) people can verbalize with a straight face.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 12 years ago

    Hi Nico,

     

    Good update.

    I had thought that STM had some free software, but I might be thinking of another vendor.

    I can't believe that IAR wants 300/month for a software license.  At those prices, they can't have many users and they certainly are not going to be used by the hobby market.

    I have found that you get more people to use your hardware if you give the development software away.  That is why Adruino and TI have such a big following in the hobby space.

     

    Hopefully IAR will come to their senses and make a hobby version available.

     

    Just a thought,

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube