stevstrong / ethernet_stm32 Goto Github PK
View Code? Open in Web Editor NEWEthernet library for STM32F1 and F4 based on W5500
Ethernet library for STM32F1 and F4 based on W5500
when trying to compile I get the following error:
/home/jose/.platformio/lib/Ethernet_STM32-master/src/EthernetUdp.h:42:10: fatal error: wirish.h:
No such file or directory
that header is from the maple library of stm32f1, but I'm with a stm32f4 ....
what is the problem?
I tried this library using web serer example and it worked.
But UDP send receive is not working
Dear, im using Stm32Duino cores and would like to try your Ethernet_STM32 library. I have simple sketch:
#include <C:\Users\nbostjan\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\SPI\src\SPI.h>
#include "C:\Users\nbostjan\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\Ethernet_STM32\src\Ethernet_STM32.h"
const int chipSelect = PA4;
byte *id5 = (byte *) (0x1FFFF7EC);
byte *id4 = (byte *) (0x1FFFF7EC+0x01);
byte *id3 = (byte *) (0x1FFFF7EC+0x02);
byte *id2 = (byte *) (0x1FFFF7EC+0x03);
byte *id1 = (byte *) (0x1FFFF7EC+0x04);
byte mac[] = { 0xEA, *id1, *id2, *id3, *id4, *id5 };
unsigned int localPort = 8000;
EthernetServer server(localPort);
SPIClass mSpi(1); //USING SPI2 PB12-PB15
void setup()
{
delay(3000);
Ethernet.init(mSpi, PB12);
Ethernet.begin(mac);
server.begin();
}
But it gives me a bunch of errors:
Compiling 'ethernet' for 'Generic STM32F103C series'
ethernet.cpp.o*: In function _GLOBAL__sub_I_id5
ethernet.ino: 21: warning: undefined reference to `EthernetServer::EthernetServer(unsigned short)
ethernet.cpp.o*: In function SOCKETClass::init(SPIClass&, unsigned char)
socket.h: 18: warning: undefined reference to `W5500Class::init(SPIClass&, unsigned char)
ethernet.cpp.o*: In function setup()
ethernet.ino: 29: warning: undefined reference to EthernetClass::begin(unsigned char*, unsigned long, unsigned long) ethernet.ino: 31: warning: undefined reference to
SOCKETClass::w5500
ethernet.ino: 31: warning: undefined reference to Ethernet ethernet.ino: 31: warning: undefined reference to
EthernetServer::begin()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.