Embedded Ethernet Programming with HAL

Build Embedded Ethernet Firmware : HTTP, SSI, CGI etc

Embedded Ethernet Programming with HAL
Embedded Ethernet Programming with HAL

Embedded Ethernet Programming with HAL udemy course

Build Embedded Ethernet Firmware : HTTP, SSI, CGI etc

Welcome to Embedded Ethernet Programming with HAL Training.


This course is the intermediate level course of a 3 course learning path teaching you how to write drivers for the ethernet peripheral as well as write embedded ethernet firmware for different networking protocols such as http, dhcp etc.

The goal of this course is to teach you how to build real world embedded ethernet applications.


                                               What make this course different from the beginner course ?


In this course we write all the ethernet drivers ourselves using the the STM32 HAL APIs. Unlike the beginner course, in this course we also implement the ethernet interface files linking our ethernet module to the LwIP library ourselves.

The STM32 Hardware Abstraction Layer (HAL) provides a simple, generic multi-instance set of APIs (application programming interfaces) to interact with the upper layers like the user application, libraries and stacks.

In this intermediate course we also implement more examples of embedded ethernet applications.


So with that understood, let me tell you…


                                                                            Exactly What You’re Getting

This intermediate course can be divided into 4 major sections.


                                                                                 First Section

In the first section we give a short introduction to networking and then explore the ethernet capabilities of the STM32F7 microcontroller.

                                                                               Second Section

In this section we write drivers for all the peripherals we will be using in the course. We write drivers for the ADC, UART, RCC and GPIO.


                                                                                Third Section

In the third section we write all the drivers required to fully configure the ethernet module. We will implement a driver for configuring the ethernet gpio pins to operate in RMII mode, we will implement a driver for transmitting packets, another one for receiving packets etc.

It is in this section that we decide on the ethernet parameters such the speed, the duplex, whether to use auto-negotiation or not etc. After configuring the ethernet module we conclude this section by implementing a function that interfaces our ethernet module to the Light Weight IP (LwIP) library. LwIP is a small independent open-source implementation of the TCP/IP protocol stack designed for embedded systems.


                                                                               Last Section

The final section begins by giving an introduction to Light Weight IP (LwIP) and then goes on to build embedded ethernet applications. Here are some the applications we shall build:

  • Programming : Checking if the cable is connected

  • Programming : Getting an IP address from DHCP

  • Programming : Hosting Webpages with httpd

  • Programming : Displaying Realtime Data on Webpages with SSI

  • Programming : Working with Multiple SSI Tags

  • Programming : Controlling Hardware from WebServers using CGI

  • Programming : Injecting HTML code into a Webpage using SSI and CGI