Skip to content

Commit

Permalink
Send F4 memory-map and features for STM32F429
Browse files Browse the repository at this point in the history
  • Loading branch information
iabdalkader committed Jul 16, 2014
1 parent 22eb674 commit e12842b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gdbserver/gdb-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e12842b

Please sign in to comment.