공부/HW

220411 Raspberry Pi Pico & WIZnet Ethernet HAT Ping test 1

강경국 2022. 4. 11. 15:25
반응형

저렴한 이더넷 변환기 구축을 목표로 구매한 보드.

WIZnet Ethernet HAT (WIZnet W5100S-EVB-Pico)

 

간단히 Ping test 부터 시작! (Windows 10 환경)

 

환경 구축은 아래 사이트를 참고로 하여 구성하였다.

https://github.com/Wiznet/RP2040-HAT-MicroPython/blob/main/Ethernet%20Example%20Getting%20Started%20%5BMicropython%5D.md

 

GitHub - Wiznet/RP2040-HAT-MicroPython

Contribute to Wiznet/RP2040-HAT-MicroPython development by creating an account on GitHub.

github.com

 

MicroPython과 CircuitPython을 지원하는데 MicroPython이 더 좋아 보여 선택.

 

검색해 보니 MicroPython은 Raspberry Pi 에 공식적으로 나와 있다.

https://www.raspberrypi.com/documentation/microcontrollers/

 

Raspberry Pi Documentation - Microcontrollers

The official documentation for Raspberry Pi computers and microcontrollers

www.raspberrypi.com

 

CircuitPython은 adafruit 에서 만든 것이라고 한다.

 

개발 환경 구죽.

개발 환경 구성에 나와 있는데로 따라 했다.

 - CMake 설치. https://cmake.org/

 - Thonny 설치. https://thonny.org/

 

Firmware 다운로드.

 WIZnet W5100S-EVB-Pico 보드를 구매 했으니 V1.0.4 : W5100s_v1.0.4.uf2 를 다운로드.

 

rp2_w5100s_20220318_v1.04.uf2
0.65MB

 

STEP-1 : Micropython 설치.

1. 소스 다운로드 : 소스를 다운로드할 디렉토리를 만들고 git clone

 

/* Change directory */
// change to the directory to clone
cd [user path]

// e.g.
cd D:/RP2040

/* Clone */
git clone https://github.com/Wiznet/RP2040-HAT-MicroPython.git

 

2. 패치.

  clone을 하면 patch 파일이 아래의 포함되어 있다.

     0001-Added-WIZnet-Chip-library.patch : about Ethernet(WIZnet Chip)
     0002-Added-AXTLSlibrary.patch : about SSL/TLS(AXTLS)

  다운로드한 위치로 가서 아래 명령 실행.

// e.g.     cd D:/RP2040/RP2040-HAT-MicroPython
cd [user path(=github source code setup path)] 
/* Patch and submodule */
cmake CMakeLists.txt

  그런데... 패치 에러가 났다. ㅡ.ㅡ;

  일단은 그냥 계속... ㅋㅋ

 

 

3. Compile

  환경 설정에 아래와 같은 내용이 있어서 컴파일 안하고 넘거감. ^^

  • If you must be need to compile the micropython ,your pc should be use Linux or Unix environment.

Thonny IDE 설치

  아래링크의 내용을 따라 하라고 한다.

https://projects.raspberrypi.org/en/projects/getting-started-with-the-pico/0

 

 

Projects | Computer coding for kids and teens | Raspberry Pi

Computer coding for kids, teenagers and young adults. Step-by-step instructions for 250+ free coding projects. Create games, animations, and more with code.

projects.raspberrypi.org

  그냥 실행파일 설치하고 실행했다.

 

 

처음 실행하면 위와 같은 화면이 나온다.

쓰다보니 너무 길어져서 다음으로~

 

 

 

 

 

728x90
반응형