Compile error

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
RGV250
Posts: 450
http://meble-kuchenne.info.pl
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 46 times
Been thanked: 46 times

Flowcode v11 Compile error

Post by RGV250 »

Hi,
I have ticked V11 but probably in others.
I tried to modify file ARP_01 which is part of the networking tutorial to an Arduino UNO. As I did not have a display I added a UART and sent all the output to that. When I compiled I got a 895? syntax error.
This turned out to be my error but it would be nice if FC gave a prompt or default option.
When I added the UART I forgot to set the properties :oops: , FC had left the channel as blank (which it did not see as a problem?) but also the Rx as unconnected. It was this that caused the error, as soon as I set Use Rx to "No" it compiled.
This seemed strange as there was still no channel selected but if I selected the channel before turning Rx off it brought up a pop up box saying something was not connected.
Can I suggest that there is either a default for the Rx pin or a warning that there are properties that need to be selected.

Regards,
Bob

Steve-Matrix
Matrix Staff
Posts: 1889
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 278 times
Been thanked: 444 times

Re: Compile error

Post by Steve-Matrix »

Thanks, Bob.

Can you pleas post or PM me your project that shows the error and I will see if we can improve the error messaging for it.

RGV250
Posts: 450
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 46 times
Been thanked: 46 times

Re: Compile error

Post by RGV250 »

Hi Steve,
I have just added another UART as you cannot seem to "Unconnect" it once it has been done?
I have circled the channel but that was not the issue, it just seems strange that it compiles with nothing set there, the compile issue is the unconnected Rx pin. These seem to be the default?
CompileError.jpg
CompileError.jpg (7.87 KiB) Viewed 122 times
UART.jpg
UART.jpg (53.24 KiB) Viewed 122 times
ARP_BG_01_B1.fcfx
(44.78 KiB) Downloaded 14 times
regards,
Bob

BenR
Matrix Staff
Posts: 2211
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 607 times
Been thanked: 803 times

Re: Compile error

Post by BenR »

Hi Bob,

I'll check and make sure the default is channel 1, probably currently it's 2 or more which is why you're getting a blank by default on the Uno as there is no channel 2.

RGV250
Posts: 450
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 46 times
Been thanked: 46 times

Re: Compile error

Post by RGV250 »

Hi Ben,
Is that why there was no Rx pin allocated as that was what caused the compile error.

Just answered my own question, if I set channel 1 it does allocate an Rx pin. The only issue is they are D.0/D.1 which are not on the UNO, I think it should be B.0/B.1

Bob

BenR
Matrix Staff
Posts: 2211
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 607 times
Been thanked: 803 times

Re: Compile error

Post by BenR »

Hi Bob,

Yes the channel drives the pin connections for the Uno.

Also pins D0, D1 are correct.

UnoUart.png
UnoUart.png (304.2 KiB) Viewed 97 times

RGV250
Posts: 450
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 46 times
Been thanked: 46 times

Re: Compile error

Post by RGV250 »

Thanks, not sure what I was thinking of, I am going to blame it on the heatwave :lol:

Post Reply