Error with STM32F4 and WIZ820io

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
meier13
Posts: 3
Joined: Sat Apr 22, 2017 9:40 pm
Location: Germany
Contact:

Error with STM32F4 and WIZ820io

Post by meier13 » Tue May 16, 2017 9:24 am

Hello,

i have a stm32f4 discovery with a WIZ820io connected like described in some turorials. I have recompiled micropython with the WIZNET5K module and flashed it on my board.

i have tried the "get some data from a website" from the tutorial.

Code: Select all

import network
nic = network.WIZNET5K(pyb.SPI(1), pyb.Pin.board.PA4, pyb.Pin.board.PA3)
nic.ifconfig(('xxx.xxx.xxx.246' , '255.255.255.0' , 'xxx.xxx.xxx.1' , 'xxx.xxx.xxx.2'))
import socket

addr =socket.getaddrinfo('micropython.org',80)[0][-1]

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 2] ENOENT
>>>
i have tried it with different websites from different examples (addr_info = socket.getaddrinfo("towel.blinkenlights.nl", 23)) . It takes some seconds and i get always the error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 2] ENOENT

I have not found information about this error, so I need some help.

Thanks in advance
Ulrich

Post Reply