Page 1 of 1

Import FC7-project into FC8 --> SPI errors

Posted: Sat Feb 09, 2019 12:08 pm
by Jörg Güldner
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.c:1398:30: error: macro "SET_PORT_MASK" requires 3 arguments, but only 2 given
2152053960_V01_R00_PIC24FV32KA304_V8.c:1398:5: error: 'SET_PORT_MASK' undeclared (first use in this function)
2152053960_V01_R00_PIC24FV32KA304_V8.c:1398:5: 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.c:1584:30: error: macro "SET_PORT_MASK" requires 3 arguments, but only 2 given
2152053960_V01_R00_PIC24FV32KA304_V8.c:1584:5: 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.c:1987:30: error: macro "SET_PORT_MASK" requires 3 arguments, but only 2 given
2152053960_V01_R00_PIC24FV32KA304_V8.c:1987:5: 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.c:2173:30: error: macro "SET_PORT_MASK" requires 3 arguments, but only 2 given
2152053960_V01_R00_PIC24FV32KA304_V8.c:2173:5: 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

Re: Import FC7-project into FC8 --> SPI errors

Posted: Mon Feb 11, 2019 7:54 pm
by Lagoda
Hello Jörg,

I have already detected similar migration errors.
When I load my projects from FlowCode v7 to FlowCode v8, the values ​​of Component Macros Properties are settings back by default.
Then I set the correct parameters again on the Flowcode V8 Component Macro Properties tab and after that I managed to download and start the project.

Best Regards,

Lagoda