Page 1 of 1

error 255 - tcpip not found

Posted: Tue May 03, 2011 12:40 pm
by joanpamo
Hello. Thank you for this great utility.

I have a problem, and I don't know how solve it: when I compile a simple proyect (only with one configuration blockset) the next error occurs:

prueba1_main.c: In function '_FICD':
prueba1_main.c:36: error: syntax error before '{' token
gmake: *** [prueba1_main.o] Error 255
### Real-Time Workshop build procedure for model: 'prueba1' aborted due to an error.
--dir C:\PROGRA~1\MATLAB\R2010a/rtw/c/src/ext_mode/tcpip not found. It is not added to MPLAB project.


I searched the file tcpip in this directory, but it wasn't there.

Thank you very much again

Re: error 255 - tcpip not found

Posted: Tue May 03, 2011 1:06 pm
by LubinKerhuel
joanpamo wrote:--dir C:\PROGRA~1\MATLAB\R2010a/rtw/c/src/ext_mode/tcpip not found. It is not added to MPLAB project.
This is not the bug.
joanpamo wrote:prueba1_main.c: In function '_FICD':
prueba1_main.c:36: error: syntax error before '{' token
This is the bug.

Which PIC/dsPIC did you choosed in the Master block ?

Lubin

Re: error 255 - tcpip not found

Posted: Wed May 04, 2011 9:21 am
by joanpamo
Ok, I choosed dsPIC 30f4013, with the dsPIC master blockset

Re: error 255 - tcpip not found

Posted: Fri May 06, 2011 5:43 pm
by LubinKerhuel
I used extensively the dsPIC30f4013 and it should not have this kind of bug.
Could you please upload the simulink model you are using on that forum ? (upload attachment at the bottom).

Lubin

Re: error 255 - tcpip not found

Posted: Sat May 07, 2011 4:14 pm
by joanpamo
I'm uploading the simulink model that I use. It's the example that there is on: http://www.kerhuel.eu/wiki/Animation_Co ... irst_model, but it's applied to dsPIC30f4013. All properties of the dsPIC's blockset are default, in order not to get errors.

In the last compilation, I changed from my computer to another that had installed winXP, instead win7 (like first one) And the result was:

*** Alternatively, (re-)compile the MPLAB project : Within Matlab, right-click example1.mcp -> open outside Matlab will open the MPLAB project. Compile, modify..."
### Successful completion of Real-Time Workshop build procedure for model: example1
--dir C:\PROGRA~1\MATLAB\R2010a/rtw/c/src/ext_mode/tcpip not found. It is not added to MPLAB project.


It still doesn't found tcpip, but there no error.


I'm very grateful for your interest. Thank you very much again

Re: error 255 - tcpip not found

Posted: Sat Feb 11, 2012 7:31 am
by jekson
hello LubinKerhuel
thanks for the tool.
I have the same problem joanpamo, this is my error.

### Processing Template Makefile: C:\Users\alex\Documents\MATLAB\dspic\dspic_pic30_gcc.tmf
-- Bypassing matlab internal LCC configuration --
### Creating dsPIC_33f_Explorer16.mk from C:\Users\alex\Documents\MATLAB\dspic\dspic_pic30_gcc.tmf
### Building dsPIC_33f_Explorer16: "C:\PROGRA~1\MATLAB\R2010a\bin\win32\gmake" -f dsPIC_33f_Explorer16.mk GENERATE_REPORT=0 MULTI_INSTANCE_CODE=0 PORTABLE_WORDSIZES=0 GENERATE_ASAP2=0 TMW_EXTMODE_TESTING=0
''pic30-gcc -c -mcpu=24fJ96GA010 -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -IC:\PROGRA~1\MATLAB\R2010a/simulink/include -IC:\PROGRA~1\MATLAB\R2010a/extern/include -IC:\PROGRA~1\MATLAB\R2010a/rtw/c/src -IC:\PROGRA~1\MATLAB\R2010a/rtw/c/ert -IC:\PROGRA~1\MATLAB\R2010a/rtw/c/src/ext_mode/common -IC:\Users\alex\dsPIC_33f_Explorer16_dspic\sources -IC:\Users\alex -IC:\Users\alex\Documents\MATLAB\examples -I C:\PROGRA~1\MICROC~1\MPLABC~1\include dsPIC_33f_Explorer16_main.c
In file included from c:/program files/microchip/mplab c30/bin/bin/../../support/peripheral_24F/timer.h:35,
from dsPIC_33f_Explorer16_private.h:33,
from dsPIC_33f_Explorer16_main.c:28:
c:/program files/microchip/mplab c30/bin/bin/../../support/peripheral_24F/GenericTypeDefs.h:53: error: syntax error before '(' token
gmake: *** [dsPIC_33f_Explorer16_main.o] Error 255
### Real-Time Workshop build procedure for model: 'dsPIC_33f_Explorer16' aborted due to an error.
--dir C:\PROGRA~1\MATLAB\R2010a/rtw/c/src/ext_mode/tcpip not found. It is not added to MPLAB project.
>>

Re: error 255 - tcpip not found

Posted: Sun Feb 12, 2012 9:51 am
by LubinKerhuel
Hello,

TCP/Ip not found does not create an error. just a warning, not important.

Your error is there :
c:/program files/microchip/mplab c30/bin/bin/../../support/peripheral_24F/GenericTypeDefs.h:53: error: syntax error before '(' token
typically, there are problems with boolean declaration.

I thought the blocket handled this now. if not, you might just edit this .h file and check. commenting few lines usually resolve the problem.
(there are few indication on this website/forum on that...)

Lubin

Re: error 255 - tcpip not found

Posted: Sun Feb 12, 2012 10:56 pm
by jekson
thanks for your prompt reply, do not take into account the tcpip error, and if I generated the code in mplab, but when compiling I get another problem.

[tercer_fuzzy_dspic\sources\tercer_fuzzy.c: In function 'tercer_fuzzy_step':
tercer_fuzzy_dspic\sources\tercer_fuzzy.c:121: internal compiler error: in expand_one_stack_var_at, at cfgexpand.c:515
Please submit a full bug report,
with preprocessed source if appropriate.]

Re: error 255 - tcpip not found

Posted: Mon Feb 13, 2012 12:13 am
by LubinKerhuel
Hello,
that error should go to Microchip's compiler's team. I might help to reach them if you want.

Anyway, my feeling is that fuzzy logic is not a great for embedded system. It typically required too much memory or to evluate complex math functions...

Lubin

Re: error 255 - tcpip not found

Posted: Mon Feb 13, 2012 2:43 am
by jekson
I can help correct this problem, which I do, I need to finish this project.
Thank you. :D