Fix memory config for STM32F4
authorVictor Mayoral Vilches <v.mayoralv@gmail.com>
Mon, 29 Sep 2014 21:26:20 +0000 (14:26 -0700)
committerVictor Mayoral Vilches <v.mayoralv@gmail.com>
Tue, 30 Sep 2014 18:54:56 +0000 (11:54 -0700)
The previous memory map didn't allow to debug the whole flash
memory. A new configuration has been added and should be
used while working with the STM32F4Discovery.

gdbserver/gdb-server.c

index e5e754bd897a0ebd72e7efb6cd2f6e36d81692c3..6ea9baecf7937c7f98c8d42cfc4da844a47d83bb 100644 (file)
@@ -306,7 +306,7 @@ static const char* const memory_map_template_F4 =
     "  <memory type=\"flash\" start=\"0x08010000\" length=\"0x10000\">"     //Sector 4
     "    <property name=\"blocksize\">0x10000</property>"                   //64kB
     "  </memory>"
-    "  <memory type=\"flash\" start=\"0x08020000\" length=\"0x70000\">"     //Sectors 5..11
+    "  <memory type=\"flash\" start=\"0x08020000\" length=\"0xE0000\">"     //Sectors 5..11
     "    <property name=\"blocksize\">0x20000</property>"                   //128kB
     "  </memory>"
     "  <memory type=\"ram\" start=\"0x40000000\" length=\"0x1fffffff\"/>"   // peripheral regs