jlink: set the speed at JLINK_MAX_SPEED when an exceeded speed is requested
it will allow to be at the highest speed of the jlink without touching the board or cpu config tested on sam-ice v5 and at91rm9200-ek Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
This commit is contained in:
parent
403e239960
commit
05abfbadf1
|
@ -236,9 +236,9 @@ static int jlink_speed(int speed)
|
|||
|
||||
if (speed > JLINK_MAX_SPEED)
|
||||
{
|
||||
LOG_INFO("Ignoring speed request: %dkHz exceeds %dkHz maximum",
|
||||
LOG_INFO("reduce speed request: %dkHz to %dkHz maximum",
|
||||
speed, JLINK_MAX_SPEED);
|
||||
return ERROR_OK;
|
||||
speed = JLINK_MAX_SPEED;
|
||||
}
|
||||
|
||||
/* check for RTCK setting */
|
||||
|
|
Loading…
Reference in New Issue