Hello,
My embedded project was designed with FC5. I exported my FC5 project to FC10 without problem but I have some questions.
I have a lot of exported components: v5__switch1, v5__adc0, ect ...
Can I customise v5__ exported components or this components are now not customisable ?
In my FC5 project, I have v5__custom20 component corresponding a Glcd ST7565R SPI component. This component is not successfully exported. I have only the name of the component "v5__custom20" without the macros. I have .fcc file but I don't find a method in this forum to convert the .fcc file in new FC10 component. The problem is if I create a new FC10 component, my project have refer to the old v5__custom20 component.
So, how to do to replace the old refer to a new component with my customised macros ?
Thank you for your help.
Importing embedded project from FC5 to FC10
- Nico595
- Posts: 95
- http://meble-kuchenne.info.pl
- Joined: Tue Jul 04, 2023 4:17 pm
- Has thanked: 18 times
- Been thanked: 4 times
-
- Matrix Staff
- Posts: 1513
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 212 times
- Been thanked: 351 times
Re: Importing embedded project from FC5 to FC10
If you add your new component to your old v10 project, then you should be able to use the "replace" feature to replace each of your old components with the new one.
So here: https://www.flowcode.co.uk/wiki/index.p ... _Component
This works best when the component macros for the two components are identical (i.e. same names, returns and parameters).
If this fails, then you may need to make the change manually by searching for icons calling your old component.
So here: https://www.flowcode.co.uk/wiki/index.p ... _Component
This works best when the component macros for the two components are identical (i.e. same names, returns and parameters).
If this fails, then you may need to make the change manually by searching for icons calling your old component.
Re: Importing embedded project from FC5 to FC10
Hi Steve,
Thank you for your fast answer.
It's perfect, thank you for your advice and this link. I will create my user component with my customised macros and replace it. Also I will replace all imported components by the V10 components to customise this components in the future.
Best
Thank you for your fast answer.
It's perfect, thank you for your advice and this link. I will create my user component with my customised macros and replace it. Also I will replace all imported components by the V10 components to customise this components in the future.
Best

Re: Importing embedded project from FC5 to FC10
I designed my old custom20 component with all macros. I must tell "congratulations" for your very good job. The customised component designer is great.
We can now use the flowchart to design customised component macros.
In a first step I have simply take the C code of my old customised component to create a new FC10 component. I have now all macros in my customised component. But I have again some questions:
In the V5 component macro designer, I used the "Defines" section to declare the variables and the internal prototype functions.
What is the good place in the FC10 customised component for the Defines ?
I tried in the main and in the Init macro but without success. My var declarations are not found and the compiler send a message "undeclared (first use in this function)".
When I add the var declaration in the C code of the macro, I have not this message. But it don't work when the declaration is in the void line like "Parameter" for some functions.
Thank you.
We can now use the flowchart to design customised component macros.
In a first step I have simply take the C code of my old customised component to create a new FC10 component. I have now all macros in my customised component. But I have again some questions:
In the V5 component macro designer, I used the "Defines" section to declare the variables and the internal prototype functions.
What is the good place in the FC10 customised component for the Defines ?
I tried in the main and in the Init macro but without success. My var declarations are not found and the compiler send a message "undeclared (first use in this function)".
When I add the var declaration in the C code of the macro, I have not this message. But it don't work when the declaration is in the void line like "Parameter" for some functions.
Thank you.
-
- Matrix Staff
- Posts: 1513
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 212 times
- Been thanked: 351 times
Re: Importing embedded project from FC5 to FC10
You could try using global variables or constants in the component. Or if you are using C code within your project then add Supplementary Code to your project. This is available within the Project Options screen.
Re: Importing embedded project from FC5 to FC10
When I add global variables, constants and variables in Parameters of the component macro, some macros can't be compiled. I don't know why the variables in parameters don't work for some macros of my user component. Work fine like this with the FC5. So to compile and progress I followed your advice and I added a C code with variable declarations. Work fine with the ASCII characters var declarations and my logos. But the problem with the variables in parameters is no clean. This problem exist for lcd_draw_line, lcd_draw_pixel, _pixel, lcd_print_string and other user component macros. I will send you the Custom20.
You can see on the print screen, I have also a problem with global variables called in the C code of the Costum20 component. No problem with FC5 but here, this global variables are undeclared. For example FCV_LEVEL_GRAPH_ADC0 ...
This variables are used in macros of the project without problem. This problem exist only in the user component.
I can see the user component in first place of the compiled C file. A bit strange but maybe the reason why the global variables are not found.
I understood FCSZ_ for size of the variable is now FCVsz_.
I can't compile my project with success because I have also error from the Interrupt section. You can see on the print screen the partial void declaration of Interrupt section at the end of the C file. I have no idea how to do to resolve it because this lines are write by FC.
You can see on the print screen, I have also a problem with global variables called in the C code of the Costum20 component. No problem with FC5 but here, this global variables are undeclared. For example FCV_LEVEL_GRAPH_ADC0 ...
This variables are used in macros of the project without problem. This problem exist only in the user component.
I can see the user component in first place of the compiled C file. A bit strange but maybe the reason why the global variables are not found.
I understood FCSZ_ for size of the variable is now FCVsz_.
I can't compile my project with success because I have also error from the Interrupt section. You can see on the print screen the partial void declaration of Interrupt section at the end of the C file. I have no idea how to do to resolve it because this lines are write by FC.
Re: Importing embedded project from FC5 to FC10
I find the Interrupt enable code and void declaration code in the AT91SAM7S512_64.fcdx file.
I removed the first void declaration but this line is always present in the compiled c file. I search the good .fcdx file and how this file is used by FC.
EDIT: I was not in the good directory to update the AT91SAM7S512_64.fcdx file. I removed the first declaration of the Interrupt void. The last error is always here. I added USB serial component in the project and we can see the USB Component code in the Interrupt void. Probably a problem with the syntax of the Interrupt init code in the .fcdx file.
I removed the first void declaration but this line is always present in the compiled c file. I search the good .fcdx file and how this file is used by FC.
EDIT: I was not in the good directory to update the AT91SAM7S512_64.fcdx file. I removed the first declaration of the Interrupt void. The last error is always here. I added USB serial component in the project and we can see the USB Component code in the Interrupt void. Probably a problem with the syntax of the Interrupt init code in the .fcdx file.
Re: Importing embedded project from FC5 to FC10
I just fix the problem about the end of input error, "}" was missing in a Custum20 macro.
Like with the html code, error find by the compiler was not on the good line.
I have now new error from the custom20 component. In fact all parameters of the custom20 component macro are "undeclared" for the compiler.
I will declare my variables in a C code per macro tomorrow.
EDIT: I have find why all parameter variables of the user component macros are "undeclared" for the compiler, we must use the Flowcode prefix of the variable in the C code of the component macro. I will open one topic per problem in the user components section of the forum because many things about the C code are different between FC5 and FC10.
Like with the html code, error find by the compiler was not on the good line.
I have now new error from the custom20 component. In fact all parameters of the custom20 component macro are "undeclared" for the compiler.
I will declare my variables in a C code per macro tomorrow.
EDIT: I have find why all parameter variables of the user component macros are "undeclared" for the compiler, we must use the Flowcode prefix of the variable in the C code of the component macro. I will open one topic per problem in the user components section of the forum because many things about the C code are different between FC5 and FC10.