Olimex Support Forum

Microcontrollers => PIC => Topic started by: dlock4 on April 11, 2014, 10:25:15 PM

Title: PIC-MICRO-WEB missing beginning web page
Post by: dlock4 on April 11, 2014, 10:25:15 PM
Hi,

After compilation of the code PIC-MICRO-WEB downloaded from olimex, without error (only evaluation copy warning). I have programmed the unmodified code on the PIC-MICRO-WEB module.

Everything work fine (ping and telnet), except of the HTTP web pages has missing informations.

Comparing the HTTP source file between a good one and a bad one show:

<!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>





----->  JUST COMPILED AND PROGRAMMED PIC-MICRO-WEB

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>



The first 30 lines of the web page are missing and have been replaced by the word none


The compilation show this warning:

----------------------------------------------------------------------

Debug build of project `C:\temp\TCPIP Demo App\TCPIP Demo App-C18.mcp' started.
Language tool versions: mpasmwin.exe v5.54, mplink.exe v5.00, mcc18.exe v3.47, mplib.exe v5.00
Preprocessor symbol `__DEBUG' is defined.
Target debug platform is `__MPLAB_DEBUGGER_PK3=1'.
Debug platform options are: `__ICD2RAM=1'.
Fri Apr 11 14:54:41 2014
----------------------------------------------------------------------
Make: The target "C:\temp\TCPIP Demo App\Objects\MainDemo.o" is out of date.
Executing: "C:\Program Files\Microchip\mplabc18\v3.47\bin\mcc18.exe" -p=18F67J60 /i"." -I"..\Include" -I"..\Microchip\Include" -I"..\..\TCPIP Demo App" "MainDemo.c" -fo="Objects\MainDemo.o" -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -k -sco -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 3.47 (evaluation)
Copyright 2000-2011 Microchip Technology Inc.
Days remaining until evaluation becomes feature limited:  58

WARNING:  Running the compiler in extended mode will not be supported when the evaluation becomes feature limited.



What's is the problem?  Evaluation version could be the problem?


Thanks
Title: Re: PIC-MICRO-WEB missing beginning web page
Post by: LubOlimex on April 29, 2014, 09:51:36 AM
Hey dlock4,

The evaluation and LITE versions of the compiler don't remove code. Still if you believe this might be the problem I recommend you to test with the LITE version as suggested in this post: https://www.olimex.com/forum/index.php?topic=2990.msg12566#msg12566 (https://www.olimex.com/forum/index.php?topic=2990.msg12566#msg12566).

Best regards,
Lub/OLIMEX