If you’re having problems, see Chapter 4 of our Getting Started guide for more information. Open a Terminal window and start minicom. As well as powering your Pico you’ll be able to see some debugging information via USB Serial. Once you’ve wired things up, plug your Pico into Ethernet and also via USB into your Raspberry Pi or laptop. Mapping between physical pin number, RP2040 pin, and LAN8720 breakoutġ These pins are the library default and can be changed in software. The mapping between the pins on the RMII-based LAN8720 breakout board and your Pico should be as follows: Pico Most of these boards seem to be well labelled, with the left-hand labels corresponding to the top row of breakout pins. Then wire up the breakout board to your Raspberry Pi Pico. LAN8720 breakout wired to a Raspberry Pi Pico on a breadboard (with reset button) Unfortunately the most common (and cheapest) breakout for the LAN8720 isn’t breadboard-friendly, although you can find some boards that are, so you’ll probably need to grab a bunch of male-to-female jumper wires along with your breadboard. Unfortunately it’s not going to be much use until we wire it up to our Ethernet breakout board. Double-click to open it, and then drag and drop the UF2 file into it. Then release the button after the board is plugged in.Ī disk volume called RPI-RP2 should pop up on your desktop. Plug the cable into your Raspberry Pi or laptop, then press and hold the BOOTSEL button on your Pico while you plug the other end of the micro USB cable into the board. Go grab your Raspberry Pi Pico board and a micro USB cable. You can now load this UF2 file onto your Pico in the normal way. If everything goes well you should have a UF2 file in build/examples/httpd called pico_rmii_ethernet_httpd.uf2. Then after that you can go ahead and build both the library and the example application. For instance, if you’re building things on a Raspberry Pi and you’ve run the pico_setup.sh script, or followed the instructions in our Getting Started guide, you’d point the PICO_SDK_PATH to $ export PICO_SDK_PATH = /home/pi/pico/pico-sdk Make sure you have your PICO_SDK_PATH set before before proceeding. Afterwards you need grab the the project from GitHub, along with the lwIP stack.
If not, you should first set up the C/C++ SDK. If you already have the Raspberry Pi Pico toolchain set up and working, make sure your pico-sdk checkout is up to date, including submodules. What this means is that you can now connect your $4 microcontroller to an Ethernet breakout costing less than $2 and connect it to the internet. If you want to pick one up next day on Amazon you should be prepared to pay somewhat more, especially if you want Amazon Prime delivery, although they can still be found fairly cheaply if you’re prepared to wait a while. The project currently supports RMII-based Ethernet PHY modules like the Microchip LAN8720.īreakout boards for the LAN8720 can be found on AliExpress for around $1.50.
#How to setup usb ethernet mac mac
Built around the lwIP stack, it leverages the PIO, DMA, and dual-core capabilities of RP2040 to create an Ethernet MAC stack in software. The PHY support was put together by Sandeep Mistry, well known as the author of the noble and bleno Node.js libraries, as well as the Arduino LoRa library, amongst others. Of course this was only ever going to be a temporary inconvenience, and sure enough, over Pi Day weekend we saw both USB Ethernet and Ethernet PHY support released for Pico and RP2040. Raspberry Pi Pico has a lot of interesting and unique features, but it doesn’t have networking.