From e396fbbc6c841e831667de2c83afa56ec1a4f123 Mon Sep 17 00:00:00 2001 From: dankers Date: Fri, 18 Dec 2009 19:59:36 +0000 Subject: [PATCH] Added a line that should enable adaptive clocking over the JTAG and fall back to 1Mhz otherwise. Got this from the documentation, left it commented out as the current USB JTAG does not support rclk (return clock) and I have not tested this. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@77 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/Makefile b/flight/Makefile index 9fb5dab08..3a1ffc06c 100644 --- a/flight/Makefile +++ b/flight/Makefile @@ -326,8 +326,8 @@ OOCD_CL+=-c "fast enable" OOCD_CL+=-c targets # commands to prepare flash-write OOCD_CL+= -c "reset halt" -# increase JTAG frequency a little bit - can be disabled for tests -#OOCD_CL+= -c "jtag_khz 1200" +# Try to enable rclk for adaptive speed, fallback to 1Mhz +# OOCD_CL+= -c "jtag_rclk 1000" # flash-write and -verify OOCD_CL+=-c "flash write_image erase $(OOCD_LOADFILE)" -c "verify_image $(OOCD_LOADFILE)" # reset target