From db2d897c3f6baff8680e62aa2840d56f8590c4f3 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Sat, 13 Oct 2012 08:40:37 +0900 Subject: [PATCH] Update README and fix for STBEE_MINI --- ChangeLog | 5 +++++ README | 9 ++++----- boards/STBEE_MINI/board.c | 9 +++++++++ 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9816961..79bd872 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-10-13 Niibe Yutaka + + * boards/STBEE_MINI/board.c [!DFU_SUPPORT] (hwinit1): Don't run + when "user switch" is pushed. This is for JTAG/SWD debugger. + 2012-09-25 Niibe Yutaka * tool/stlinkv2.py (main): Print out option bytes value. diff --git a/README b/README index 3b3da45..256ea99 100644 --- a/README +++ b/README @@ -261,9 +261,8 @@ please contact Niibe, so that it is listed to the file in the official release of the source code. When you are modifing Gnuk and installing the binary to device, you -should replace "FSIJ" in the string gnukStringSerial (usb_desc.c) to -yours, so that the device will say it's modified version by device -serial number. +should replace the vendor string to yours, so that users can see it's +not by original vendor, and it is modified version. FSIJ allows you to use USB device ID of FSIJ (234b:0000) for devices with Gnuk under one of following conditions: @@ -294,8 +293,8 @@ respect users' freedom for computing. Please ask FSIJ for the license. Otherwise, companies which want to distribute Gnuk devices, please use -your own USB vendor ID and product ID. Please replace "FSIJ" in the -string gnukStringSerial (usb_desc.c) to yours, when you modify Gnuk. +your own USB vendor ID and product ID. Please replace vendor string +and possibly product string to yours, when you modify Gnuk. Host Requirements diff --git a/boards/STBEE_MINI/board.c b/boards/STBEE_MINI/board.c index 2d3e0a1..c51d347 100644 --- a/boards/STBEE_MINI/board.c +++ b/boards/STBEE_MINI/board.c @@ -9,6 +9,15 @@ hwinit1 (void) { hwinit1_common (); +#if !defined(DFU_SUPPORT) + if (palReadPad (IOPORT3, GPIOC_BUTTON) == 0) + /* + * Since LEDs are connected to JTMS/SWDIO and JTDI pin, + * we can't use LED to let know users in this state. + */ + for (;;); /* Wait for JTAG debugger connection */ +#endif + #if defined(PINPAD_SUPPORT) && !defined(DFU_SUPPORT) palWritePort(IOPORT2, 0x7fff); /* Only clear GPIOB_7SEG_DP */ while (palReadPad (IOPORT2, GPIOB_BUTTON) != 0)