Page 1 of 2

upgrade to Version 10

Posted: Sun Apr 30, 2023 6:10 am
by Roy_Johnston
programs that compile to hex and picket3 compile sussessfully in ver 8 but wont compile in ver 10.
I get the following message.

Copyright (C) 2019 Microchip Technology Inc.
Ver7cardK22.c: FCD_0f5c1_TCPIP_ENC28J60__MakeArpRequest()
4412: FCV_0f5c1_TCPIP_ENC28J60__BUFFER[0x26 + FCL_IDX] = FCL_SERVERIP[FCL_IDX];
(192) undefined identifier "FCL_SERVERIP" ^
(981) pointer required ^
(981) pointer required ^
(908) exit status = 1
(908) exit status = 1

Re: upgrade to Version 10

Posted: Sun Apr 30, 2023 6:15 am
by Roy_Johnston
i attach my flowcode file

Re: upgrade to Version 10

Posted: Sun Apr 30, 2023 9:22 am
by mnfisher
It looks like an issue in TCPIP_ENC28J60__MakeArpRequest

The arguments are declared as "MX_UINT8 **PFCL_SERVERIP"

but then used as "FCL_SERVERIP[FCL_IDX];"

Does the component need recompiling for v10? or has the way arrays get passed/named changed slightly?

Martin

Re: upgrade to Version 10

Posted: Sun Apr 30, 2023 12:58 pm
by Roy_Johnston
I have no Idea,
I assume it’s the component.
the same file works in ver 8 but does not compile in ver 10.
I can compile and program the chip with basic software. As soon as I introduce the initialize 28J60 component it gives this error.

Re: upgrade to Version 10

Posted: Sun Apr 30, 2023 2:12 pm
by mnfisher
I recompiled the component - using v10 - having changed the name of the parameter (ServerIP) to XServerIP (so I could check that the change had taken effect)

This then allows the code to compile okay...
TCPIP_ENC28J60.fcpx
(14.53 KiB) Downloaded 447 times
If you pop this into your FC component directory (C:\ProgramData\MatrixTSL\FlowcodeV10\Components) then reload your project - and try again...

Martin

Re: upgrade to Version 10

Posted: Mon May 01, 2023 12:44 pm
by Roy_Johnston
Ok its compiling now all is ok except for one issue. the leds on the enc18j60 don’t flash when initialising. This is a nice feature to have as it indicates to my customers all is ok.
thank you.

Re: upgrade to Version 10

Posted: Mon May 01, 2023 1:26 pm
by Roy_Johnston
is there any code i could insert that would flash the LED's

Re: upgrade to Version 10

Posted: Mon May 01, 2023 2:12 pm
by mnfisher
Glad it's compiling okay. Did the led flash before? Do you have details of instructions needed to flash them?

Martin

Re: upgrade to Version 10

Posted: Mon May 01, 2023 2:46 pm
by Roy_Johnston
yes it did.
if i take the same file and load it onto ver 8 it flashes to indicate the leds ( ledA and LedB on the enc28j60)
no i dont have any code.

Re: upgrade to Version 10

Posted: Mon May 01, 2023 3:30 pm
by mnfisher
Strange - I used the component source from the wiki. Does the program still work in v10?

Martin