Flowcode 9 Ethernet W5500 module not working

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
pilot321
Posts: 4
http://meble-kuchenne.info.pl
Joined: Mon Feb 08, 2021 7:57 pm
Been thanked: 2 times

Flowcode 9 Ethernet W5500 module not working

Post by pilot321 »

Hi

I have flowcode 8 with a hobbyist license, and flowcode 9 with a professional license. I am using Eblocks 2 BL0011 and BL0080 device boards to run and test my programs.
It has come to my attention, that if I compile to device in version 8 all my programs work fine.
If I compile to device in version 9 non of my programs that utilise the Ethernet W5500 module work.
The programs compile successfully, and send to device ok.
Can you please advise me what I maybe doing wrong, to help me resolve this problem?

Regards.

BenR
Matrix Staff
Posts: 1940
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 506 times
Been thanked: 688 times

Re: Flowcode 9 Ethernet W5500 module not working

Post by BenR »

Hello,

Sorry to hear of the problem, please could you send me a simple example that works in v8 but doesn't in v9 and I'll investigate for you. It would also be very helpful if you included the .c file from v8 and v9 so I can compare the specific code your copies of Flowcode is generating.

pilot321
Posts: 4
Joined: Mon Feb 08, 2021 7:57 pm
Been thanked: 2 times

Re: Flowcode 9 Ethernet W5500 module not working

Post by pilot321 »

Hi
I have attached a test program as requested , the program initilises the W5500 module and sets the IP address to 192.168.101.20
with a subnet mask of 255.255.255.0, and a default gateway of 192.168.101.254, I have created an UDP Socket on channel 0 Port 1103.
Also I have entered a MAC Address of 00 00 88 220 100 102.
The program was written in Version 9, when compiled in V9, I am unable to ping my BL0080 device board.
When I compile it in V8, I am able to ping test my BL0080 device board successfully.
I hope this helps?
I am using an ETH WIZ Click board connected via an Eblocks2 BL0106 Click board.
Regards.
Attachments
Flowcode V9 Compiled in V8 W5500 TEST.c
(77.71 KiB) Downloaded 467 times
Flowcode V9 W5500 TEST.c
(74.32 KiB) Downloaded 567 times
Flowcode V9 W5500 TEST.fcfx
(10.15 KiB) Downloaded 498 times

BenR
Matrix Staff
Posts: 1940
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 506 times
Been thanked: 688 times

Re: Flowcode 9 Ethernet W5500 module not working

Post by BenR »

Hello,

Both the C files look identical so the component source isn't the cause of the problem. The SPI CAL layer and includes also look to match for the PIC sections.

The only thing I can think it may be related to is the compiler. If you look in the "C:\Program Files (x86)\Flowcode\Common\Compilers" folder what folders can you see in there? This will tell me if you have the v8 and v9 PIC toolchains installed or just the v8 one. If it's just the v8 one then I can discount the compiler as a source of the problem and keep looking elsewhere.

pilot321
Posts: 4
Joined: Mon Feb 08, 2021 7:57 pm
Been thanked: 2 times

Re: Flowcode 9 Ethernet W5500 module not working

Post by pilot321 »

Hi
Thanks for getting back to me, I have C:\Program Files (x86)\Flowcode\Compilers.
In Compilers I have two folders named pic and picv2, I do not have a folder Common.
Hope this helps.

Regards.

BenR
Matrix Staff
Posts: 1940
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 506 times
Been thanked: 688 times

Re: Flowcode 9 Ethernet W5500 module not working

Post by BenR »

Aha ok so it looks like you do have the v8 (pic) and v9 (picv2) PIC compilers installed. So something in the v9 compiler is maybe causing the program to fail.

If you click on View -> Global Settings -> Locations tab you can control the toolchain location and so you can revert v9 back to using the v8 toolchain and see if that works. This would then confirm if the toolchain is the problem or not.

pilot321
Posts: 4
Joined: Mon Feb 08, 2021 7:57 pm
Been thanked: 2 times

Re: Flowcode 9 Ethernet W5500 module not working

Post by pilot321 »

Hi

I have changed the the Version 9 compiler to the Version 8 compiler.
C:\Progam Files (x86)\Flowcode\Compilers\pic\

I programmed the BL0080 device board from Version 9, success, I can now ping successfully.

Shall I now leave it so I use the Version 8 compiler?

Thanks for your help.

Regards.

Post Reply