summaryrefslogtreecommitdiff
path: root/cleopatre/tools
diff options
context:
space:
mode:
authorNélio Laranjeiro2013-02-05 17:31:24 +0100
committerNélio Laranjeiro2013-02-06 13:28:12 +0100
commit8ef22e73a19eb6988378f26caf98b22ae926e7cd (patch)
tree984617271a9213a6748169e72d25627ac6a6115e /cleopatre/tools
parent067d067973062dc5e1332369b770f3d0db269e07 (diff)
cleo/tools/openocd/config: needs a board to configure jtag, closes #3739
Since the introduction of the MSE500, the board option becomes mandatory to have the correct configuration file needed to use the jtag. As the option was not provided, a lot of necessary data were not present and the configuration template file could not be found by the script. This change makes the script abort the generation of the configuration file if the board is not provided. A message is printed on standard output to inform the user.
Diffstat (limited to 'cleopatre/tools')
-rwxr-xr-xcleopatre/tools/openocd-r668/config/gen_ocd_config13
1 files changed, 3 insertions, 10 deletions
diff --git a/cleopatre/tools/openocd-r668/config/gen_ocd_config b/cleopatre/tools/openocd-r668/config/gen_ocd_config
index dc778325bc..f424f43845 100755
--- a/cleopatre/tools/openocd-r668/config/gen_ocd_config
+++ b/cleopatre/tools/openocd-r668/config/gen_ocd_config
@@ -102,16 +102,9 @@ else
fi
if [ -z $board ]; then
- if [ -z $flash ]; then
- flash=m25p64;
- echo
- echo "!!! Default flash choosen: $flash";
- fi
- if [ -z $speed ]; then
- speed=500;
- echo
- echo "!!! Default low speed choosen: $speed kHz"
- fi
+ echo
+ echo "!!! Board option is mandatory"
+ exit
else
if [ $flash ]; then
force_flash=$flash