Page 1 of 1

Flowcode 9 Ethernet W5500 module not working

Posted: Tue Jun 01, 2021 8:34 pm
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.

Re: Flowcode 9 Ethernet W5500 module not working

Posted: Wed Jun 02, 2021 10:48 am
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.

Re: Flowcode 9 Ethernet W5500 module not working

Posted: Wed Jun 02, 2021 1:37 pm
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.

Re: Flowcode 9 Ethernet W5500 module not working

Posted: Wed Jun 02, 2021 2:08 pm
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.

Re: Flowcode 9 Ethernet W5500 module not working

Posted: Wed Jun 02, 2021 2:54 pm
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.

Re: Flowcode 9 Ethernet W5500 module not working

Posted: Thu Jun 03, 2021 12:38 pm
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.

Re: Flowcode 9 Ethernet W5500 module not working

Posted: Thu Jun 03, 2021 2:13 pm
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.