Do not init network
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: Do not init network
by Eugeny ·
How did you know it? Why do you think “network attrubites” are not initialized?
Please explain your issue.
RE: Do not init network
by linuxbergi ·
I understood not read registers. But why?
Working procedures for 5500:
uint8_t wizchip_read()
{ uint8_t rb;
while (!(SPI1 → SR & SPI_SR_TXE)); //check buffer
SPI1 → DR = 0xFF ; // transfer
while (!(SPI1->SR & SPI_SR_RXNE)); // wait input
rb = SPI1 → DR ;
return rb;
}
void wizchip_write(uint8_t wb)
{ uint8_t rb;
while (!(SPI1 → SR & SPI_SR_TXE)); //wait buffer
SPI1 → DR = wb ; // byte to line
while (!(SPI1->SR & SPI_SR_RXNE)); // wait input
rb = SPI1 → DR ;
}
For 5100 it does not work. Can faulty “hardware”?
RE: Do not init network
by Eugeny ·
What is the actual circuit diagram of your module?
RE: Do not init network
by linuxbergi ·
Files attached
2.pdf (108 KB)
1.pdf (52.3 KB)
RE: Do not init network
by Eugeny ·
Circuit seems to be ok. I propose using scope or logical analyzer to see what is going on with SPI bus and there’re no issues with it (for example, 16 bit communication instead of 8-bit communication).