W5300 Sn_SSR 값 0x10 관련 문의 입니다
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: W5300 Sn_SSR 값 0x10 관련 문의 입니다
by hjjeon0608 ·
안녕하세요.
먼저,
send_ok는 상대편에서 보내주는 메시지가 아닙니다. send_ok는 칩 내부에서 send 명령어를 제대로 인식했다고 알려주는 인터럽트 신호 입니다. 즉, 앞으로도 send명령 후 send_ok 인터럽트가 뜰때까지 while 문으로 잡아주시는 것을 추천드립니다.
또한 이 erratum을 해결하기 위해서 UDP로 send를 해야 하는데 올려주신 함수가 pseudo 코드인지 실제 코드인지는 확실치 않지만, reference 코드로 설계하는 것을 추천드립니다.
특히 CR레지스터를 이용하는 커맨드 명령을 내릴때 while문으로 clear를 기다리시길 바라며 send 명령어의 경우 반드시 send_ok를 기다리시길 바랍니다.
위 방식대로 한번더 테스트 부탁드리며 그래도 해결이 되지 않는다면 다시한번 문의 주세요
감사합니다~
RE: W5300 Sn_SSR 값 0x10 관련 문의 입니다
by batsu ·
TSK_sleep(tick); 부분을 아래와 같이 수정하여 해결 하였습니다.
while(1)
{
sock_status = S[ch].SSR;
sock_status = sock_status & 0x00ff;
TSK_sleep(tick);
if (sock_status == 0x22)
{
break;
}
}
감사합니다.