| |||
| Home > Introduction to the ARM Firmware Suite > µHAL demonstration programs > Simple tests | |||
These demonstration programs are typically the first images you might run on a new target. The following simple tests demonstrate and verify a specific functionality:
hello.cThis program outputs data to the serial port.
io.cThis program takes data input on the serial port and echoes it on the output.
led.cThis program flashes the LEDs in a binary pattern. It requires no additional functionality (such as serial ports) to be working in order to run.
The semihosted version prints out a banner and description on the debugger console, because this functionality is known to be available in semihosted mode.
heap.cThis program allocates and then frees some memory.
simple-caches.cThis program gives an example of simple cache (Data and Instruction) usage that:
reads the cache and MMU state
resets the cache and MMU
turns caches and MMU on and off
restores the original state.
system-timer.cThis program combines serial output, LED flashing, timers, and interrupts. This program uses most of the features of µHAL and is a good indicator that a target is functional.
file-io.cA file I/O program. It performs file functions on the host and returns the size of a specified file.
This program is only useful when built semihosted and linked with the ADS C Library.
exception.cThis program shows how the ADS C Library handles a divide-by-zero exception.
The compiler displays a warning when building this program.