In this assignment, the solution to one of the hardware questions, the Trace question, is explained. The clue provided in the question is "One of our embedded devices has been compromised. A message was flashing so quickly on the debug matrix that it was unreadable, but we managed to capture one iteration. We need to figure out what's being displayed. We'll also provide you with the manufacturing files of the PCB module on which the matrix is located to assist you in your task." A CSV file and a Gerber file can be found if the supplied files are downloaded.
An 8x8 LED display and GPIO pins are located in a certain area of the PCB circuit under examination. To determine the pinout arrangement, the connections of these pins were inspected using the manufacturer's supplied information. The website "pinout.xyz," which shows the pin layouts and functionalities of electronic components, was used for this procedure. In order to determine which GPIO pins were connected to the LEDs, the wires in the PCB image were tracked using the pin inside the square using the Gerber viewer and the website. This exposes the 8x8 LED matrix's connection points.
MATLAB was used to process the data, and code was created to predict and simulate the LEDs' on times. This code reads the supplied CSV file, transforms it into a processable data type, and then writes the LED states into a three-dimensional variable named "led_states" using a for loop that is based on the connections of the GPIO pins. The final eight states of the matrix are identified and shown at this point. A visualization with greater meaning is produced by this process.