upgrade to Version 10

For general Flowcode discussion that does not belong in the other sections.
Roy_Johnston
Posts: 15
http://meble-kuchenne.info.pl
Joined: Sun Apr 30, 2023 4:56 am

upgrade to Version 10

Post 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

Roy_Johnston
Posts: 15
Joined: Sun Apr 30, 2023 4:56 am

Re: upgrade to Version 10

Post by Roy_Johnston »

i attach my flowcode file
Attachments
Ver7cardK22.zip
(16.18 KiB) Downloaded 319 times

mnfisher
Valued Contributor
Posts: 1630
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: upgrade to Version 10

Post 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

Roy_Johnston
Posts: 15
Joined: Sun Apr 30, 2023 4:56 am

Re: upgrade to Version 10

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

mnfisher
Valued Contributor
Posts: 1630
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: upgrade to Version 10

Post 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

Roy_Johnston
Posts: 15
Joined: Sun Apr 30, 2023 4:56 am

Re: upgrade to Version 10

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

Roy_Johnston
Posts: 15
Joined: Sun Apr 30, 2023 4:56 am

Re: upgrade to Version 10

Post by Roy_Johnston »

is there any code i could insert that would flash the LED's

mnfisher
Valued Contributor
Posts: 1630
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: upgrade to Version 10

Post by mnfisher »

Glad it's compiling okay. Did the led flash before? Do you have details of instructions needed to flash them?

Martin

Roy_Johnston
Posts: 15
Joined: Sun Apr 30, 2023 4:56 am

Re: upgrade to Version 10

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

mnfisher
Valued Contributor
Posts: 1630
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: upgrade to Version 10

Post by mnfisher »

Strange - I used the component source from the wiki. Does the program still work in v10?

Martin

Post Reply