Skip to content

Commit

Permalink
Merge pull request #424 from galexander1/novoltagef1
Browse files Browse the repository at this point in the history
Don't read the target voltage on startup, because it crashes STM32F100.
  • Loading branch information
texane committed Jun 5, 2016
2 parents c0177ec + 3d43816 commit 753dfab
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/gdbserver/gdb-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 753dfab

Please sign in to comment.