pic18f6722 VS dspic30f6012

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
azevedo
Posts: 14
Joined: Tue Feb 03, 2015 2:27 pm
Location: aveiro / portugal
Has thanked: 4 times
Been thanked: 2 times
Contact:

pic18f6722 VS dspic30f6012

Post 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

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: pic18f6722 VS dspic30f6012

Post by kersing »

Those are warning messages that can be ignored. Do you have real errors as well?
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

azevedo
Posts: 14
Joined: Tue Feb 03, 2015 2:27 pm
Location: aveiro / portugal
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: pic18f6722 VS dspic30f6012

Post 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

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: pic18f6722 VS dspic30f6012

Post by kersing »

Can you post your flowchart so we can check what generates that statement?
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

azevedo
Posts: 14
Joined: Tue Feb 03, 2015 2:27 pm
Location: aveiro / portugal
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: pic18f6722 VS dspic30f6012

Post by azevedo »

this is the file that is giving me problems
Attachments
control avi_dspic.fcfx
(612.21 KiB) Downloaded 139 times

azevedo
Posts: 14
Joined: Tue Feb 03, 2015 2:27 pm
Location: aveiro / portugal
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: pic18f6722 VS dspic30f6012

Post 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

Post Reply