Old NanodeRF with latest Ethercard library
I have just flashed an old NanodeRF board with a sketch linked to the latest Ethercard library from Github.
I cannot get past the call to initialize in enc28j60.cpp.
It loops at this line
while (!readOp(ENC28J60_READ_CTRL_REG, ESTAT) & ESTAT_CLKRDY) ;
The readOp is coming back with zero, ESTAT_CLKRDY is not being set. I have not used the board for a while, so something may have died. Has the library changed in any way that might make it incompatible with an old version of the board.
Any ideas anyone?
Any suggestions on what I can stick the oscilloscope on to see what is happening?
RE: Old NanodeRF with latest Ethercard library - Added by JohnO over 2 years ago
Ethernet doesn't get mentioned very much around Jeenodes and the jeelib library is probably quite stale.
RE: Old NanodeRF with latest Ethercard library - Added by jcw over 2 years ago
You may be running into a pin 8 vs pin 10 difference. There's an arg which defines it on init, but nowadays the Ethercard library gets more support on its Github issue tracker, so I would suggest asking there: https://github.com/jcw/ethercard/issues