|
|
View previous topic :: View next topic |
Author |
Message |
orazio
Joined: 03 Sep 2010 Posts: 27
|
Compiling error with CCS TCP/IP stack |
Posted: Thu Jun 26, 2014 4:38 am |
|
|
Good morning,
i'm using PCH compiler v 4.084 and CCS TCP/IP stack v 3.3 kindly provided by CCS support.
I'd like compiling examples code described in CCS Exercise Book ("Development Kit For the PIC MCU Exercise Book 3.3V Ethernet Controller September 2011")
and then i'd like deploy the binary on my PIC 18F67J60.
I have installed CCS TCP/IP stack, executing file setupTCPIP.exe
The installation wizard has created folder TCP-IP in PCH root folder C:\Program Files (x86)\PICC
I have identified "tcpip" folder in C:\Program Files (x86)\PICC\TCP-IP\PIC Examples Source
and "TCPIP Stack" folder in C:\Program Files (x86)\PICC\TCP-IP\PIC Examples Source\tcpip
Now my folder project is C:\Users\Orazio\AppData\Roaming\PICC\Projects
I copied "tcpip" and "TCPIP Stack" in C:\Users\Orazio\AppData\Roaming\PICC\Projects
I typed mac1.c file described in Exercise Book at page 14 :
Codice:
#include <18F67J60.h>
#use delay(clock=25000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
#fuses HS, NOWDT, NODEBUG
#define STACK_USE_CCS_PICEEC TRUE
#define STACK_USE_MCPINC TRUE //use the nic card
#include "tcpip\stacktsk.c" //include Microchip stack
void MACDisplayHeader(MAC_ADDR *mac, int8 type) {
int8 i;
printf("\r\nMAC: ");
for (i=0;i<6;i++) {
printf("%X", mac->v[i]);
if (i!=5)
putc(':');
}
printf(" PROT:0x08%X ",type);
if (type==MAC_IP)
printf("[IP]");
else if (type==MAC_ARP)
printf("[ARP]");
}
void main(void) {
MAC_ADDR mac;
int8 type;
printf("\r\n\nCCS TCP/IP TUTORIAL\r\n");
MACInit();
while(TRUE){
if (MACGetHeader(&mac, &type)) {
if (type!=MAC_UNKNOWN) {
MACDisplayHeader(&mac, type);
}
}
}
}
Then Click Options>Project Options>Include Files… and review the list of directories
the compiler uses to search for included files.
The install program have put two directories in this list to point to the device: .h files and the device drivers.
I added C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack
When i compile this is the output error list (see attached file mac1.err):
*** Error 28 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 64(28,29): Expecting an identifier
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 64(30,31): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 64(31,32): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 64(37,38): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 64(38,39): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 64(40,44): Expecting a (
*** Error 28 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 72(29,32): Expecting an identifier
*** Error 28 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 73(29,33): Expecting an identifier
*** Error 38 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 74(16,21): This type can not be qualified with this qualifier
*** Error 28 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 74(29,34): Expecting an identifier
*** Error 28 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 75(29,34): Expecting an identifier
*** Error 28 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 120(11,12): Expecting an identifier
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 140(1,2): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 140(3,13): Expecting a (
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 140(15,26): Expecting a (
*** Error 28 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 200(11,12): Expecting an identifier
*** Error 34 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 203(9,19): Unknown type
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 203(20,23): Expecting a (
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 204(20,30): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 204(24,25): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 205(5,6): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 205(6,15): Expecting a (
--- Info 300 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 139(7,11): More info: First Declaration of bits
*** Error 31 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 240(7,11): Identifier is already used in this scope
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 241(1,2): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 241(3,13): Expecting a (
*** Error 81 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 336(33,37): Expecting a basic type
*** Error 28 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 350(33,37): Expecting an identifier
*** Error 38 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 351(16,21): This type can not be qualified with this qualifier
*** Error 28 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 351(33,38): Expecting an identifier
*** Error 38 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 352(37,38): This type can not be qualified with this qualifier
*** Error 119 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Compiler.h" Line 113(10,57): Unknown processor or compiler. See Compiler.h
*** Error 33 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 79(16,29): Expecting a {
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 79(30,31): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 79(31,41): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 79(42,43): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 80(1,2): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 82(1,2): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 82(3,11): Expecting a (
*** Error 33 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 88(16,29): Expecting a {
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 88(30,31): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 88(31,41): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 88(42,43): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 89(1,2): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 91(17,25): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 91(24,25): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 92(1,2): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 92(3,12): Expecting a (
*** Error 33 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 95(16,29): Expecting a {
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 95(30,31): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 95(31,41): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 95(42,43): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 96(1,16): Expecting a (
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 111(15,23): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 111(24,25): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 141(1,2): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 141(3,13): Expecting a (
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 144(23,33): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\StackTsk.h" Line 144(32,33): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 88(5,9): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 88(22,23): Expecting a declaration
--- Info 300 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 459(3,12): More info: First Declaration of DWORD_VAL
*** Error 31 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 88(41,42): Identifier is already used in this scope
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 88(43,52): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 88(53,54): Expecting a declaration
*** Error 32 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 93(41,45): Expecting a , or )
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 93(47,48): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 93(49,50): Expecting a declaration
*** Error 28 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 94(27,31): Expecting an identifier
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 94(28,40): Expecting a (
*** Error 28 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 94(61,65): Expecting an identifier
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 94(62,63): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 94(63,64): Expecting a declaration
*** Error 32 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 138(43,47): Expecting a , or )
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 138(44,49): Expecting a (
*** Error 46 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 138(73,74): Expecting an =
*** Error 36 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 138(94,98): Expecting a ; or ,
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 138(116,117): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Helpers.h" Line 138(117,118): Expecting a declaration
*** Error 119 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Delay.h" Line 63(7,46): GetInstructionClock() must be defined.
*** Error 34 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Tick.h" Line 63(9,22): Unknown type
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Tick.h" Line 63(23,24): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Tick.h" Line 63(24,38): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\Tick.h" Line 63(39,40): Expecting a declaration
*** Error 119 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 90(10,149): No Ethernet/WiFi controller defined in HardwareProfile.h. Defines for an ENC28J60, ENC424J600/624J600, or WiFi MRF24WB10 must be present.
*** Error 33 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 102(1,14): Expecting a {
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 102(15,16): Expecting a declaration
*** Error 28 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 102(24,25): Expecting an identifier
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 102(26,27): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 102(28,34): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 102(35,36): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 104(1,2): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 105(20,28): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 105(31,32): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 106(20,28): Expecting a (
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 106(33,34): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 108(1,2): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 108(3,15): Expecting a (
*** Error 32 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 186(37,45): Expecting a , or )
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 186(48,49): Expecting a declaration
*** Error 43 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 186(49,50): Expecting a declaration
*** Error 48 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\MAC.h" Line 294(6,10): Expecting a (
100 Errors, 0 Warnings.
Please could someone help me to correctly set up the stack CCS TCP / IP, help me to integrate it into my PCH compiler and be able to compile without errors?
Thanks in advance. I look forward to your response. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Thu Jun 26, 2014 7:14 am |
|
|
I do not know where the specific problem is you are experiencing however:
1. Use the code button to make the code readable on the forum
2. The PIC you are using requires the clock frequency to be 41.666667MHz using the phase locked loop
3. The fuses should be set immediately after the processor include file
Code: |
#include <18F67J60.h>
#fuses NOXINST, NOWDT, WDT1024, H4_SW, NOPROTECT, IESO, STVREN, NODEBUG, EMCU20, ETHLED
#define XTAL_FREQ 41666667
#use delay(clock=XTAL_FREQ, oscillator=25M) |
_________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Last edited by asmallri on Fri Jun 27, 2014 12:49 am; edited 1 time in total |
|
|
orazio
Joined: 03 Sep 2010 Posts: 27
|
|
Posted: Thu Jun 26, 2014 8:24 am |
|
|
Excuse me, asmallri, this is the code:
Code: |
#include <18F67J60.h>
#fuses HS, NOWDT, NODEBUG
#use delay(clock=25000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
#define STACK_USE_CCS_PICEEC TRUE
#define STACK_USE_MCPINC TRUE //use the nic card
#include "tcpip\stacktsk.c" //include Microchip stack
void MACDisplayHeader(MAC_ADDR *mac, int8 type) {
int8 i;
printf("\r\nMAC: ");
for (i=0;i<6;i++) {
printf("%X", mac->v[i]);
if (i!=5)
putc(':');
}
printf(" PROT:0x08%X ",type);
if (type==MAC_IP)
printf("[IP]");
else if (type==MAC_ARP)
printf("[ARP]");
}
void main(void) {
MAC_ADDR mac;
int8 type;
printf("\r\n\nCCS TCP/IP TUTORIAL\r\n");
MACInit();
while(TRUE){
if (MACGetHeader(&mac, &type)) {
if (type!=MAC_UNKNOWN) {
MACDisplayHeader(&mac, type);
}
}
}
}
|
The code was not written by me. This is the example on page 14 of the Exercise Book provided by CCS ("Development Kit For the PIC MCU Exercise Book 3.3V Ethernet Controller September 2011").
I'm just following the instructions in the Exercise Book. But, when i try to compile with PCH v4.084, it gives me following error in compilation:
*** Error 28 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\TCPIP Stack\GenericTypeDefs.h" Line 64(28,29): Expecting an identifier
I read in the forum that many users are able to type and compile perfectly the examples provided with the TCP/IP stack CCS v3.3 . Please could you tell me if and where am I doing wrong?
Thanks in advance |
|
|
orazio
Joined: 03 Sep 2010 Posts: 27
|
|
Posted: Thu Jun 26, 2014 8:40 am |
|
|
This is the link of the Exercise Book.
http://www.scribd.com/doc/185980032/Development-Kit-for-the-3-3V-Ethernet-Controller-Exercise-Book
I also tried to compile the source files "ex_st_webserver2.c" supplied with the TCP / IP stack, which makes use of the file "ccstcpip.h" but as soon as I try to compile, it gives me following list of errors:
>>> Warning 224 "ex_st_webserver2.c" Line 1(8,28): #warning add announce module
>>> Warning 224 "ex_st_webserver2.c" Line 116(9,37): #warning add HTTP_USE_AUTHENTICATION
*** Error 27 "C:\Users\Orazio\AppData\Roaming\PICC\Projects\tcpip\p18cxxx.h" Line 33(24,26): Expression must evaluate to a constant
*** Error 48 "C:\Program Files (x86)\PICC\drivers\lcd.c" Line 76(6,10): Expecting a (
*** Error 48 "C:\Program Files (x86)\PICC\drivers\lcd.c" Line 76(12,27): Expecting a (
*** Error 43 "C:\Program Files (x86)\PICC\drivers\lcd.c" Line 76(28,29): Expecting a declaration
*** Error 43 "C:\Program Files (x86)\PICC\drivers\lcd.c" Line 76(29,30): Expecting a declaration
*** Error 43 "C:\Program Files (x86)\PICC\drivers\lcd.c" Line 76(31,32): Expecting a declaration
*** Error 43 "C:\Program Files (x86)\PICC\drivers\lcd.c" Line 76(33,34): Expecting a declaration
*** Error 43 "C:\Program Files (x86)\PICC\drivers\lcd.c" Line 76(34,38): Expecting a declaration
*** Error 43 "C:\Program Files (x86)\PICC\drivers\lcd.c" Line 76(39,40): Expecting a declaration
*** Error 43 "C:\Program Files (x86)\PICC\drivers\lcd.c" Line 76(41,42): Expecting a declaration
*** Error 43 "C:\Program Files (x86)\PICC\drivers\lcd.c" Line 76(50,51): Expecting a declaration
This is the file EX_ST_WEBSERVER2.C:
Code: |
#warning add announce module
///////////////////////////////////////////////////////////////////////////
//// ////
//// EX_ST_WEBSERVER2.C ////
//// ////
}
|
++++++++++++++++++++++++++++
Example code deleted.
Reason: Forum rule #10
10. Don't post the CCS example code or drivers.
Forum rules:
http://www.ccsinfo.com/forum/viewtopic.php?t=26245
- Forum Moderator
++++++++++++++++++++++++++++
Do you have any suggestions?
thanks |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Fri Jun 27, 2014 12:55 am |
|
|
orazio wrote: |
The code was not written by me. This is the example on page 14 of the Exercise Book provided by CCS ("Development Kit For the PIC MCU Exercise Book 3.3V Ethernet Controller September 2011"). |
OK - it is obvious to me that no one actually ran the code segment on page 14. It is wrong.
Regarding your other problem I suggest doing a clean install of the stack into another directory and compile one of there existing sample. I think your installation has a missing closing brace, ; or other error. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
orazio
Joined: 03 Sep 2010 Posts: 27
|
|
Posted: Fri Jun 27, 2014 3:20 pm |
|
|
Ladies and gentlemen, thank you all for the many suggestions received (actually not even a hint. Shame!).
I find out what was the problem and I am writing this post to help some other newbay user that have the same problem.
Thanks to the grant of a kind friend, I installed CCS PCH 4.140.
After,in the path C:\Program Files (x86)\PICC_4_140\TCP-IP, I installed the stack CCS TCP/IP v3.3 that was kindly provided by the CCS support.
Since I intend to use the PIC18F67J60, in the folder C: \ Program Files (x86) \ PICC_4_140 \ TCP-IP \ PIC Examples Source, I modified the file ccstcpip.h by putting :
Code: |
# define STACK_USE_CCS_EWLWIFIB 0 / / + 18f67k22 mrf24wb0m
# define STACK_USE_CCS_EWLWIFIG 0 / / + 18f67k22 mrf24wg0m
# define STACK_USE_CCS_PICEEC 1 / / 18f67j60
# define STACK_USE_CCS_PICENS 0 / / 18f4620 + enc28j60
# define STACK_USE_PIC24FJGA110_ENC28 0 / / explorer 16 PIC24FJ256GA110, ENC28J60. unfortunately you can not use with this combinatin ENC28J60 and 25LC256 at same time
# define STACK_USE_PIC24FJGA010_ENC28 0 / / explorer 16 PIC24FJ128GA010, ENC28J60.
# define STACK_USE_CCS_EWL5V_REV5 0 / / ezWebLynx 5V (rev5), 18f67k22 + enc28j60
# define STACK_USE_CCS_EWL3V 0 / / ezWebLynx 3V, 18f67j60
|
Then I had to modify the file p18cxxx.h in the folder C:\Program Files(x86)\PICC_4_140\TCP-IP\PIC Examples Source\tcpip, otherwise it gave me, again, a compile error.
The modifcation is to comment out the following lines:
Code: |
/* # if defined (BYTE)
# undef BYTE
# endif */
|
Through the ide PCWHD, I opened the example ex7a.c installed along with the TCP / IP stack,
and I pressed the "Compile". Finally CCS creates the binary ex7a.hex
Then i try to compile code described at page 14 of the CCS Exercise Book, and it compile correctly creating the binary mac1.hex
Unfortunately I can not yet claim victory, because on
Monday I get with the courier TNT, the board of PIC_WEB_MAX Olimex with the PIC18f896J60 and I will try deploy the binary example ex7a.c
With this description of how I solved my problem, I hope I was helpful to someone else.
asmallri and other...
Don't worst your time. GO surf!!!
Ciaolo. |
|
|
|
|
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
|