Board Validation

When hardware brings up boards, they need to have means to validate it.

While there are test points to test for various voltages, there are some validations that we can possibly do by running custom firmware that validates the basic functionalities of each board! These include but are not limited to: 

Controller Board:

  • Making sure the programmer works
  • The correct LED's were installed
  • Making sure CAN works
  • Making sure the UART connection successfully outputs messages

Tutorial Board:

  • Validating Buttons
  • Validating the ADC
  • Validating SPI
  • Validating I2C

So for validating all of these functionalities, we made the board validation project!

Installation

Installation is pretty easy:

Step 1:

Setup
Now ssh into the box.
# Access the box
vagrant ssh

Step 2.

Follow the installation guide on the repository.

How to run? 

You must be still ssh'd into the box. If not, ssh into it again. 

Change your directory to the board_validation project: 

cd /home/vagrant/shared/board_validation

And run the run.sh script:

./run.sh

You will see an output like so: 

(base) vagrant@midsunbox:~/shared/board_validation$ ./run.sh 
[INFO] Available scenarios: please input the number of the scenario that you would like to run. Type "exit" to stop. 
[INFO] [0]: Blinking LEDs 
[INFO] [1]: Tutorial Board: ADC 
[INFO] [2]: Tutorial Board: Button Press 

Make sure you have boards connected properly. The program will try and tell you if it cannot find the controller board.

Now you can follow the instructions given by the program. At each scenario, there will be a description of what you should expect to see.