View previous topic :: View next topic |
Author |
Message |
adilrs
Joined: 17 May 2014 Posts: 2 Location: São Paulo ,Brasil
|
Compiler errors with TCP/IP stack |
Posted: Tue Apr 28, 2015 12:58 pm |
|
|
Hello everybody ! I'm new here so I apologize if you make any obvious question for y'all ! However I am suffering more than three weeks with a domesticated design automation !
I have a development board with 18f97j60
http://www.ebay.com/itm/PIC-Ethernet-Development-Board-PIC-WEB-EK-for-PIC18F97J60-/271848230627?pt=LH_DefaultDomain_0&hash=item3f4b6acee3
It comes with examples in MPLAB, however I am more used to the CCS to play engineer.
In MPLAB by examples using TCP -STACK, has web server where the page do the Upload to EEPROM.
I managed to serve the page with Getting the answers with CGI by the Wizard of CCS, however when I enable
Code: |
#define STACK_USE_MPFS2
#define MPFS_USE_EEPROM
|
begin errors and can not compile more.
For example:
Code: |
MPFS MPFSOpenROM(ROM BYTE* file)
{
BYTE nameRAM[MAX_FILE_NAME_LEN+1];
memcpypgm2ram(nameRAM, (ROM void*)file, strlenpgm((ROM char*)file));
nameRAM[strlenpgm((ROM char*)file)] = '\0';
return MPFSOpen([b]nameRAM[/b]);
}
|
MPFS.c" Line 347(20,27): A numeric expression must appear here
And this is just the beginning of errors.
I walked around this by changing the declaration for
more ai is an error cascade later!
Would have some simpler mode to enable the use EEPROM
to store my files?
Sorry for the bad English, I speak only Portuguese, translated by google rs |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9246 Location: Greensville,Ontario
|
|
Posted: Tue Apr 28, 2015 1:52 pm |
|
|
Would love to but I do NOT have a Microsoft ONEDRIVE account. It's bad enough they 'sniff' my PC once a day...so I refuse to get into their 'cloud'...
I have to assume the hardware does exist and this is NOT a Proteus simulation? If so , please post schematic, but not on one drive.....
Also IF you put a vaild user ID in (instead of grabbing off the net) does your program function ?
Jay |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Apr 29, 2015 8:45 am |
|
|
Quote: | And this is just the beginning of errors |
I think you're trying to compile the Microchip Stack using the CCS
compiler. That won't work. You need to use a Microchip compiler,
such as XC8.
http://www.microchip.com/pagehandler/en_us/devtools/mplabxc/
Also get support from the Microchip forum. |
|
|
adilrs
Joined: 17 May 2014 Posts: 2 Location: São Paulo ,Brasil
|
|
Posted: Wed Apr 29, 2015 11:48 am |
|
|
PCM programmer wrote: | Quote: | And this is just the beginning of errors |
I think you're trying to compile the Microchip Stack using the CCS
compiler. That won't work. You need to use a Microchip compiler,
such as XC8.
http://www.microchip.com/pagehandler/en_us/devtools/mplabxc/
Also get support from the Microchip forum. |
Thanks for the tip!
As in the CCS Wizard own it uses the Stack, thought to have a more easy solution to the case!
What I do not want is to have to adapt to another compiler :(
grateful |
|
|
Gabriel
Joined: 03 Aug 2009 Posts: 1067 Location: Panama
|
|
Posted: Thu Apr 30, 2015 1:19 pm |
|
|
i have the Non-Chinese version of your board: https://www.olimex.com/Products/PIC/Development/PIC-MAXI-WEB/
I have not been able to get this thing online with the CCS stack.
I did get it to work with the supplied Olimex examples using the Microchip compiler... which i didnt like at all.
I did get it to work with modbus TCP/IP but only because CCS gave me a version of the stack that worked with the examples provided.
other than that... its collecting dust.
I have since purchased an ESP8*** 5 dolar IOT thingy... and will try to get that to work, and if that fails.... no IOT for me.
G. _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
|
|