PIC-MICRO-WEB missing beginning web page, header.inc

Started by ornea, December 09, 2014, 02:08:36 PM

Previous topic - Next topic

ornea

Hi,

I have the same problem as a previous post with the same title but I did not understand the solution.  (Not sure if I should have started a new post)

Basically after compiling and burning the code for PIC-MICRO-WEB downloaded from olimex the HTTP web pages has missing sections as below.

If I reburn the original hex file that I saved previously I have no issues.  I thought it might be a filename convention change as it appears to not read the header.inc file but with my limited debugging skills I have be unable to determine this.

Any suggestions warmly welcome.


The good HTTP source file when running the original code that it was shipped with gives this:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Microchip TCP/IP Stack Demo App for Olimex PIC-MICRO-WEB</title>
<link href="/mchp.css" rel="stylesheet" type="text/css" />
<script src="/mchp.js" type="text/javascript"></script>
</head>

<body>
<div id="shadow-one"><div id="shadow-two"><div id="shadow-three"><div id="shadow-four">
<div id="page">

<div style="padding:0 0 5px 5px"><img src="/mchp.gif" alt="Microchip" /></div>
<div style="padding:0 0 5px 5px"><img src="/olimex.gif" alt="Olimex" /></div>

<div id="title"><div class="right">TCP/IP Stack Demo Application</div><span id="hello">&nbsp;</span></div>

<div id="menu">
<a href="/index.htm">Overview</a>
<a href="/dynvars.htm">Dynamic Variables</a>
<a href="/forms.htm">Form Processing</a>
<a href="/auth.htm">Authentication</a>
<a href="/cookies.htm">Cookies</a>
<a href="/upload.htm">File Uploads</a>
<a href="/email">Send E-mail</a>
<a href="/dyndns">Dynamic DNS</a>
<a href="/protect/config.htm">Network Configuration</a>
<a href="/snmp/snmpconfig.htm">SNMP Configuration</a>
</div>

<div id="content">

<div id="status">
   <div id="loading" style="display:none">Error:<br />Connection to demo board was lost.</div>
   <div id="display">
      <span style="float:right;font-size:9px;font-weight:normal;padding-top:8px;text-indent:0px">(click to toggle)</span>
      <p>LED:<br /><span class="leds">
      <!-- <a id="led7" onclick="newAJAXCommand('leds.cgi?led=7');">&bull;</a>
      <a id="led6" onclick="newAJAXCommand('leds.cgi?led=6');">&bull;</a>
      <a id="led5" onclick="newAJAXCommand('leds.cgi?led=5');">&bull;</a>





----->  The bad HTTP source file produced when running with the compiled versions.  It appears to fail serving the header.inc file 

none
<div id="content">

<div id="status">
   <div id="loading" style="display:none">Error:<br />Connection to demo board was lost.</div>
   <div id="display">
      <span style="float:right;font-size:9px;font-weight:normal;padding-top:8px;text-indent:0px">(click to toggle)</span>
      <p>LED:<br /><span class="leds">
      <!-- <a id="led7" onclick="newAJAXCommand('leds.cgi?led=7');">&bull;</a>
      <a id="led6" onclick="newAJAXCommand('leds.cgi?led=6');">&bull;</a>
      <a id="led5" onclick="newAJAXCommand('leds.cgi?led=5');">&bull;</a>

ornea

Solution for me was to delete HTTPprint.h andTTPprint.idx from the TCPIP_DEMO_APP directory.

Re build the webpages in WebPagesOlimex.  This recreates the above files.

Upload the image via MPFS2.

Recompile the code (now the new HTTPprint.* files have been created) then upload the code to the PIC-MICRO-WEB.

I have used Pickit2 as the debugger/programmer.

Ornea