Giter Club home page Giter Club logo

lpc810_codebase's Introduction

LPC810 CodeBase

Open source code base for the ARM Cortex M0+ LPC810 family from NXP.

This code base is intended to work with the LPC810 in a DIP8 package. While these drivers are based on the original LPC800 example code from NXP, the LPC810 has limited resources (4KB flash and 1KB SRAM), so smaller, lighter-weight drivers had to be written to get the most out of these resources we have.

The current code implements the following peripheral drivers:

  • A basic SPI driver
  • Some simple GPIO helper functions (although GPIO should normally be accessed directly via the appropriate registers)
  • A simple driver for UART0 and printf-redirection that allows 'printf' output to be transmitted to UART0
  • A basic multi-rate timer driver that allows us to set delays

The code base also implements a mini printf that takes up much less space than the default printf used in most libc variants. If necessary, it's easy to change the printf redirection to a location other than UART0 via the printf-redirection.c file.

Using the Makefile

If you wish to use 'make' from the command-line, you can run the following commands:

  • make clean
  • make all

Common 'Make' Errors

make: arm-none-eabi-gcc: No such file or directory

If you get this error, you need to add the '/bin' folder of your toolchain to your 'system path' variable.

On OS X or Linux this can be done with the following command (GCC ARM Embedded 2014 Q2 used below, stored in the user's /Downloads folder):

export PATH=$HOME/Downloads/gcc-arm-none-eabi-4_8-2014q2/bin:$PATH

You can test if GCC is available on the system path by running the following command:

arm-none-eabi-gcc --version

lpc810_codebase's People

Contributors

cpldcpu avatar frankvnk avatar kamalmostafa avatar lawrencek avatar microbuilder avatar tylerflick avatar

Watchers

 avatar  avatar

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.