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
Import FC7-project into FC8 --> SPI errors
Moderator: Benj
-
- Posts: 77
- Joined: Wed Jun 22, 2011 3:32 pm
- Has thanked: 17 times
- Been thanked: 11 times
- Contact:
Import FC7-project into FC8 --> SPI errors
- Attachments
-
- Version 8 SPI error.png
- (52.62 KiB) Downloaded 744 times
-
- Posts: 170
- Joined: Fri Jul 15, 2016 9:51 pm
- Has thanked: 69 times
- Been thanked: 61 times
- Contact:
Re: Import FC7-project into FC8 --> SPI errors
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
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