CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Compiler errors with TCP/IP stack

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
adilrs



Joined: 17 May 2014
Posts: 2
Location: São Paulo ,Brasil

View user's profile Send private message Send e-mail Visit poster's website

Compiler errors with TCP/IP stack
PostPosted: Tue Apr 28, 2015 12:58 pm     Reply with quote

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
Code:
   BYTE * nameRAM;

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

View user's profile Send private message

PostPosted: Tue Apr 28, 2015 1:52 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Apr 29, 2015 8:45 am     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Apr 29, 2015 11:48 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Apr 30, 2015 1:19 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group