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:
Jean-Christophe PLAGNIOL-VILLARD 2011-02-21 18:59:49 +01:00 committed by Øyvind Harboe
parent 403e239960
commit 05abfbadf1
1 changed files with 2 additions and 2 deletions

View File

@ -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 */