Suggestions for library for STM32 (STM32F1) and supports multiple ENC28J60 modules?

Hi everyone,

I'm working on a project where I need to use two ENC28J60 Ethernet modules with an STM32 Blue Pill (STM32F103C8). I had been using an older STM32 core version that included the Serasidis_EtherCard_STM library, which worked well for a single ENC28J60 module. However, after upgrading to the latest STM32 core (2.8.1), I noticed that this library is no longer included.

I have installed the STM32 MCU based boards version 2.8.1 via the Boards Manager, selected BluePill F103C8 under Tools > Board in the Arduino IDE, and I’m using Arduino IDE 2.3.3. Everything seems to work fine in terms of board setup, but now I’m facing difficulties with finding a suitable library to handle two ENC28J60 modules.

Could anyone suggest an alternative library that works well with STM32 (STM32F1) and supports multiple ENC28J60 modules? I'm looking for something that can handle both modules over the same or different SPI interfaces.

Thanks in advance for any suggestions!

there is no Arduino library for ENC28J60 which can handle two ENC28J60.
why do you need two?

I understand that there may not be an existing Arduino library for the ENC28J60 that supports two modules directly. However, I’m working on a project that requires two ENC28J60 modules to function as an IP protocol converter. The first module will fetch data from one network, while the second module will transmit it to a different network. This setup is essential for relaying data between the two networks internally.

To achieve this, I want to use two instances of SPI—one for each ENC28J60 module—so they can operate simultaneously without conflicts.

Any help or guidance on this would be greatly appreciated!

Not sure if it makes sense to support 2 ENC28J60 when you hardly have enough RAM to keep one TCP connection open.

Maybe you can get it to work with WT32-ETH01 + ENC28J60.

Or check out Openwrt with a dual port wifi repeater.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.