This demo is now deprecated, please see the LPC LPCXpresso page for information on its replacement. The demo presented on this page was developed . “Using the FreeRTOS Real Time Kernel – a Practical Guide LPC17xx Edition” is a step by step hands on guide to using FreeRTOS on Cortex M3. Jun 23, FreeRTOS is a powerful real time operative system for embedded devices, as they states is ported to 27 platforms, one of them is the LPC17xx.
|Published (Last):||13 February 2010|
|PDF File Size:||3.32 Mb|
|ePub File Size:||2.31 Mb|
|Price:||Free* [*Free Regsitration Required]|
[RTOS Support] FreeRTOS+TCP with LPC17XX
This is the directory to select when importing the project into your Red Suite workspace. It therefore contains many more files than used by this demo.
See the Source Code Organization section for a description of the downloaded files and information on creating a new project. The Demo Application Creating the project directory structure The easiest way to use an Eclipse managed make build is to locate the required build files C source files, header files and linker scripts under the directory that contains the Eclipse project file.
The batch file must be executed prior to attempting a build. It cannot be executed successfully from within the Eclipse environment itself.
As it starts up you will be prompted for a workspace location. You can use your existing workspace or create a new one in a convenient location. A dialog box will appear. Take care that the ‘Copy projects into workspace’ check box is NOT checked during this last step. Importing the FreeRTOS project into the Red Suite workspace Web server configuration Connect the RDB development board to a computer running a web browser either directly using a point to point crossover cable, or via a Ethernet switch using a standard Ethernet cable.
The MAC address and net mask are configured within the same header file. The IP addresses used by the web browser computer and the RDB development board must be compatible.
This can be ensured by making the first three octets of both IP addresses identical. For example, if the web browser computer uses IP address Building and executing the demo application Open main. Delete the line it provides instructions on setting up the directory structure for those using the project without first reading these instructions. To build the project, simply select ‘Build All’ from the ‘Project’ fredrtos.
The application should build with no errors or warnings assuming the error statement has been removed. A launch configuration needs to be created before a debug session can be started. This only needs to be done once, after it has been created debug sessions can be started simply by clicking the ‘Debug’ speed button.
To create a launch configuration first select ‘Open Debug Dialog The configuration parameters will be set automatically. These tasks consist predominantly of the standard demo application tasks see the demo application section for details of the individual tasks.
The following tasks and tests are created in addition to the standard demo tasks: Check function – called from the tick hook This only executes every five seconds. Its main function is to check that all the standard demo tasks are still operational. The USB task simply echoes received characters with an offset which by default is one.
Therefore if ‘A’ freeertos received ‘B’ will be echoed back. If ‘x’ is received ‘y’ will be echoed back, etc. When executing correctly the demo freertso will behave as follows: LEDs 2, 3 and 5 are under the control of the standard ‘flash’ tasks. Each will toggle at a different but fixed frequency. To use the USB port assuming a Windows host computer: The host computer should recognise the new USB connection and prompt for the location of a suitable. Select the option to manually select the.
The Windows Device Manager can be used to ascertain the actual number assigned. Open up a dumb terminal such as Hyperterminal and select the enumerated COM port number. Other parameters such as baud rate and flow control settings are not required and can be left at their default values.
Type ‘A’ into the terminal window, if everything is working correctly you should see ‘B’ echoed back. Note that a queue is used to pass each individual character between the USB interrupt service routine and the USB task. This is a convenient method for a slow echo server, but very inefficient if large amounts of data are to be transferred.
The target hardware will serve the web pages described below to a standard web browser. To connect to the target: Open a web browser on the connected computer. Entering the IP address into the web browser obviously use the correct IP address for your system Served Web Pages The top of each served page includes a menu containing a link to every other page.
FreeRTOS template for LPC17xx
The served RTOS stats page showing status information on each task in the system. The served run time stats page showing the processor utilisation of each task. The check box permits the state of the user LED to be both set and queried. Changes are sent to the target hardware by clicking the “Update IO” button.
The constants defined in this file can be edited to suit your application. The supplied value of Hz is useful for testing the RTOS kernel functionality but is faster than most applications require. Lowering this value will improve efficiency. The lowest priority on a ARM Cortex-M3 core is in fact – however different ARM Cortex-M3 vendors implement a different number of priority bits and supply library functions that expect priorities to be specified in different ways.
Use the supplied examples as a reference.
Note that vPortEndScheduler has not been implemented. Interrupt service routines In the demo application the vector table remains in flash. Unlike most ports, interrupt service routines that cause a context switch have no special requirements and can be written as per the compiler documentation. This should be used as a reference example. Compiler options As with all the ports, it frertos essential that the correct compiler options are used.
The best way to ensure this is to base your application on the provided demo application files. Setting up the launch configuration. Entering the IP address into the web browser obviously use the correct IP address for your system.
Fail Safe File System: Delivered online or on-site.
Thread aware file system. Use the tree menu to navigate groups of related pages.