Page 1 of 1
Error Compiling STM32 (solved)
Posted: Sat Nov 01, 2025 11:21 pm
by Alan_37
Hello ,
I have a file that was written in Flowcode 10. It compiles without any problems in V10, but in Flowcode 11, it gives this error.
I have tried adding "char FCLsz_TEMPSTR[100];" in a C block in the beginning, but it does not solve the problem .
C:\ProgramData\MatrixTSL\FlowcodeV11\CAL\STARM\STARM_CAL_String.c: In function 'FCI_EXPLODETOINTARRAY':
C:\ProgramData\MatrixTSL\FlowcodeV11\CAL\STARM\STARM_CAL_String.c

66: error: 'FCLsz_TEMPSTR' undeclared (first use in this function)
FCL_DATAARRAY[FCR_RETVAL] = FCI_STRING_TO_INT(FCL_TEMPSTR, FCLsz_TEMPSTR);
C:\ProgramData\MatrixTSL\FlowcodeV11\CAL\STARM\STARM_CAL_String.c

66: note: each undeclared identifier is reported only once for each function it appears in
Error(s) in build
C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\ARM\batch\stm32comp.bat reported error code 0x1
Re: Error Compiling STM32
Posted: Sat Nov 01, 2025 11:49 pm
by medelec35
Hello.
That issue has been fixed.
What you need to do is a full database component update.
Help > Library Updates...
Change Files in-use to Full database
Then you will need to reload your project.
The reason it worked with FC10 the component library was probably fully updated.
Re: Error Compiling STM32
Posted: Sun Nov 02, 2025 12:07 am
by Alan_37
Hi medelec35, thanks for your reply
Already did that right after installing today with no luck.
Yes, i saw the other post. I think the bug was fixed for PIC32BIT not for STM32
Re: Error Compiling STM32
Posted: Sun Nov 02, 2025 12:34 am
by medelec35
You're welcome.
Is this
the post you are referring to?
Can you post your project .fcfx & .fcxlog.txt files
If you want to keep your project private, you could either pm it to me or strip it down, and attach it.
Make sure you still have the error
Re: Error Compiling STM32
Posted: Sun Nov 02, 2025 10:50 am
by Alan_37
Hi Martin,
There’s no need to upload any files — you just need to fix the file STARM_CAL_String.c.
Simply apply the same changes that were done in PIC32BIT_CAL_String.c, and that should solve the problem.
That said, if you still want me to upload the files, that’s not a problem. However, the code is a bit complex and requires including several supplementary files to compile properly.
Thanks in advance for your help — I really hope I can start using Flowcode 11 soon
Re: Error Compiling STM32
Posted: Sun Nov 02, 2025 11:57 am
by medelec35
The PIC32BIT_CAL_String.c was fixed.
That is why I added the link to show you that.
You have not attached the important .fcxlog.txt file, which may or may not give us a clue.
Can you attach that before we can continue.
Re: Error Compiling STM32
Posted: Sun Nov 02, 2025 1:05 pm
by Alan_37
Yes here it is
Re: Error Compiling STM32
Posted: Sun Nov 02, 2025 1:50 pm
by Alan_37
Hi Martin,
Took a look at STARM_CAL_String.c and fixed the issue myself.
The error turned out to be a missing variable declaration, which needed to be replaced with the appropriate constant value representing the buffer size.
Now everything works and compiles OK, You can take a look and confirm everything is OK, and push the file for a global Update .