Error Compiling STM32 (solved)

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
Alan_37
Posts: 199
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 55 times
Been thanked: 27 times

Flowcode v11 Error Compiling STM32 (solved)

Post 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:1032: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:1032: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
Last edited by Alan_37 on Sun Nov 02, 2025 2:07 pm, edited 1 time in total.

medelec35
Matrix Staff
Posts: 2175
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 662 times
Been thanked: 735 times

Re: Error Compiling STM32

Post 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.
Martin

Alan_37
Posts: 199
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 55 times
Been thanked: 27 times

Re: Error Compiling STM32

Post 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

medelec35
Matrix Staff
Posts: 2175
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 662 times
Been thanked: 735 times

Re: Error Compiling STM32

Post 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
Martin

Alan_37
Posts: 199
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 55 times
Been thanked: 27 times

Re: Error Compiling STM32

Post 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
Attachments
407ZGT6_ILLUM.msg.txt
(3.29 KiB) Downloaded 4 times

medelec35
Matrix Staff
Posts: 2175
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 662 times
Been thanked: 735 times

Re: Error Compiling STM32

Post 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.
Martin

Alan_37
Posts: 199
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 55 times
Been thanked: 27 times

Re: Error Compiling STM32

Post by Alan_37 »

Yes here it is
Attachments
407ZGT6_ILLUM.fcxlog.txt
(11.06 KiB) Downloaded 6 times

Alan_37
Posts: 199
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 55 times
Been thanked: 27 times

Re: Error Compiling STM32

Post 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 .
Attachments
407ZGT6_ILLUM.msg.txt
(10.79 KiB) Downloaded 5 times
STARM_CAL_String.c
(29.9 KiB) Downloaded 4 times

Post Reply