Send command to W5500 on SPI
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: Send command to W5500 on SPI
by Eugeny ·
Compile the code and try it; in the best case you must also read the register contents to see what is in there to ensure that write was successful. Use any register which can be read back, for example SIPR.
RE: RE: Send command to W5500 on SPI
by Alexander ·
Eugeny, I am sorry for “off topic” question.
Do you know, where I can see an example of using standert fuctions on w5500.h?
I am read “Socket APIs” document, but i am don’t understand, how to use standart functions.
Where can I see these things?
Thank you for any answer.
RE: Send command to W5500 on SPI
by Eugeny ·
I am sure you will find examples of implementation for ATmega; if you want to know how to program W5500 then the best source of information should be the datasheet for the device. Function and procedures declared in the header file perform functions explained in the chapter 5 of the datasheet for W5100.
RE: Send command to W5500 on SPI
by Alexander ·
Евгений, добрый день!
Прошло достаточно много времени с момента старта этой темы, но я решил поделиться своими успехами и задать ещё один небольшой вопрос.
Все мои функции чтения-записи работают. Mac, ip, mask и gate пишутся в регистры, и так же хорошо оттуда читаются. Я даже считал версию чипа (0x04). В этом плане мои действия оказались правильны.
Но чип всё равно упорно не хочет запускаться с моими настройками. Сначала я делаю хард-ресет, потом пишу в MR 0x80, но мои настройки всё равно не определяются системой (вместо указанного мною ip адреса там появляется совершенно другой). Скажите, пожалуйста, на что мне ещё следует обратить внимание в таком случае? Система, кстати, Windows 10.
Буду благодарен за любой ответ.
С Уважением, Александр.
RE: Send command to W5500 on SPI
by Eugeny ·
Александр, это странно. Вы должны дождаться окончания ресета, проверяя бит 7 регистра MR на 0, и только тогда начинать конфигурировать чип. Если вы делаете именно так, но при этом в настройках чипа неправильная информация, то варианта только два - или вы записываете туда неправильную информацию (например, неправильно используете указатели), или нечаянно переписываете эту информацию после правильной инициализации. Я думаю, если вы сделаете анализ того, какая информация оказывается неправильной, вы сами сможете обнаружить проблему.