Page 1 of 1
Using C code generated in FlowCode in other IDE's
Posted: Tue May 02, 2023 4:14 pm
by OderlandoAbril
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?
Re: Using C code generated in FlowCode in other IDE's
Posted: Wed May 03, 2023 1:38 pm
by BenR
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.
Re: Using C code generated in FlowCode in other IDE's
Posted: Mon May 15, 2023 11:18 am
by OderlandoAbril
Thank you very much for your clarifications, Ben. They are of great help to me !
Re: Using C code generated in FlowCode in other IDE's
Posted: Wed Jan 14, 2026 7:37 am
by Brendan
Hi guys.
An old post I know, though with the advent of cherished FC11, and being professionally forced down an ever-narrowing corridor to integrate Flowcode projects with micro-ROS on (supported) STM32F407, an example tutorial would be fantastic.
Setting up the CubeMX IDE appears to be pretty-well covered by AI search responses on the subject.
Thereafter, as fundamentally not a C coder, I'm now fighting my demons in the dark with a blunted pencil.
As a starting block to build upon, it would be fantastic if there were an example video or PDF tutorial, such as something simple to turn on/off ports controlling LEDs with commands from a ROS host/network, or challenge/response messaging (etc).
All the best,
Brendan
Re: Using C code generated in FlowCode in other IDE's
Posted: Wed Jan 14, 2026 9:25 am
by mnfisher
Looking at the micro-ROS docs at
https://micro.ros.org/docs/tutorials/co ... tion_rtos/ it looks like it might use FreeRTOS as an underlying OS. There are quite a few examples on the forums using this on esp32 - which may give you a bit of a start point.
Martin