Embedded Systems & Firmware
What can be done through debug interfaces such as JTAG and SWD?
- AHalt or single-step the program on the real board, inspect registers and variables, and program flash
- BChange the microcontroller's manufacturing process
- CAutomatically translate the program into another language
Show answer and explanation
Answer: A. Halt or single-step the program on the real board, inspect registers and variables, and program flash
JTAG and Arm's SWD connect the on-chip debug circuitry to a debugger on a PC. You can stop at breakpoints to examine variables and registers, step one instruction at a time and program the flash. They reveal internal state even where printf cannot be used. When shipping a product, the debug function may be disabled so that third parties cannot read out the firmware.
- A. Correct. It is an essential embedded development tool.
- B. It has nothing to do with manufacturing.
- C. It is not a translation function.