#822 Print Vtarget when using TPI.

This commit is contained in:
Jan Egil Ruud 2022-12-12 14:20:16 +01:00
parent 2561d87fbd
commit af43a7757d
1 changed files with 6 additions and 0 deletions

View File

@ -2612,6 +2612,12 @@ static int jtag3_initialize_tpi(const PROGRAMMER *pgm, const AVRPART *p) {
if ((status = jtag3_command_tpi(pgm, cmd, 3, &resp, "Set NVMCSR")) < 0)
return -1;
free(resp);
if (jtag3_getparm(pgm, SCOPE_GENERAL, 1, PARM3_VTARGET, cmd, 2) < 0)
return -1;
fmsg_out(stderr, "%sVtarget %s: %.2f V\n", "",
verbose? "": " ", b2_to_u16(cmd)/1000.0);
return 0;
}