Page 1 of 1

pic18f6722 VS dspic30f6012

Posted: Thu Apr 09, 2020 6:40 pm
by azevedo
Hello !
I am trying to use a flow chart that I have in the 8 bit version for the 16 bit version.
when compiling it gives error.
I'll give you the example here: C: \ ProgramData \ MatrixTSL \ FlowcodeV8 \ CAL \ / PIC16BIT \ PIC16BIT_CAL_String.c: 377: 18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
control avi_dspic.c: 17550: 7: warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C: \ ProgramData \ MatrixTSL \ FlowcodeV8 \ CAL \ / PIC16BIT \ PIC16BIT_CAL_String.c: 884: 13: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
control avi_dspic.c: 17551: 7: warning: passing argument 1 of 'FCI_SHEAD' discards qualifiers from pointer target type
C: \ ProgramData \ MatrixTSL \ FlowcodeV8 \ CAL \ / PIC16BIT \ PIC16BIT_CAL_String.c: 823: 13: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
the idea is to be able to use a more powerful microcontroller.
I appreciate the possible help!
thanks

Re: pic18f6722 VS dspic30f6012

Posted: Thu Apr 09, 2020 6:55 pm
by kersing
Those are warning messages that can be ignored. Do you have real errors as well?

Re: pic18f6722 VS dspic30f6012

Posted: Thu Apr 09, 2020 7:22 pm
by azevedo
hello kersing!
thanks for the quick response !
yes in fact besides these warnings, somewhere in the middle there is: control avi_dspic.c: 17534: 1: error: 'TRISA' undeclared (first use in this function)
control avi_dspic.c: 17534: 1: note: each undeclared identifier is reported only once for each function it appears in
control avi_dspic.c: 17534: 1: error: 'PORTA' undeclared (first use in this function)
control avi_dspic.c: 17534: 1: error: 'LATA' undeclared (first use in this function)
 and at the end of the compilation:
Error returned from [xc16-gcc.exe]
.

C: \ Program Files (x86) \ Flowcode \ Common \ Compilers \ pic16 \ batchfiles \ pic16_C30_comp.bat reported error code 1

Re: pic18f6722 VS dspic30f6012

Posted: Thu Apr 09, 2020 8:46 pm
by kersing
Can you post your flowchart so we can check what generates that statement?

Re: pic18f6722 VS dspic30f6012

Posted: Thu Apr 09, 2020 8:58 pm
by azevedo
this is the file that is giving me problems

Re: pic18f6722 VS dspic30f6012

Posted: Fri Apr 10, 2020 11:34 am
by azevedo
I already found out what the problem was! :D
the lack of attention sometimes betrays you!
I was declaring outputs from the microcontroller that in fact could not exist .....
thanks for the help anyway