Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Ethernet, TCP/IP and Ping | STM32 Tutorial #91

698 views on YouTube

How to Network STM32! This video introduces our new Ethernet Blade and get a TCP/IP stack (LWIP) up and running to a point where it respond to ping.

Buy Streamline here: https://currentmakers.com/products/streamline/

Part 2 turning this into a web-server here: https://www.youtube.com/watch?v=e9pHszvODMk

STM32World wiki: https://stm32world.com/wiki

#STM32 #GettingStarted #Tutorial #HAL #Ethernet #LWIP #STM32World #CurrentMakers #Streamline

00:00 Intro
00:55 Welcome
01:29 Requirements – STM32 MCU’s with Ethernet MAC
03:38 Hardware used in this video – Streamline MCU STM32F407
05:22 The complete setup
05:46 The Streamline Ethernet schematics
07:38 STM32CubeMX project setup
14:00 Selecting the PHY
15:08 The project code in STM32CubeIDE
16:22 Adding the networking code first the header lwip.h
17:00 Initializing the PHY
19:11 Checking if an Ethernet cable is connected
19:46 Polling LWIP from super loop
20:19 Building
20:49 Checking IP address status in the super loop
22:03 Running the example -SUCCESS – got an IP address
23:05 Trying ping – it responds
23:57 Final thoughts and outtro

Corrections:
03:02 Nope – we’ve got a STM32H562 which does NOT have Ethernet MAC
11:20 It means Media-Independant Interface – so not 2
13:18 I meant TCP/IP address – the Ethernet address is the MAC address
20:32 No, you don’t see because my ugly face is in the way