ADRD3161-01Z Production Testing

Overview

The purpose of the test procedure is to identify connectivity issues, poor soldering, and potential manufacturing defects. Some of the issues are directly identified by explicit part-targeted tests, others are implicit, by running adjacent tests.

Test Duration

Step Description

Estimated Time (minutes)

Test bench setup

8 min

Software test

6 min

Total time

14 min

Test Requirements

Required Hardware

  • Raspberry Pi 5, power supply

  • HDMI cable, mouse, keyboard

  • 1x USB to CAN adapter

  • 1x CAN cable

  • 1x motor QSH5718-76-28-101-10k

  • 1x encoder cable

  • 1x MAX32650 (DAPLINK programmer)

  • 1x Power supply for device under test, crimped power cable

  • ADRD3161-01Z as device under test (D.U.T.)

  • SD card with the test image

Required Software

The test image will be provided as a SD test card that goes into the Raspberry Pi.

Required Setup

No.

Steps

1

Insert the SD card into the Raspberry Pi

2

Connect the Raspberry Pi to a monitor and power it

3

Put jumpers on D.U.T. P12, P15 in position

5

Connect the CAN cable to P9 and the USB into the Raspberry Pi

6

Connect the encoder cable between P16 and the motor

7

Connect the motor cable to P3 header (see picture below)

8

Connect power supply to P10 on D.U.T. board

9

S2 switch in configuration shown in picture below

10

Connect the DAPLINK cable to P7 connector

11

Run 1) TMC bootstrapping

12

Move the DAPLINK to P6 connector

13

Run 2) Microcontroller Flash

14

Run 3) System test

Note

  • When running test 1) Bootstrapping TMC, the DAPLINK should be connected to P7 connector

  • When running test 2) Microcontroller Flash and 3) System Test, the DAPLINK should be connected to P6 connector

Jumper Positions

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/p12_jumper_position.png

Figure 1 P12 jumper connected

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/p15_jumper_position.png

Figure 2 P15 jumper connected

S2 Switch Configuration

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/s2_switch_config.png

Figure 3 S2 switch configuration

Motor and Encoder Connections

When connecting the motor cable to P3, ensure the correct color order:

  • UX1 = black

  • VX2 = green

  • WY1 = red

  • Y2 = blue

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/encoder_and_motor_cable_conn.png

Figure 4 Encoder cable and motor cable connections

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/motor_connections.png

Figure 5 Motor connections

Power Connections

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/power_connections.png

Figure 8 Power connections

Complete Test Bench

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/system_connection.png

Figure 9 Full system connection overview

Test Process

Before starting the testing procedure, make sure the Raspberry Pi is connected to Wi-Fi.

Enabling Wi-Fi

  1. After the RPi boots, press CONTROL+C to exit the test screen.

  2. Click on the Wi-Fi network you want to connect to.

    https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/test_process_1_wifi_connection.png

    Figure 10 Wi-Fi network selection

  3. Type in the password. After connecting successfully, reboot the Raspberry Pi.

    https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/test_process_2_reboot_conn.png

    Figure 11 Raspberry Pi menu

    https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/test_process_3_reboot_conn.png

    Figure 12 Shutdown options - select Reboot

Running the Tests

The following test menu should appear after reboot:

Please enter your choice:
1) TMC Bootstrapping
2) Firmware Flash
3) System Test
4) Power-Off Pi

1) TMC Bootstrapping

Type “1” and press ENTER to run 1) TMC9660 Bootstrapping. This step may fail once, in which case try it again. If it fails twice then either:

  • The board has already been through this test (check if any LEDs light up on the board)

  • The board is defective

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/test_menu_command_1.png

Figure 13 TMC Bootstrapping process

When prompted Proceed with OTP burn? (y/n):, press y then ENTER.

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/test_menu_command_1_result.png

Figure 14 TMC Bootstrapping passed

Attention

1) TMC Bootstrapping test is a one-time step. It might fail if you run it multiple times. Thus, an error may be acceptable if the step was already run and passed in the past.

To diagnose whether an error in this test is an actual fault, or just a result of running the step multiple times, do the following:

  • Press TMC_RST -> check DS1 lights up

  • Press MCU_RST -> check DS1 turns off

After pressing RST_TMC

After pressing RST_MCU

Diagnosis

DS1 lights up

DS1 turns off

OK! Both TMC and MCU are functional.

DS1 lights up

DS1 stays on

TMC bootstrapped, MCU not functional (could be because step 2 didn’t run yet)

DS1 LED does not turn on

/

TMC fault/TMC not bootstrapped

After TMC Bootstrapping:

  • Press RST_TMC button

  • Press RST_MCU button

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/reset_TMC_reset_MCU.png

Figure 15 RST_TMC and RST_MCU buttons

2) Firmware Flash

Type “2” in order to run 2) Firmware Flash. Connect the DAPLINK cable to P6 connector.

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/test_menu_command_2.png

Figure 16 Firmware Flash process

When prompted, verify that the programmer is connected to header P6, then press Enter.

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/test_menu_command_2_result.png

Figure 17 Firmware Flash passed

3) System Test

Type “3” to run 3) System Test.

Warning

THE MOTOR WILL MOVE during this test.

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/test_menu_command_3.png

Figure 18 System Test passed

If test 3) fails, it will display:

https://media.githubusercontent.com/media/plescaevelyn/adi-documentation/adrd3161_prod_test/docs/solutions/reference-designs/adrd3161-01z/images/production_tests/test_menu_command_3_failure.png

Figure 19 System Test failed