From 3d438166ce02689867fe599ace62be9607a69660 Mon Sep 17 00:00:00 2001 From: Greg Alexander Date: Sat, 4 Jun 2016 15:50:33 -0400 Subject: [PATCH] Don't read the target voltage on startup, because it crashes STM32F100. --- src/gdbserver/gdb-server.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/gdbserver/gdb-server.c b/src/gdbserver/gdb-server.c index c50e5be32..55e0763ac 100644 --- a/src/gdbserver/gdb-server.c +++ b/src/gdbserver/gdb-server.c @@ -159,8 +159,6 @@ int parse_options(int argc, char** argv, st_state_t *st) { int main(int argc, char** argv) { - int32_t voltage; - stlink_t *sl = NULL; st_state_t state; @@ -193,11 +191,6 @@ int main(int argc, char** argv) { ILOG("Chip ID is %08x, Core ID is %08x.\n", sl->chip_id, sl->core_id); - voltage = stlink_target_voltage(sl); - if (voltage != -1) { - ILOG("Target voltage is %d mV.\n", voltage); - } - sl->verbose=0; current_memory_map = make_memory_map(sl);