Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - rwparks

1
Web platform / Re: MCStackDemo won't compile
I've started by trying to follow the documentation on the Web Platform, this page, and related pages:

http://dangerousprototypes.com/docs/Web_Platform

I think I set it up according to these directions, so the C30 compiler is the right one. But this plib requirement is part of the latest TCPIP stack code from microchip.

I'm wondering if there's a different compiler I should be using for the Web Platform maybe? Seems like, if microchips TCPIP stack won't compile with this compiler, I'm in trouble. Either that or the more likely conclusion, I'm doing something completely ass backwards, I just haven't figured out what that is yet.

Can you (or anyone) confirm that the compiler I'm using is the appropriate one for the Web Platform?

Also, what is this "Demo App inside the project folder" that you referred to?

Firstly, I've checked out everything from the SVN as was instructed to do so on the Web Platform page, but there's no "project" folder in there. Under the "firmware" folder there are a bunch of projects that appear related to the web platform, MCStackDemo seemed to be the only one that included the webserver in it. Hence my efforts to get it to compile.

Second, If you mean the microchip TCPIP Demo App that's in the 'Microchip Solutions v2013-06-15TCPIPDemo App' folder, there are many projects in there for many processors/hardware. It's not clear which one I should start to work from. And in any of those cases it seems like I'm going to have to remove a lot of ancillary code that doesn't reference the hardware existing on the Web Platform (I took a few shots at this route, but didn't seem to have the experience needed to get a hello world app to compile for the Web Platform hardware).

Thanks for whatever pointers and thoughts you can offer!
2
Web platform / Re: MCStackDemo won't compile
Good point, and tried those, I get a compilation error for a dependency on the plib libraries. I'm not familiar with those, they apparently don't come with the C30 compiler. Do you know where to get them?

Code: [Select]
Executing: "C:Program FilesMicrochipMPLAB C30binpic30-gcc.exe" -mcpu=33FJ128GP204 -x c -c   "C:ProgrammingWebserver1.1Microchip Solutions v2013-06-15MicrochipTCPIP Stacketh_pic32_ext_phy_rtl8201FL.c" -o"Objects - TCPIP Demo App-C30eth_pic32_ext_phy_rtl8201FL.o" -I"." -I"C:ProgrammingWebserver1.1Microchip Solutions v2013-06-15MicrochipInclude" -I"%PROGRAMFILES%MicrochipMPLAB C30include" -g -Wall -mlarge-code

C:ProgrammingWebserver1.1Microchip Solutions v2013-06-15MicrochipTCPIP Stacketh_pic32_ext_phy_rtl8201FL.c:37:18: error: plib.h: No such file or directory
3
Web platform / MCStackDemo won't compile
I'm attempting to compile the MCStackDemo app provided on the Web Platform SVN.

I'm seeing a lot of issues between versions of the C30 compiler, and the microchip TCPIP library files. I've spent 2 days trying to track down the right combination without luck, and I'm getting marred in the complexity of tracking down dozens of different "hacks" that people have used to get this version or that version working.

So now I'm attempting to use the current version of C30 compiler: v3.31, and the latest TCPIP stack: v2010-10-19

Using this combination my first problem occurs when the TCPIP Stack calls on plib.h, these peripheral libraries don't appear to be included as part of the C30 compiler.

does anyone know where I get the correct plib libraries? I'm not intimately familiar with what I'm trying to track down here.

Code: [Select]
Executing: "C:Program FilesMicrochipMPLAB C30binpic30-gcc.exe" -mcpu=33FJ128GP204 -x c -c   "C:ProgrammingWebserver1.1Microchip Solutions v2010-10-19MicrochipTCPIP Stacketh_pic32_ext_phy_rtl8201FL.c" -o"Objects - TCPIP Demo App-C30eth_pic32_ext_phy_rtl8201FL.o" -I"." -I"C:ProgrammingWebserver1.1Microchip Solutions v2010-10-19MicrochipInclude" -I"%PROGRAMFILES%MicrochipMPLAB C30include" -g -Wall -mlarge-code

C:ProgrammingWebserver1.1Microchip Solutions v2010-10-19MicrochipTCPIP Stacketh_pic32_ext_phy_rtl8201FL.c:37:18: error: plib.h: No such file or directory
4
Web platform / Re: Getting started building custom web pages/CGI
Follow on question:

I'm now trying to compile the TCPIP Demo App-C30 from the Web Platforms SVN repository.

I've tried two different versions of the microchip TCPIP stack, both the newer 'Microchip Solutions v2010-10-19', and the older 'Microchip Solutionsv2010-02-09' as referenced on the Web Platform site.

I've followed the directions in main.c, as far as I can tell, correctly. And in both instances I get compilation errors:

With TCPIP Stack version: Microchip Solutions v2010-10-19'
Code: [Select]
CustomHTTPApp.c: In function 'HTTPExecuteGet':
CustomHTTPApp.c:247: error: 'LED5_IO' undeclared (first use in this function)
CustomHTTPApp.c:247: error: (Each undeclared identifier is reported only once
CustomHTTPApp.c:247: error: for each function it appears in.)
CustomHTTPApp.c:250: error: 'LED6_IO' undeclared (first use in this function)
CustomHTTPApp.c:253: error: 'LED7_IO' undeclared (first use in this function)
CustomHTTPApp.c: In function 'HTTPPrint_version':
CustomHTTPApp.c:1389: error: 'VERSION' undeclared (first use in this function)
CustomHTTPApp.c: In function 'HTTPPrint_led':
CustomHTTPApp.c:1445: error: 'LED5_IO' undeclared (first use in this function)
CustomHTTPApp.c:1448: error: 'LED6_IO' undeclared (first use in this function)
CustomHTTPApp.c:1451: error: 'LED7_IO' undeclared (first use in this function)
CustomHTTPApp.c: In function 'HTTPPrint_ledSelected':

With TCPIP Stack version: Microchip Solutionsv2010-02-09'
Code: [Select]
Executing: "C:Program FilesMicrochipMPLAB C30binpic30-gcc.exe" -mcpu=33FJ128GP204 -x c -c   "..MicrochipTCPIP StackTick.c" -o"Objects - TCPIP Demo App-C30Tick.o" -I"." -I"C:ProgrammingWebserver1.1Microchip Solutionsv2010-02-09MicrochipInclude" -I"%PROGRAMFILES%MicrochipMPLAB C30include" -g -Wall -mlarge-code
In file included from C:/Programming/Webserver1.1/Microchip Solutionsv2010-02-09/Microchip/Include/TCPIP Stack/TCPIP.h:284,
                from ..MicrochipTCPIP StackTick.c:59:
C:/Programming/Webserver1.1/Microchip Solutionsv2010-02-09/Microchip/Include/TCPIP Stack/Helpers.h:64: error: conflicting types for 'ultoa'
c:/program files/microchip/mplab c30/bin/bin/../../include/stdlib.h:91: error: previous declaration of 'ultoa' was here

Any thoughts? Thanks.
5
Web platform / Re: Getting started building custom web pages/CGI
I think this was the key bit of documentation I didn't know where to look for: http://www.microchip.com/webinars.micro ... e=en543032

At first look I hadn't understood that "Microchips TCP/IP stack" referred to and included the HTTP webserver. I had thought that was an add-on to a lower level "TCP Stack" provided by Microchip, and that those binaries were simply necessary for the build of the HTTP server and such on top of it to succeed.

Now I see that microchip's HTTP stack IS providing the web server, and hence the documentation on the webserver is over there (not here, where I was looking).

Looks like I'm back on track for now.
6
Web platform / Getting started building custom web pages/CGI
What we're trying to do is make a simple web request such as: http://192.168.0.100/mycode.cgi?somedata=xyz, process that data by sending it out the IO pins and provide some textual/html response. Initially we'd be happy just to call our own code and flicker an LED of course.

We've got the web platform v1.1 board all set up. We've successfully loaded the demo microchip website, and we've successfully loaded our own HTML web pages onto it (as well as the microchip demo pages).

Our next step now is to get the web platform to execute our own code so we can control the hardware.

I don't see any documentation that explains how custom code/webpages get created for the web platform. If such documentation exists I have not been able to find it, please direct me to it.

Without documentation I'm working backwards from the examples that are provided. I've successfully used MPFS2.exe to package our static web pages. I see in the microchip demo HTML code that the webserver can do some fancy server-side code, such as in this example of forms.htm:

 
Code: [Select]
<select name="led4"><option value="1" ~ledSelected(4,TRUE)~>On</option>

where the function ledSelected(...) is clearly defined in customHTTPApp.c (though it's not clear to me how this code ever got deployed to the webserver as I don't see mention of it in any file in the 'WebPages2' directory).

I also see the use of CGI programs deployed along side the html files in the microchip demo app. Though I've compiled a simple hello world cgi app in C using MPLAB and tried renaming the output .HEX file to a .cgi and tossing it in with the webpages, the webserver only serves the binary file as if it was HTML. I don't know how to make it recognize a cgi application (which seems like what we want to be able to do).

Any pointers to documentation or in the correct direction would be helpful.
7
Web platform / Re: web platform download, help, FAQ
Ian, thanks for all the help you give. I'm a true newbe at C and the whole TCPIP World. I'll need all the help I can get, but what you guys offer is truly great. Thanks.