The AVR ONE! is shipped with a selftest adapter with an IDC cable. If it is for any reason suspected that the AVR ONE! cable and probe are not functioning correctly, a selftest can be run. The selftest adapter is a loopback adapter that enables the on board MCU to perform diagnostics on the target communication circuitry. This includes the probe, the cable, parts of the main board and implicitly the test adapter itself.
Connecting
To run the test, the test adapter and cable must be connected to the probe as shown in Figure 9.1, “Connecting the AVR ONE! test adapter”. The edge connector mates directly onto the Mictor38 socket on the test adapter. Press firmly to ensure a good connection. The male part of the test adapter cable is connected to the probe. Note that although the hole for the cable is keyed so that the connector will only insert fully in the correct orientation, it is still possible to insert it halfway if using the incorrect orientation. The female part of the cable mates with the pinheader on the test adapter. Make sure this is mated correctly.
Launching
The selftest can either be launched from the command line or from AVR32 Studio.
To execute the selftest from the command line by using the AVR32 Toolchain:
avr32program selftest
To execute the selftest from AVR32 Studio: select the appropriate target, right click and select "selftest" from the context menu that appears.
Also see the section called “AVR32 command line utilities”
Both methods are equivalent and runs the same tests.
How to use the results for diagnosis
If the selftest finds errors, it will display some diagnostic error messages along with error codes. Please double check your connections and retry the test if this happens. The connections may be loose, or in the case of the JTAG connector; it may be connected incorrectly onto the pinheader. If the error messages persist, it is likely that there is a hardware problem somewhere. Please copy the entire output of the test to AVR support for advise, making sure that the error codes are included.