Sections
You are here: Home Documentation Tutorials Getting Started with Linux Compile FreeRTOS

Compile FreeRTOS

How to compile a version of FreeRTOS, the operating system that runs on the Make Controller.
How to set up to play with your Make Controller from a Linux desktop.
Page 3 of 3.
1. Get the FreeRTOS.org Demo from MakingThings.

This is based on a demo that is part of the standard FreeRTOS download called lwIP_Demo_Rowley_ARM7, but modified for the slightly different pin assignments of the Make Controller Board.

    % cd
% wget http://www.makingthings.com/resources/downloads/FreeRTOSV4.1.zip
% unzip FreeRTOSV4.1.zip

2. Build the Make Controller Kit-specific demo
    % cd ~/FreeRTOSV4.1.0/Demo/mc_lwIP_Demo_Rowley_ARM7
% make clean; make

3. Enter SAM-BA mode
Enter SAM-BA mode by shorting the ERASE jumper and cycling power


4. Load the FreeRTOS demo and reset the board to run FreeRTOS.
Note that flashing rtosdemo.bin takes awhile during which no progress is indicated.
    % sudo sam7
sam7> flash rtosdemo.bin
sam7> boot_from_flash
sam7>

5. Run the FreeRTOS demo
Power cycle your MAKE Controller Kit and observe the 4 green LEDs on the application board implementing a 4 bit counter.

Connect your MAKE Controller Kit to a wired Ethernet network, and browse to http://192.168.0.205/. You should see a list of tasks that are running on the MAKE Controller Kit in the FreeRTOS environment. This page automatically refreshes every second.
 
Document Actions
Log in


Forgot your password?
New user?