Internetboard EB-023 doesn't match with ecio base board?

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
glorieux
Posts: 4
Joined: Wed Jan 04, 2012 9:16 pm

Internetboard EB-023 doesn't match with ecio base board?

Post by glorieux »

We try to connect the ecio baseboard (EB-061-00-2), together with the internetboard (EB-023) with PIC18F4455. These baseboards are also used by our students.

In Flowcodev3 we had some problems, and it did'nt work. See also http://www.matrixmultimedia.com/mmforum ... f=2&t=6299
(we tried already to place the internetboard upon port B instead of port C, worked with the patch-jumper to C,..)
We also tried directly to pc by crossed UTP cable (and with straight cable and switch) to make the connection between the pc and the EB-internetboard

We tried also the demoversion of FC4, but it seems that this one does'nt support the internet board...

***My questions:
1. Is there an 'official' testfile who can bring together these components? where to find?
2. Or is it possible to check my example in attatchment? (internetboard on B and LCD on port D)
3. Is it true that the IP adres of the internet bord (here 192.168.0.250) has to take the same last byte to the 0-8-220-0-0-250 instead of the suggested 0-8-220-0-0-0 of my card? (How we can make this real mac-adres to show up from the card?)


If we try to ping, ore use telnet, we get the following result: (partly translated from dutch)
We try to connect from pc 192.168.0.170 to the internet board with 192.168.0.250
C:\Users\Desktop>ping 192.168.0.250

Pingen to 192.168.0.250 met 32 bytes aan gegevens:
Answer from 192.168.0.170: De doelhost is not reachable.
Antwoord van 192.168.0.170: De doelhost is niet bereikbaar.
Antwoord van 192.168.0.170: De doelhost is niet bereikbaar.
Antwoord van 192.168.0.170: De doelhost is niet bereikbaar.

Ping-statistieken voor 192.168.0.250:
Pakketten: send = 4, received = 4, lost = 0
(0% verlies).

C:\Users\Desktop>telnet 192.168.0.250 23
Er wordt verbinding gemaakt met 192.168.0.250...can not make connection with host
, op poort 23: Connection failed


Thanks a lot!
Glorieux
Oefening1_geert - TCP.fcf
(10.5 KiB) Downloaded 253 times
-----

User avatar
Steve
Matrix Staff
Posts: 3431
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: Internetboard EB-023 doesn't match with ecio base board?

Post by Steve »

I'm a little confused. Do you have a pro or educational version of Flowcode V4? The file you have sent is a V4 file, yet you write about V3 or the demo version of V4.

You need to follow the instructions in that topic you linked to, specifically those here:
Benj wrote:Hello

To get the ECIO40 working with the TCP/IP E-Block EB023 you will need to connect the E-Block to PortB and then setup the patch system as follows.

Jumper Setting C

Wire the following connections using the turned pin sockets on the E-Block.
SDA wired to Bit 0
SCK wired to Bit 1
/INT wired to Bit 2

Also in the Webserver properties you must change I2C interrupt from 0 to 2.

Hope this helps.
If you are using V3, you also need to use the "#define TMR0 TMR0L" fix.

There is no specific example, but if you have a program that is known to work with the '877a, then it should work with the ECIO40 (with the changes to the connections above).

The IP address and MAC address are totally independent. You can use any number for the MAC address, but it needs to be unique within your network. However, if you intend to make a commercial product I think you will need to apply for a unique MAC address (or set of addresses).

glorieux
Posts: 4
Joined: Wed Jan 04, 2012 9:16 pm

Re: Internetboard EB-023 doesn't match with ecio base board?

Post by glorieux »

Hey Steve we understand your confusion.
At school we work with official FC3 (educational version v3.4.7.48), the examples of FC4 are given by our mentor who works with FC4. Thanks for feedback!
in the future, We have intention to pass over to FC5, but now it's on to me to get these things work with FC3 or 'demo'FC4.

***Question, is this 'demoFC4' right to use as the following code is given when uploading? We just noticed while uploading: 'Warning unreferenced functions removed', and this licence of FlowCode does not produce code for this component':
Is there a 'temporarily' working demoFC4 possibility (with working communication blocks)for schools?


Thanks.
Geert
-------
Code wile uploading:

File name: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\A-Flowcode-lessen\Mee te geven data-les3\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
Generated by: Flowcode v4.3.9.65
Date: Friday, January 06, 2012 12:08:32
Licence: Free version

***FREE/DEMO VERSION***


NOT FOR COMMERCIAL USE

http://www.matrixmultimedia.com


Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\boostc.pic18.flowcode.exe -v -t PIC18F4455 "Oefening1_geert - TCP.c"
BoostC Optimizing C Compiler Version 6.95 (for PIC18 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2009 Pavel Baranov
Copyright(C) 2004-2009 David Hobday

Licensed to FlowCode User under Single user Full License for 1 node(s)
Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlimited, Non commercial use only


Oefening1_geert - TCP.c
Starting preprocessor: C:\PROGRA~1\MATRIX~1\FLOWCO~2\BoostC\pp.exe "I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\A-Flowcode-lessen\Mee te geven data-les3\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c" -i C:\PROGRA~1\MATRIX~1\FLOWCO~2\BoostC\include -d _PIC18F4455 -la -c2 -o "I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\A-Flowcode-lessen\Mee te geven data-les3\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.pp" -v -d _BOOSTC -d _PIC18

I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\A-Flowcode-lessen\Mee te geven data-les3\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c(270): WARNING: TCP_IP(0): This licence of FlowCode does not produce code for this component

..................

Oefening1_geert - TCP.c success

success

Return code = 0

Launching the linker/assembler...
C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\boostlink.pic.exe -rb 0x800 -ld "C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\lib" libc.pic18.lib flowcode.pic18.lib rand.pic18.lib float.pic18.lib "Oefening1_geert - TCP.obj" -t PIC18F4455 -d "I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\A-Flowcode-lessen\Mee te geven data-les3\TCP-IP\cursus_TCPIP_Geert" -p "Oefening1_geert - TCP"
BoostLink Optimizing Linker Version 6.95
http://www.sourceboost.com
Copyright(C) 2004-2009 Pavel Baranov
Copyright(C) 2004-2009 David Hobday


Warning unreferenced functions removed:
FCI_FLOAT_TO_STRING in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_NUMBER_TO_HEX in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_INT in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_FLOAT in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_S in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
isinf in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCD_TCP_IP0_Create_MAC_Socket in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Create_IP_Socket in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Create_UDP_Socket in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Set_Destination in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\....\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Set_My_IP in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\....\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_TCP_Connect in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Tx_sendmymac in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Tx_sendmyip in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Rx_data_available in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Rx_data_size in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Rx_readheader in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Rx_readbyte in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Rx_skipbytes in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Rx_match2bytes in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Rx_match4bytes in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Rx_match6bytes in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\..\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Rx_match_mymac in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Rx_match_myip in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_TCP_IP0_Rx_flush_data in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_LCDDisplay0_Clear in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_LCDDisplay0_PrintASCII in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_LCDDisplay0_Command in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_LCDDisplay0_Cursor in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_LCDDisplay0_PrintNumber in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_LCDDisplay0_ScrollDisplay in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_LCDDisplay0_ClearLine in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c
FCD_LCDDisplay0_RAM_Write in: I:\A-Nieuwe cursussen\LABO gestrucureerd ontwerpen\...\TCP-IP\cursus_TCPIP_Geert\Oefening1_geert - TCP.c

Building CASM file
Memory Usage Report
===================
RAM available:2048 bytes, used:55 bytes (2.7%), free:1993 bytes (97.3%),
Heap size:1993 bytes, Heap max single alloc:127 bytes
ROM available:22528 bytes, used:1224 bytes (5.5%), free:21304 bytes (94.5%)



success

Return code = 0

Launching the programmer...
C:\Program Files\Matrix Multimedia\Flowcode V4\tools/ECIOprog/ECIOprog.exe -nogui "Oefening1_geert - TCP.hex"
File loaded: Oefening1_geert - TCP.hex
ECIO not found!

........

ECIO not found!
ECIO-40 version: 1.1
Ready
Sending Program...
Send Completed
Ready

Return code = 0

FINISHED

User avatar
Steve
Matrix Staff
Posts: 3431
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: Internetboard EB-023 doesn't match with ecio base board?

Post by Steve »

glorieux wrote:***Question, is this 'demoFC4' right to use as the following code is given when uploading? We just noticed while uploading: 'Warning unreferenced functions removed', and this licence of FlowCode does not produce code for this component':
Is there a 'temporarily' working demoFC4 possibility (with working communication blocks)for schools?
Hi Geert,

You can use the free/demo version of Flowcode V4 for any non-commercial activity. But it has some limitations, including that it will not produce any code for the components (except for the few 'common' components such as LCD and switch).

I think you will need to use the V3 for TCP/IP work.

glorieux
Posts: 4
Joined: Wed Jan 04, 2012 9:16 pm

Re: Internetboard EB-023 doesn't match with ecio base board?

Post by glorieux »

Thanks Steve, but can you tell me where just this "#define TMR0 TMR0L" in FC3 has to be placed?
Is this in FC3 in Chip/ Showing C ? And where just in the code we have to place it?
Thanks
Geert

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Internetboard EB-023 doesn't match with ecio base board?

Post by Benj »

Hello Geert,

In v3 click on Edit -> Supplementary code and add the code to the definitions window.

glorieux
Posts: 4
Joined: Wed Jan 04, 2012 9:16 pm

Re: Internetboard EB-023 doesn't match with ecio base board?

Post by glorieux »

Thanks Ben and Steve,
We -finally- get it to work. Just on time to help my students ;-)

Post Reply