Page 1 of 1

Compile error

Posted: Mon May 25, 2026 12:14 pm
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

Re: Compile error

Posted: Mon May 25, 2026 4:12 pm
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.

Re: Compile error

Posted: Tue May 26, 2026 8:51 am
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 127 times
UART.jpg
UART.jpg (53.24 KiB) Viewed 127 times
ARP_BG_01_B1.fcfx
(44.78 KiB) Downloaded 15 times
regards,
Bob

Re: Compile error

Posted: Tue May 26, 2026 11:28 am
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.

Re: Compile error

Posted: Tue May 26, 2026 11:40 am
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

Re: Compile error

Posted: Tue May 26, 2026 12:10 pm
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 102 times

Re: Compile error

Posted: Tue May 26, 2026 12:18 pm
by RGV250
Thanks, not sure what I was thinking of, I am going to blame it on the heatwave :lol: