FREEDOM BOARD / CORTEX M0+ GETTING STARTED

Document created by Eli Hughes on Jan 13, 2013Last modified by Eli Hughes on Mar 20, 2013
Version 22Show Document
  • View in full screen mode

 

Overview

 

This document has links to videos to give tutorials on how to getting started *from scratch* with the freedom board.    In these tutorials we build projects with bare metal code to see how things work!   It includes the basics on how to get clocks running,  lights blinking and interrupts firing *from scratch*. For more code/peripheral examples that use a "bare metal" approach,  check out the page on the FRDM-TFC board.

ERRATA!!!  

 

While working with a large number of Freedom boards in a course,  it was observed that the InitClockRoutines would *sometimes* not work.    *Some* of the crystals on the freedom boards do NOT like "HIGH_GAIN" mode.   The new code is uploaded to this page but you could also change the code yourself:

 

  pll_init(8000000, HIGH_GAIN, CRYSTAL, 4, 24, MCGOUT);

 

to

  pll_init(8000000, LOW_POWER, CRYSTAL, 4, 24, MCGOUT);

 

 

Projects From Scratch for the Freedom Board with Codewarrior 10.3

 

 

Projects From Scratch - Part 2 - Importing other projects

 

 

Using the Freescale Header Files and Blinking the LED

 

Source code for video (Codewarrior 10.3) is in the attached files at the bottom of this document.

 

 

 

 

Clock Distribution

 

Source Code for the Clock Distribution video is in the attached files at the bottom of this document.

 

 

Interrupts Part 1 - Background

 

 

Interrupts Part 2 - ARM Systick Timer

 

Source Code for the ARM Systick Timer video is in the attached files at the bottom of this document.

 

 

Interrupts Part 3 - TPM (Timer Pulse Width Modulator) Overflow

 

Source Code for the TPM Overflow Interrupts video is in the attached files at the bottom of this document

 

Outcomes