I have a Cerb40, I have an ENC28J60, and I have the ethernet firmware loaded. What I don’t have is any information that tells me how exactly to connect the ENC28J60 and the Cerb40. I know it uses SPI, but I don’t know what pins to connect where.
I have MISO, MOSI, SCK which I assume just connect to the relevant SPI1 pins. After that, I have INT, CS, RESET, CLKOUT, and WOL that I don’t know where to connect. Does anyone know?
And, (prepare for a letdown of massive proportions, here), neither PC14 nor PC15 are exposed on Cerb40. Therefore, Cerb40 cannot be used with the ENC28J60 module without either hardware mods, or software changes (bust out your RVDS, boys).
I’m quite disappointed with this particular development. PA14 and PA13 are exposed on Cerb40, but they’re the SWD (JTAG) pins.
JTAG or not, the pins are already set to the socket 5 pins, which aren’t on Cerb40, so the point is moot, as they say. Is there an ETA, or maybe a special firmware build of the config.hex for us Cerb40 users?
No, you misunderstand me. I don’t think you should expose PC14 and PC15 instead of the SWD pins, I think it would be much simpler to alter the firmware to use the socket 6 pins instead of the socket 5 pins.
I assumed that the end goal is for the Cerberus and CerbuinoBee to work with the Enc28. So I used the same connections as socket 1 of CerbuinoBee since that is the only spi socket on the board. I wired up the cerb40 to a generic enc28j60, and the hardware works fine from what I can tell. And, the same code and config works on the CerbuinoBee. Although, I am using my own solution and not the Ethernet enabled firmware.
I’m planning to use a Cerb40 in one of my Products. I like prototyping with Ceruino first. But I’m not sure if I will have issues when switching to Cerb40 then. Especially I need Ethernet. So I there some description (hardware, software, or both?) how to enable Ethernet on the Cerb40?
The answer is in #4 (the socket 6 column). If you copy and paste that here, I’ll mark yours as the answer. You also need to use the Ethernet version of the firmware (but not the most recent version, that’s apparently broken).
The “software changes” were made by GHI; in fact, they were necessary to make the ENC28J60 work on the Cerbuino. Now, you can just connect it up as in #4 (socket 6 column), and use the ethernet firmware (except not the August 23 or whatever version).
The ENC28J60 can also be made to work with the Cerb40 by using the mIP TCP/IP stack. Which works with the latest Aug 24 QFE2 firmware (without Ethernet). So you don’t need “altered” firmware with mIP. In fact, you can probably use the firmware that the Cerb40 ships with and not reflash at all, although I would recommend a reflash to the latest firmware.