Hello. I would like to give my thanks to FlowCode 10 with open source and several free microcontrollers.
I was thinking about creating flowchart codes in flowcode to be able to generate a C code. So, I was questioning whether it would be too much work to use this generated C Code to adapt it in ST Visual Develop and make an STM8S work, because the flowcode does not has support for it. So, in your opinion, would it be a lot of work to do this?
Using C code generated in FlowCode in other IDE's
-
- Posts: 10
- http://meble-kuchenne.info.pl
- Joined: Tue Apr 06, 2021 6:06 pm
- Has thanked: 2 times
- Been thanked: 1 time
-
- Matrix Staff
- Posts: 1744
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 444 times
- Been thanked: 604 times
Re: Using C code generated in FlowCode in other IDE's
Hello,
Yes it should be possible, You would be essentially writing parts of the CAL (chip abstraction layer) for the STM8 microcontroller. If you are familiar with C then you can look at the existing CAL codes here for reference. You would only need to create the functions that you require, for example I/O and maybe ADC, I2C, SPI etc.
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL
Once you've done that it should be fairly easy to create a FCD (Flowcode chip definition) that would provide the pin and peripheral layout you require. You can look at the current FCD files using a text editor to see the syntax and allow you to copy and create your own.
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD
Let u sknow how you're getting on.
Yes it should be possible, You would be essentially writing parts of the CAL (chip abstraction layer) for the STM8 microcontroller. If you are familiar with C then you can look at the existing CAL codes here for reference. You would only need to create the functions that you require, for example I/O and maybe ADC, I2C, SPI etc.
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL
Once you've done that it should be fairly easy to create a FCD (Flowcode chip definition) that would provide the pin and peripheral layout you require. You can look at the current FCD files using a text editor to see the syntax and allow you to copy and create your own.
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD
Let u sknow how you're getting on.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 10
- Joined: Tue Apr 06, 2021 6:06 pm
- Has thanked: 2 times
- Been thanked: 1 time
Re: Using C code generated in FlowCode in other IDE's
Thank you very much for your clarifications, Ben. They are of great help to me !