Giter Club home page Giter Club logo

stm32ecm's Introduction

USB CDC-ECM example for STM32F072 microcontroller

This is a second generation (and hopefully more useful) version of this project. The first was originally written due to the apparent dearth of open-source implementations of this class of device.

However, unlike the previous, this new version has embedded virtual DHCP, DNS, and web servers.

Utilizing a copy of lwIP 1.4.1 from the lrndis project, this is a CDC-ECM implementation for the STM32F072.

This is related to D21ecm, another CDC-ECM implementation (but for the Atmel SAMD21).

Note that this project functions with both Linux and Mac OS X Lion 10.7.5 hosts, but not with Mac OS X El Capitan 10.11.6 nor macOS High Sierra 10.13.16.

Alternatives

Note that my priority going forward is to add the same and additional capabilities to TinyUSB; TinyUSB has the added benefit of supporting many different processors.

Usage

TCP/IP is inherently a high memory user (at least in traditional embedded terms). However, by tweaking the options of lwIP, I have the implementation fitting within the 16kBytes of RAM and 128kBytes of FLASH available to the STM32F072.

Specifics

Look at main.c to get an idea of how the code could be modified. As written, one quantity (systick) is shown in real-time as "Device Time" on the embedded web server (192.168.7.1) and another three quantities (alpha, bravo, and charlie) are "User Controls" on the web page that cause app.c code to be executed.

Requirements for compiling

Rowley Crossworks for ARM is presently needed to compile this code.

All the code is gcc/clang compatible, and as time permits, other options may be added.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.