28335와 w5300 연결 문제
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: 28335와 w5300 연결 문제
by mushin ·
해결하였습니다.
기본 코드가 wiznet_write_buf,wiznet_read_buf 함수에서 idx를 2씩 증가하게 되있엇는데
디버깅해봣을때 data_buf[0] ,[2], [4] 짝수에만 데이터가 들어가고 홀수 버퍼에는 안들어가서
idx를 1씩 증가하게 했습니다. 그 다음에 data invaild가 떠서 헤매다가
생각해보니 AX1에서는 1byte 100개를 보내는데 mcu에서 2byte 50개로 저장하고 나머지 50개는 쓰레기값으로 저장하고
loopback해서 데이터가 맞지 않다는 뜻이였네요.
idx를 2씩증가하게 했을 때, 짝수 버퍼에만 데이터가 들어가긴하지만 데이터 전송은 잘되었습니다.
결국 char가 1word라서 이런 문제가 발생한듯 하네요.
RE: 28335와 w5300 연결 문제
by Edward ·
안녕하세요.
해결되셨다니 다행입니다 ^^
수고하셨습니다.
감사합니다.