Hi.
I am planning to run the SCA attack on a new target board.
…and I would like to double check whether I correctly understand how communication works between the host and the target board so that to develop conforming UART communication.
- Using CW Python API, the specific/required UART setting can be pushed to the SAM3U via USB CDC from the host machine to the CW Husky.
…
target = cw.target(scope, cw.targets.SimpleSerial2)
target.baud = 115200 # assuming the target board works on 115200 bps
…
- The CW Husky’s SAM3U has the USART communication with the Atrix-7 FPGA and all SimpleSerial2 USART messages for the target board are passed through the FPGA without any changes on the FPGA side.
- The FPGA just implements routing for the USART RX/TX lines.
- Using the usart0 driver, the SAM3U establishes the USART session with the target board to send and receive the SimpleSerial2 messages.
- SAM3U side RX/TX activity is triggered by the interrupts.
- The SAM3U is kind of proxy between the host and the target board in terms of the SimpleSerial2 communication. The temporal storage for the data being transmitted and being received is the circular buffer.
If above is correct, I don’t need to care about UART setting directly on the SAM3U and the target board firmwares. Necessary UART settings can be pushed to the SAM3U by means of the CW python API.