Send F4 memory-map and features for STM32F429
authormux <freelancer.c@gmail.com>
Wed, 16 Jul 2014 22:46:18 +0000 (00:46 +0200)
committermux <freelancer.c@gmail.com>
Wed, 16 Jul 2014 22:46:18 +0000 (00:46 +0200)
* Fix issues #250 #196

gdbserver/gdb-server.c

index 37e116c890188a2a944917e7352460ecc4009160..5565b0b56e1f7bb97dc85392e647afe45efce887 100644 (file)
@@ -336,7 +336,7 @@ char* make_memory_map(stlink_t *sl) {
     char* map = malloc(4096);
     map[0] = '\0';
 
-    if(sl->chip_id==STM32_CHIPID_F4) {
+    if(sl->chip_id==STM32_CHIPID_F4 || sl->chip_id==STM32_CHIPID_F4_HD) {
         strcpy(map, memory_map_template_F4);
     } else {
         snprintf(map, 4096, memory_map_template,
@@ -736,7 +736,7 @@ int serve(stlink_t *sl, st_state_t *st) {
                 DLOG("query: %s;%s\n", queryName, params);
 
                 if(!strcmp(queryName, "Supported")) {
-                    if(sl->chip_id==STM32_CHIPID_F4) {
+                    if(sl->chip_id==STM32_CHIPID_F4 || sl->chip_id==STM32_CHIPID_F4_HD) {
                         reply = strdup("PacketSize=3fff;qXfer:memory-map:read+;qXfer:features:read+");
                     }
                     else {