Import FC7-project into FC8 --> SPI errors
Posted: Sat Feb 09, 2019 12:08 pm
Hello Matrix team,
a program written in version 7 is not running in version 8.
The compiler aborts with the following message:
-------------------------------------------------------------------------------------------------------------------------------------
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
2152053960_V01_R00_PIC24FV32KA304_V8.c: In function 'FCD_01532_cal_spi__Master_Enable_CS':
2152053960_V01_R00_PIC24FV32KA304_V8.c30: error: macro "SET_PORT_MASK" requires 3 arguments, but only 2 given
2152053960_V01_R00_PIC24FV32KA304_V8.c5: error: 'SET_PORT_MASK' undeclared (first use in this function)
2152053960_V01_R00_PIC24FV32KA304_V8.c5: note: each undeclared identifier is reported only once for each function it appears in
2152053960_V01_R00_PIC24FV32KA304_V8.c: In function 'FCD_01532_cal_spi__Master_Disable_CS':
2152053960_V01_R00_PIC24FV32KA304_V8.c30: error: macro "SET_PORT_MASK" requires 3 arguments, but only 2 given
2152053960_V01_R00_PIC24FV32KA304_V8.c5: error: 'SET_PORT_MASK' undeclared (first use in this function)
2152053960_V01_R00_PIC24FV32KA304_V8.c: In function 'FCD_01531_cal_spi__Master_Enable_CS':
2152053960_V01_R00_PIC24FV32KA304_V8.c30: error: macro "SET_PORT_MASK" requires 3 arguments, but only 2 given
2152053960_V01_R00_PIC24FV32KA304_V8.c5: error: 'SET_PORT_MASK' undeclared (first use in this function)
2152053960_V01_R00_PIC24FV32KA304_V8.c: In function 'FCD_01531_cal_spi__Master_Disable_CS':
2152053960_V01_R00_PIC24FV32KA304_V8.c30: error: macro "SET_PORT_MASK" requires 3 arguments, but only 2 given
2152053960_V01_R00_PIC24FV32KA304_V8.c5: error: 'SET_PORT_MASK' undeclared (first use in this function)
Error returned from [xc16-gcc.exe]
C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\batchfiles\pic16_C30_comp.bat reported error code 1
FINISHED
-------------------------------------------------------------------------------------------------------------------------------------
used cpu = PIC24FV32KA304
What I found out:
01.) Replaced the two version 7 SPI-Master to two from version 8 --> compiler runs through --> program have errors
02.) On one SPI is a display, on the other one a DDS-Chip. If I disable the icon from SPI-Master DDS-Chip "Initialise", the display is dark???
It seemed so, as from one SPI-component is c-code inside for the other one.
Can you have a look to this situation?
Best regards
Jörg
a program written in version 7 is not running in version 8.
The compiler aborts with the following message:
-------------------------------------------------------------------------------------------------------------------------------------
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
2152053960_V01_R00_PIC24FV32KA304_V8.c: In function 'FCD_01532_cal_spi__Master_Enable_CS':
2152053960_V01_R00_PIC24FV32KA304_V8.c30: error: macro "SET_PORT_MASK" requires 3 arguments, but only 2 given
2152053960_V01_R00_PIC24FV32KA304_V8.c5: error: 'SET_PORT_MASK' undeclared (first use in this function)
2152053960_V01_R00_PIC24FV32KA304_V8.c5: note: each undeclared identifier is reported only once for each function it appears in
2152053960_V01_R00_PIC24FV32KA304_V8.c: In function 'FCD_01532_cal_spi__Master_Disable_CS':
2152053960_V01_R00_PIC24FV32KA304_V8.c30: error: macro "SET_PORT_MASK" requires 3 arguments, but only 2 given
2152053960_V01_R00_PIC24FV32KA304_V8.c5: error: 'SET_PORT_MASK' undeclared (first use in this function)
2152053960_V01_R00_PIC24FV32KA304_V8.c: In function 'FCD_01531_cal_spi__Master_Enable_CS':
2152053960_V01_R00_PIC24FV32KA304_V8.c30: error: macro "SET_PORT_MASK" requires 3 arguments, but only 2 given
2152053960_V01_R00_PIC24FV32KA304_V8.c5: error: 'SET_PORT_MASK' undeclared (first use in this function)
2152053960_V01_R00_PIC24FV32KA304_V8.c: In function 'FCD_01531_cal_spi__Master_Disable_CS':
2152053960_V01_R00_PIC24FV32KA304_V8.c30: error: macro "SET_PORT_MASK" requires 3 arguments, but only 2 given
2152053960_V01_R00_PIC24FV32KA304_V8.c5: error: 'SET_PORT_MASK' undeclared (first use in this function)
Error returned from [xc16-gcc.exe]
C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\batchfiles\pic16_C30_comp.bat reported error code 1
FINISHED
-------------------------------------------------------------------------------------------------------------------------------------
used cpu = PIC24FV32KA304
What I found out:
01.) Replaced the two version 7 SPI-Master to two from version 8 --> compiler runs through --> program have errors
02.) On one SPI is a display, on the other one a DDS-Chip. If I disable the icon from SPI-Master DDS-Chip "Initialise", the display is dark???
It seemed so, as from one SPI-component is c-code inside for the other one.
Can you have a look to this situation?
Best regards
Jörg