Porting iolibrary into new platform


#1

[size=150]
Hi,

I’m currently navigating through the iolibrary for W5500. Is there a step by step tutorial on how to port it to new platforms, and which platform specific functionalities I need to implement?

Thanks.[/size]


#2

Hi,
There is no poting tutorial for W5500.

W5500 ioLibrary is based on C-language.
So, it is easy to port the library to yours. But, SPI I/O funcitoin depends on your system.
You should implemented it by yourself.
SPI I/O function will be registered for WIZCHIP IO function as WIZCHIP_READ , WIZCHIP_WRITE, WIZCHIP_READ_BUF, WIZCHIP_WRITE_BUF.
WIZCHIP IO funcitons are based on 32bit architecture as ARM.
In these function, The define values are treated with 32bit value and implict type cast 32bit.
When your system are under 32bit, Be careful for types and values to be 32bit.

Thank you.


#3

elwakeel,

I also come across these in the TCPReSendNB function.
wizpf_get_systick() and wizpf_tick_elapse()
The first looks like it is an linked to an ISR timer that increments
once every 1ms. And the second function is just the difference between
the current time and what you pass through the function.
These functions look to be part of the Cookie board, and I have not uses it.
I did not port that over, just put a comment for possible future changes.
It looks to delay the transmitting of the next chunk of data by 1 second.
I will probably just implement this on a higher level.

Also, if you have not read section 5 of W5200, I would do so, it is not
in the W5500 data sheet and answered a few questions I had.

Jim,


#4

Thanks everyone!


#5

Hi,
Wiznet provides three types W5500’s driver example.
First, ioLibrary_BSD is official.
Second, ioLibrary_v100 is for legacy user to W7200 & W5200. This need many resouces as memory and code.
Third, BSD Type driver for W5200 User is for user who have experience about W5200 BSD driver.

2 & 3 is difficult to support & upgrade. So we recommends ioLibrary for new W5500 user.

Thank you.