Syntax Error

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Abhijit
Posts: 26
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 6:26 am
Has thanked: 3 times

Syntax Error

Post by Abhijit »

Hello!

Since last 2 days I am facing problem with "Syntax Error", I am not able to proceed further as I get this error I try to compile the chart, I do not understand the meaning as well, what I tried was to delete the last change and then compile then it works, I am trying other way to proceed and again the same history repeat.

May I request to please explain me where am I going wrong, I tried restarting FC as well computer but without success, I cannot keep on deleting the last changes or keep on trying compiling every now an then, it is difficult to identify the cause.

Thank you.

Abhi

chipfryer27
Valued Contributor
Posts: 1594
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 357 times
Been thanked: 563 times

Re: Syntax Error

Post by chipfryer27 »

Hi Abhi

Can you post the error message?

Regards

Abhijit
Posts: 26
Joined: Thu Dec 03, 2020 6:26 am
Has thanked: 3 times

Re: Syntax Error

Post by Abhijit »

Hi! Chipfryer

Below are the error messages

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_25-06-2025.as: 10699: (876) syntax error
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_25-06-2025.as: 10704: (876) syntax error
(908) exit status = 1
(908) exit status = 1

Above errors have reduced from 5 to 2 after deleting parts from the chart, I have noticed the bold and italic numbers are different, what is the meaning or significance of this numbers, this is all puzzling.

Can i copy paste components in 2D panel if I need more of the same or I need to always select from the list and drag drop to 2D panel, kindly excuse if I sound stupid.

Than you.

Abhi

medelec35
Matrix Staff
Posts: 1987
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 630 times
Been thanked: 660 times

Re: Syntax Error

Post by medelec35 »

Hello.
Just the words syntax error showing for error is normally unconnected pins.
If you can post your .fcfx, .c and .msg.txt files, then we can help you further.
The bold number you have shown, will refer to a line number within a file ,the error could be found.
Martin

Abhijit
Posts: 26
Joined: Thu Dec 03, 2020 6:26 am
Has thanked: 3 times

Re: Syntax Error

Post by Abhijit »

Hi! Martin

The .fcfx is one of the zip files, is it?

Can I PM that to you.

Abhi

Abhijit
Posts: 26
Joined: Thu Dec 03, 2020 6:26 am
Has thanked: 3 times

Re: Syntax Error

Post by Abhijit »

Hello! Martin

I noticed one thing, I had used 3 times (i mean i placed 3 Map function icons in the 2D panel) Map function for calculating or mapping 3 different analog signals, I deleted 2 and kept only 1 and I could compile, does that mean I can use that function only once in the entire chart?

I also delete Bitmap drawer from the 2D panel.

Abhi

chipfryer27
Valued Contributor
Posts: 1594
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 357 times
Been thanked: 563 times

Re: Syntax Error

Post by chipfryer27 »

Hi Abhi

Following on from above, you should certainly be able to copy / paste from within the 2D panel as each "paste" will create a unique reference for that component.

I have just placed a LED on the 2D chart (Led1) then copy&paste three times to give Led2 / Led3 / Led4. Obviously I had to then select the individual pins. I also placed a Map function and copied it too. All worked in simulation and compiled to hex without issue.

I assume all components are up to date?

Regards

Abhijit
Posts: 26
Joined: Thu Dec 03, 2020 6:26 am
Has thanked: 3 times

Re: Syntax Error

Post by Abhijit »

Hello! Martin, Hello! Chipfryer

I have tried all the suggestions you both mentioned but nothing works for me, I do not understand where i am going wrong, one thing for sure, if i am not wrong this is not something to do with unconnected pins, program compiles when i delete some part of the chart and if i add that again the error pops.

Martin kindly check my PM, please help me out.

Thank you.

Abhi

medelec35
Matrix Staff
Posts: 1987
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 630 times
Been thanked: 660 times

Re: Syntax Error

Post by medelec35 »

Hi Abhi
I have looked at the files you sent.
The are way to large for me to track down the issue.
My guess it could be a recursive function or manual macro linking created a circular reference.
Whatever it is the compiler does not like it at all.
Looking at the .as file the issues is within Set_Parameters user macro.
I can see opt callstack 0 within the .as file. I believe that is inserted when the compiler runs out of safe call depth tracking?
Martin

Post Reply