FC7 project does not compile

Use this section to discuss your embedded Flowcode projects.
Post Reply
leoo
Posts: 10
http://meble-kuchenne.info.pl
Joined: Wed Jan 19, 2022 11:20 am
Has thanked: 1 time
Been thanked: 1 time

FC7 project does not compile

Post by leoo »

Hi,

I've just downloaded FC7 7.3.0.5 (thanks Martin for your help) and tried to compile a project that I did in 2020 using FC7 7.3.0.9, just to check that everything still worked OK. It fails to compile, and comes up with the following message.

"In function 'FC_CAL_SPI_Master_Init_1':
C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_SPI.c:228:3: error: 'SPI1STATbits' undeclared (first use in this function)"

This project compiled successfully previously and no changes have been made to the project since then. It also compiles properly in FC8 8.2.2.15, after re-assigning the pin-outs.

I've gone through the forum and noted that in most instances of these types of undeclared vars, it is because of unassigned pins, but I cannot find any that are not assigned.

I haven't attached the project here, as it is proprietary. Can someone shed some light on what I've missed?

Kind regards.
Leo

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: FC7 project does not compile

Post by medelec35 »

Hi Leo, you're welcome.
Have you updated v7 with the latest components from here?
If Flowcode is running when it's updated, you will need to reload your project for the updates to take effect.
Martin

leoo
Posts: 10
Joined: Wed Jan 19, 2022 11:20 am
Has thanked: 1 time
Been thanked: 1 time

Re: FC7 project does not compile

Post by leoo »

Hi Martin,

Thanks, I downloaded FC7_Latest_Files_23-02-21.zip from the link and extracted into the Flowcode 7 folder. I closed FC7 and re-opened with the same results and the same compiler errors.

I see that the version is 7.3.0.7, which is the same version that I did the project on originally. This makes things a bit confusing, as the only thing to change (I think) is the version of Win and a more up to date PC.

Regards.
Leo

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: FC7 project does not compile

Post by medelec35 »

Unfortunately, Flowcode v7 is too old for support.
If you post or PM your project to me, then I can see if my Flowcode v7 compiles your project ok.
The thing to bear in mind if Flowcode 10 is free, if you have the same target as your current project, since all the components are now free.
Take a look here.
Unlike previous versions, not only are all the components free, but the code and users macros that can be used are now unlimited.
Martin

leoo
Posts: 10
Joined: Wed Jan 19, 2022 11:20 am
Has thanked: 1 time
Been thanked: 1 time

Re: FC7 project does not compile

Post by leoo »

Hi Martin,

I've PMéd the project to you to see whether you can compile it or not.

I've also installed FC10, The patch on the download page won't run and the free version of FC10 won't let me compile. There is no option to select a 30 day trial. This could be my fault entirely, but maybe you can suggest a way forward?

Regards.
Leo

medelec35
Matrix Staff
Posts: 1913
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 619 times
Been thanked: 644 times

Re: FC7 project does not compile

Post by medelec35 »

Hello.
Before the project will compile you will need to make some changes.
The TCP_IP_EB023_00_2 now requires an unsigned int instead of two bytes for Create TCP Socket.
The DS1820 is not supported.
The full list of components can be found here
Do you have an alternative temperature sensor?
If you would like to make the changes then I will compile for you.
I have moved the components on to the 2D panel and aligned them all up.
Will send back your project via PM
Martin

leoo
Posts: 10
Joined: Wed Jan 19, 2022 11:20 am
Has thanked: 1 time
Been thanked: 1 time

Re: FC7 project does not compile

Post by leoo »

Hi Martin,

Thanks, I will make the changes as per your instructions, and send the project back via PM when done.

Regards.
Leo

Post Reply