Print clock info after the correct clock speeds has been set
The "new" clock speed set by the -B flag wasn't reflected in the output log
This commit is contained in:
parent
de3d7c1659
commit
f6bbaadfa6
|
@ -1129,7 +1129,7 @@ static int jtag3_initialize(PROGRAMMER * pgm, AVRPART * p)
|
||||||
if (PDATA(pgm)->set_sck(pgm, parm) < 0)
|
if (PDATA(pgm)->set_sck(pgm, parm) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
jtag3_print_parms1(pgm, progbuf);
|
||||||
if (conn == PARM3_CONN_JTAG)
|
if (conn == PARM3_CONN_JTAG)
|
||||||
{
|
{
|
||||||
avrdude_message(MSG_NOTICE2, "%s: jtag3_initialize(): "
|
avrdude_message(MSG_NOTICE2, "%s: jtag3_initialize(): "
|
||||||
|
@ -2368,10 +2368,8 @@ static void jtag3_display(PROGRAMMER * pgm, const char * p)
|
||||||
avrdude_message(MSG_INFO, "%sICE firmware version: %d.%02d (rel. %d)\n", p,
|
avrdude_message(MSG_INFO, "%sICE firmware version: %d.%02d (rel. %d)\n", p,
|
||||||
parms[1], parms[2],
|
parms[1], parms[2],
|
||||||
(parms[3] | (parms[4] << 8)));
|
(parms[3] | (parms[4] << 8)));
|
||||||
avrdude_message(MSG_INFO, "%sSerial number : %s\n", p, resp);
|
avrdude_message(MSG_INFO, "%sSerial number : %s", p, resp);
|
||||||
free(resp);
|
free(resp);
|
||||||
|
|
||||||
jtag3_print_parms1(pgm, p);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2402,7 +2400,7 @@ static void jtag3_print_parms1(PROGRAMMER * pgm, const char * p)
|
||||||
|
|
||||||
if (jtag3_getparm(pgm, SCOPE_AVR, 1, PARM3_CLK_XMEGA_PDI, buf, 2) < 0)
|
if (jtag3_getparm(pgm, SCOPE_AVR, 1, PARM3_CLK_XMEGA_PDI, buf, 2) < 0)
|
||||||
return;
|
return;
|
||||||
avrdude_message(MSG_INFO, "%sPDI clock Xmega : %u kHz\n", p,
|
avrdude_message(MSG_INFO, "%sPDI/UPDI clock Xmega : %u kHz\n\n", p,
|
||||||
b2_to_u16(buf));
|
b2_to_u16(buf));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue