ROM_ARM.bat - Creates an ARM mode release build suitable for programming into flash.
RAM_ARM.bat - Creates an ARM mode debug build suitable for execution from RAM.
ROM_THUMB.bat - Creates a THUMB mode release build suitable for programming into flash.
RAM_THUMB.bat - Creates a THUMB mode debug build suitable for execution from RAM.
The batch files are contained in the Demo/ARM7_AT91FR40008_GCC directory. Switching from one
batch file to the other requires a complete rebuild. To force a complete rebuild 'touch' the makefile.
RTOS Demo application hardware setup
The demo application includes the ComTest tasks - where one task transmits RS232 characters to another. For correct operation of
this real time task a loopback connector must be fitted to the RS232 port 0 of the Embest prototyping board (pins 2 and 3 must be
connected together on the 9Way connector).
The demo application uses the LEDs built onto the prototyping board so no further hardware setup is required.
Building and executing the RTOS demo application - Standalone
from flash
The RTOS demo application can be executed either from flash or from RAM. This section provides instructions on creating and
programming a release build into the AT91FR40008 flash memory. It is assumed that the GNUARM and UNXUTILS development
tools are already installed correctly and included in your PATH (to make them available from a Windows DOS prompt).
To build the application:
1. Open a DOS prompt, and navigate to the Demo/ARM7_AT91FR40008_GCC directory.
2. Type "rom_arm" (or "rom_thumb") to execute the rom_arm.bat batch file. The batch file sets up the environment
necessary for a release build then calls make. The build should complete with no errors or warnings.
To download the RTOS demo to flash:
1. Connect the parallel port JTAG interface between your host computer and the target hardware.
2. Open the Embest flash programming utility.
3. From within the flash programming utility, open the ATEB40x.cfg configuration file. This will setup all the necessary flash
parameters for the target board.
4. Still within the flash programming utility, set the file to be programmed to
Demo/ARM7_AT91FR40008/rtosdemo.hex. This is the hex file output from the build
process described above.
- 1
- 2
前往页