FreeRTOS-GCC-ARM926ejs_QEMU

##About FreeRTOS ported to ARM Versatile Platform Baseboard, based on the ARM926EJ-S CPU.

The current version is based on FreeRTOS 8.2.3. The port will be regularly updated with newer versions of FreeRTOS when they are released.

The port is still at an early development stage and includes only very basic demo tasks. More complex tasks will be included in the future.

##Prerequisites

  • Sourcery CodeBench Lite Edition for ARM EABI toolchain (now owned by Mentor Graphics), based on GCC. See comments in setenv.sh for more details about download and installation.
  • GNU Make
  • Qemu (version 1.3 or newer, older versions do not emulate the interrupt controller properly!)

##Build A convenience Bash script setenv.sh is provided to set paths to toolchain's commands and libraries. You may edit it and adjust the paths according to your setup. To set up the necessary paths, simply type:

. ./setenv.sh

If you wish to run the image anywhere else except in Qemu, you will probably have to edit the linker script qemu.ld and adjust the startup address properly.

To build the image with the test application, just run make or make rebuild. If the build process is successful, the image file image.bin will be ready to boot.

#Run To run the target image in Qemu, enter the following command:

qemu-system-arm -M versatilepb -nographic -m 128 -kernel image.bin

A convenience Bash script start_qemu.sh is provided. If necessary, you may edit it and adjust paths to Qemu and/or target image.

The demo application will run infinitely so it must be stopped manually by "killing" the instance of Qemu (an "equivalent" to switching off the board). A convenience Bash script stop_qemu.sh (it must be run in another shell) is provided to automate the process. Note that it may not work properly if multiple instances of qemu-system-arm are running.

For more details, see extensive comments in both scripts.

##License All source and header files in FreeRTOS/ and its subdirectiories are licensed under the modified GPL license. All other files that are not derived from the FreeRTOS source distribution are licensed under the Apache 2.0 license.

For the avoidance of any doubt refer to the comment included at the top of each source and header file for license and copyright information.


书籍推荐