From 01de7aa2cf429b2b53d8944451c9c70e77989a30 Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Thu, 22 Dec 2011 18:30:36 +0100 Subject: [PATCH] Fixed the STM32F1VL load problem --- gdbserver/gdb-server.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gdbserver/gdb-server.c b/gdbserver/gdb-server.c index 6033040..36c2b16 100644 --- a/gdbserver/gdb-server.c +++ b/gdbserver/gdb-server.c @@ -18,6 +18,7 @@ #include #include +#include "uglylogging.h" #include "gdb-remote.h" @@ -159,8 +160,12 @@ int main(int argc, char** argv) { if(sl == NULL) return 1; break; } - - printf("Chip ID is %08x, Core ID is %08x.\n", sl->chip_id, sl->core_id); + + if(stlink_load_device_params(sl)){ + ugly_log(UFATAL,__FILE__,"Could not read device parameters. Aborting\n"); + return 1;} + else + ugly_log(UDEBUG,__FILE__,"Chip ID is %08x, Core ID is %08x.\n", sl->chip_id, sl->core_id); sl->verbose=0;