Reading Sn_IR - gives 0xFF ??
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: Reading Sn_IR - gives 0xFF ??
by ngaihua ·
i found out the reason for the above behavior. This is due to oversight on my part.
When Interrupt handler, does a SPI read, while a SPI write is in progress in the main loop, it corrupts the main loop SPI write. This results in undefined behavior and crashes W5500.
To solve the problem, I disabled any interrupts while SPI read/write operation is in progress.