Serasidis / Ethernet_STM

WIZnet W5500, W5200, W5100 ethernet library for 8-bit, 32-bit Arduino and STM32F1 (STM32F103) micro-controllers
61 stars 24 forks source link

Local IP problem #4

Open JernejRog opened 4 years ago

JernejRog commented 4 years ago

hello, i have STM32f103c8 blue pill board and w5100. I connected it just like it's specified in readme but when i try Web server example i got "server at 0.0.0.0" in serial monitor. In w5100.h, I specified the w5100.

Serasidis commented 4 years ago

It seems that PA4 was not initialized properly. Try to re-initialize it in setup function

void setup() {
  pinMode(PA4, OUTPUT); // <<<<------ HERE --------
  // Open serial communications and wait for port to open:
  Serial.begin(9600);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
}