AM335x Starter Kit Diagnostics

Disclaimer:

These diagnostics and source code are provided as a reference and aid to the tests performed on the AM335x StarterKit board post production. No support is implied or provided.

This page captures the Diagnostics Testing Procedure for the AM335x Starter Kit.

Software
1. Test PC/Laptop Requirements

Windows 7 Professional Serial port DB9 1 USB port

2. Download the Latest FTDI windows Drivers and isntall it --- http://www.ftdichip.com/Drivers/CDM/CDM20814_WHQL_Certified.zip

3. AM335x Starter Kit Diagnostics Binaries --- v3.3 - For Production boards 1.2B

4. AM335x Starter Kit Diagnostics Source --- https://git.ti.com/sitara-hw-apps/evmskam335x-diag --- git://git.ti.com/sitara-hw-apps/evmskam335x-diag.git

Hardware
1. USB 2.0 Micro AB Cable for the Device USB port(J3-USB0)

2. MicroSD Card Kingston/Sandisk 4GB/8GB formatted using a HP Format Utility v2.0.6(download from cnet)

3. Ethernet external loopback cables - 2Nos.

Full loopback cable diagram taken from the following link: https://sites.google.com/site/kalman/tech-break/ethernetrj-45loopback



Looking from the underside of the connector, CAT5 cable connects from bottom. a. Connect a cable to pin 1 and 3. b. Connect a cable to pin 2 and 6. c. Connect a cable to pin 4 and 7. d. Connect a cable to pin 5 and 8. e. Crimp.

4. A standard Stereo Audio Headset/speaker

5. Powersupply :5V 3A

6. NewHaven Resistive LCD display should be mounted

7. LCD Stylus

Steps to be done before starting the Diagnostics test
1. Copy the Diagnostics binaries(Starterware bootloader-MLO and diagnostics binary - app) to the microSD card

2. Connect the following to the board before power up:

a. microSD card to the board b. USB0(device port - J3 miniB connector) to the Test PC, this serves as the constole port(USBSerial) c. USB pen drive to the USB1(host port J5) d. Connect the Ethernet loopback cable on both the boards e. Connect the Audio jack

3. Connect the power cable

4. Power ON the board by pressing the SW5 button(in the bottom of the board near the microSD card) for 2-3 seconds.

5. Open the teraterm/hyperterminal with 115200,8N1 setting with Hardware control enabled

6. Test the peripherals as per the Menu listed in the console(check the Diagnostics tests version before performing the test):

Important Note:

1. Please do not re-program/erase the ID Memory(First 60 bytes location of the EEPROM) since this has the factory settings and is used by TI SDK for the device configuration"

'''2. First Eight testcases are Automated and a test summary is prepared. The remaining tests need to be executed by the test engineer manually and the results need to be logged in the report.'''

*************************************************************    Main Menu - SK3358 Diagnostics Test v3.00 ************************************************************* 1-ID Memory Programming 2-Diagnostics Enter your test option: 2 ********************************************** TMDXEVM3358-SK Board ******** Reading From ID MEMORY ***** Header in ID-MEMORY LSB: 0xAA Header in ID-MEMORY   : 0x55 Header in ID-MEMORY   : 0x33 Header in ID-MEMORY MSB: 0xEE BOARD NAME IN ID-MEMORY : A335X_SK VERSION NUMBER :  1.2B SERIAL NUMBER :   22124P190109 Configurations :  SKU#00 ********************************************** *************************************************************             SK3358 Diagnostics Test v3.2 ************************************************************* 0-Auto Diagnostics Test Number 1-8 1-DDR3 2-I2C EEPROM 3-Accelerometer 4-microSD 5-USB1 Host port 6-PMIC 7-Ethernet Gigabit Port 1 8-Ethernet Gigabit Port 2 9-LCD 10-Touch screen 11-Audio codec 12-User LED 13-User Keypad 14-Interrupt Key 15-USB Device port 16-Power Management - DS0 17-Return to Main Menu Enter your test option:

DDR3 DMA Test Test
DDR3 DMA Test performs the DDR3 Write and read to verify for the correctness. The test involves copies between SRAM, DDR3 and DMA, this test covers 128MB memory locations. Test provides progessive status and at the end on successful run provide PASS status else FAIL.

************************************************************* 1. DDR3 DMA Test Test ************************************************************* DDR3 dataline - Rolling 1 Test Pass +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. DDR3 dataline Test PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Clearing DDR and SRAM Fill DDR with pattern 0xAAAAAAAA Test in progress currently 0x86000000 0xAAAAAAAA Test in progress currently 0x86800000 0xAAAAAAAA Test in progress currently 0x87000000 0xAAAAAAAA Test in progress currently 0x87800000 0xAAAAAAAA Test in progress currently 0x88000000 0xAAAAAAAA Test in progress currently 0x88800000 0xAAAAAAAA Test in progress currently 0x89000000 0xAAAAAAAA Test in progress currently 0x89800000 0xAAAAAAAA Test in progress currently 0x8A000000 0xAAAAAAAA Test in progress currently 0x8A800000 0xAAAAAAAA Test in progress currently 0x8B000000 0xAAAAAAAA Test in progress currently 0x8B800000 0xAAAAAAAA Test in progress currently 0x8C000000 0xAAAAAAAA Test in progress currently 0x8C800000 0xAAAAAAAA Test in progress currently 0x8D000000 0xAAAAAAAA Test in progress currently 0x8D800000 DMA pattern 0xAAAAAAAA test complete DDR test passed from 0x86000000 to 0x8DFFFFFF +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. DDR3 DMA Test PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

EEPROM Test
EEPROM Test Writes and Read 50 EEPROM memory starting from 0x0400.

************************************************************* 2. EEPROM Test ************************************************************* I2C EEPROM Test 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49, 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49, +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2. EEPROM Read/Write PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Accelerometer Test
Accelerometer Test reads the ID of the Accelerometer IC and provides PASS/FAIL status.

************************************************************* 3. Accelerometer Test ************************************************************* Accelerometer Device Identification: 0x32 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3. Accelerometer ID test PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

microSD Test
On Successful microSD mount the test will return successful.

If card is not inserted then the test will wait about ~10 seconds and return test as FAIL. This will be the case if card is present and the Card detect is not properly working.

************************************************************* 4. microSD Test *************************************************************/&gt; microSD mounted successfully - Test is Pass +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4. microSD Test result is: PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

USB1 Host Test
Test should be performed with the USB Pen drive should be inserted before test start. If the USB pen drive is detected and mount is successful, the test will exit with PASS status. If pendrive not mounted successfull the test will return FAIL. If pendrive not inserted/detected the test should be exited by pressing "ESC" escape key.

************************************************************* 5. USB1 Host Test ************************************************************* USB Mass Storage Host program Type 'help' for help. NODEV&gt; Debug-ENUM-step-1 Debug-ENUM-step-4 Mass storage device connected. /&gt; USB1 Host mounted successfully +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5. USB1 Host Test result is: PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

PMIC Test
PMIC test reads the JTAG version and PMIC Smartreflex register access. On success the returns PASS. Limitation: One running the second time the board resets, this will be fixed for the Beta

************************************************************* 6. PMIC Test ************************************************************* PMIC JTAG Version: 0x1 PMIC JTAG Version test Pass PMIC SR Register Write/Read test Pass +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 6. PMIC test PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Ethernet Diagnostics Test
Connect the Loopback cables to the both the ports. The Ethernet diagnostics test will automatically run and success logs should be as follows:

Ethernet Port1 Test
Ethernet Port2 Test(J6) performs the loopback tests for the different speeds 10M/100M/1000M and provides the test result.

************************************************************* 7. Ethernet Port1 Test ************************************************************* Ethernet - RGMII1 test Port1 10M test EMAC MAC Loopback Test start EMAC MAC Loopback Test passed!! EMAC PHY Internal Loopback Test start PHY found at address0 PHY found at address1 PHY chip is detected, PHY ID = 0x4DD074 @PHY address= 0x0 EMAC PHY Loop back Test passed!! EMAC PHY External Loopback Test start PHY found at address0 PHY found at address1 PHY chip is detected, PHY ID = 0x4DD074 @PHY address= 0x0 Link Detected EMAC PHY External Loopback Test passed!! Port1 100M test EMAC MAC Loopback Test start EMAC MAC Loopback Test passed!! EMAC PHY Internal Loopback Test start PHY found at address0 PHY found at address1 PHY chip is detected, PHY ID = 0x4DD074 @PHY address= 0x0 EMAC PHY Loop back Test passed!! EMAC PHY External Loopback Test start PHY found at address0 PHY found at address1 PHY chip is detected, PHY ID = 0x4DD074 @PHY address= 0x0 Link Detected EMAC PHY External Loopback Test passed!! Port1 1000M test EMAC MAC Loopback Test start EMAC MAC Loopback Test passed!! EMAC PHY External Loopback Test start PHY found at address0 PHY found at address1 PHY chip is detected, PHY ID = 0x4DD074 @PHY address= 0x0 Link Detected EMAC PHY External Loopback Test passed!!

Ethernet Port2 Test
Ethernet Port2 Test(J7) performs the loopback tests for the different speeds 10M/100M/1000M and provides the test result.

************************************************************* 8. Ethernet Port2 Test ************************************************************* Ethernet - RGMII2 test Port2 10M test EMAC MAC Loopback Test start EMAC MAC Loopback Test passed!! EMAC PHY Internal Loopback Test start PHY found at address0 PHY found at address1 PHY chip is detected, PHY ID = 0x4DD074 @PHY address= 0x1 EMAC PHY Loop back Test passed!! EMAC PHY External Loopback Test start PHY found at address0 PHY found at address1 PHY chip is detected, PHY ID = 0x4DD074 @PHY address= 0x1 Link Detected EMAC PHY External Loopback Test passed!! Port2 100M test EMAC MAC Loopback Test start EMAC MAC Loopback Test passed!! EMAC PHY Internal Loopback Test start PHY found at address0 PHY found at address1 PHY chip is detected, PHY ID = 0x4DD074 @PHY address= 0x1 EMAC PHY Loop back Test passed!! EMAC PHY External Loopback Test start PHY found at address0 PHY found at address1 PHY chip is detected, PHY ID = 0x4DD074 @PHY address= 0x1 Link Detected EMAC PHY External Loopback Test passed!! Port2 1000M test EMAC MAC Loopback Test start EMAC MAC Loopback Test passed!! EMAC PHY External Loopback Test start PHY found at address0 PHY found at address1 PHY chip is detected, PHY ID = 0x4DD074 @PHY address= 0x1 Link Detected EMAC PHY External Loopback Test passed!!

LCD Test
LCD Test displays patterns. The test starts with a Combinations of colours display, followed by the brighness control demo and the different color test black, white, green, red, blue and different gradient test. During the test on the LCD the console provides the respective message. The result of this test need to be confirmed by the test engineer.

************************************************************* 9. LCD Test - Requires User verification ************************************************************* Display 3 colours with Colour Names LCD Brightness Control(Low to High): 0 LCD Brightness Control(High to Low): 2500 Display black Display white Display Gradient in green Display Gradient in red Display Gradient in white Display Gradient

Touch screen Test
Touch screen test requires test engineer input for the calibration and center touch test. LCD image is displayed for the test engineer to touch the right and left bottom and right top for the calibration and touch the center for the touch test verification.

a. First Calibration need to be done, Requires a stylus for accuracy also can be tested with finger touch. (Right bottom, Left bottom, Right Top)

b. Press the Center of the touch screen for successful test completion

Note: If calibration is not proper this will not work hence to exist "ESC" key should be pressed and test to be tried again.

************************************************************* 10. Touch screen Test - Requires User verification ************************************************************* Touch screen Calibration Touch at Right bottom Touch at Left bottom Touch at Right Top Touch the center of the Touch screen or Press ESC on console to exit xDpos=480yDpos=0 xDpos=240yDpos=126 Center touch success +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 10. Touch screen Test - PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Audio Test
Audio Test requires the headset/speaker to be inserted. The Audio interface is working good the test engineer can hear a tone playback. After few seconds it will stop and proceed to the next test. The result of the this test need to be verified and the report need to be updated by the test engineer.

************************************************************* 11. Audio Test - Requires User verification *************************************************************

User LED Test
User LED Test involves Sequential test run of 1-4 and finally all the LED will glow.

************************************************************* 12. User LED Test - Requires User verification ************************************************************* User LED 1 ON User LED 2 ON User LED 3 ON User LED 4 ON All User LED ON

Keypad test
User Keypad Test requires the test engineer to press key SW1-SW4 sequentially(allows 10 seconds for the user input), if key is not pressed, wrong key is pressed the test will log as FAIL.

************************************************************* 13. Keypad test ************************************************************* Press User Key 1 Press within 10 seconds User Key 1 is pressed +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Correct Key Pressed - PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Press User Key 2 Press within 10 seconds User Key 2 is pressed +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Correct Key Pressed - PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Press User Key 3 Press within 10 seconds User Key 3 is pressed +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Correct Key Pressed - PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Press User Key 4 Press within 10 seconds User Key 4 is pressed +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Correct Key Pressed - PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Interrupt Key Test
Interrupt Key Test requires the Test engineer to press the Interrupt key(SW6 in the board bottom) within 10 seconds, if not pressed/there is an issue with the test will return FAIL.

************************************************************* 14. Interrupt Key Test ************************************************************* Press the Interrupt Key Press within 10 seconds Interrupt key is pressed +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 14. Interrupt Key Test PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

USB0 Device Test
This test is for testing the USB Device mode of the SK3358 through the USB0/J3 port. On selecting this test a screen will pop up in Test PC, refer the image in this link. Format the drive and do file creation or file copy/delete. After performing the copy return to the test serial console and press "ESC" - escape key to end the test. If the File copy/delete/creation is done the test will return PASS, if only format is done the test will return FAIL.

If the USB Device is not coming up to end the test press "ESC". the test will return fail.

************************************************************* 15. USB0 Device Test-Press ESC to exit ************************************************************* Writing USB Dev MSC Test completed +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 15. USB0 Device Test result is: PASS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Power Management - Deep Sleep 0 Test
On selecting this test the LCD will be displayed with a pattern and Audio playback and enter the power down mode. In the power down mode there will be no LCD display and Audio.

To power-up press any key on the UART console and check for the LCD display pattern and Audio playback coming-up. If the display and Audio works properly the test is PASS. After 5 seconds the LCD display will be cleared and the Diagnostics comes up.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 16. PM-DS0-Test LCD pattern displayed before Entering PM-DS0 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Display Gradient Entering DS0 Power Saving Mode... DS attempt passed +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 16. PM-DS0-SUCCESS, check for LCD Display pattern +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Test Summary
The Test Summary will be as follows and is applicable only for the Automated tests(1-8 testcases):

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Total No. of Automated Tests: 8 Total Test Passed : 8 Total Test Failed : 0 Please refer the log for creating the report Tests like LCD, Touchscreen, Audio, LED, Keypad, Interrupt Key USB0 Device requires user verification +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++