Skip to content

Commit

Permalink
Minor bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightwalker-87 committed Jul 16, 2021
1 parent dc5388d commit a52e1bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ static uint32_t get_stm32l0_flash_base(stlink_t *sl) {
case STLINK_CHIPID_STM32_L1_MD:
case STLINK_CHIPID_STM32_L1_MD_PLUS:
case STLINK_CHIPID_STM32_L1_MD_PLUS_HD:
return (STM32L1_FLASH_REGS_ADDR);
return (STM32L_FLASH_REGS_ADDR);

default:
WLOG("Flash base use default L0 address\n");
Expand Down
6 changes: 3 additions & 3 deletions src/st-util/gdb-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ static const char* const memory_map_template_H7 =
" <memory type=\"rom\" start=\"0x1ff00000\" length=\"0x20000\"/>" // bootrom
"</memory-map>";

static const char* const memory_map_template_H72X3X =
static const char* const memory_map_template_H72x3x =
"<?xml version=\"1.0\"?>"
"<!DOCTYPE memory-map PUBLIC \"+//IDN gnu.org//DTD GDB Memory Map V1.0//EN\""
" \"http://sourceware.org/gdb/gdb-memory-map.dtd\">"
Expand Down Expand Up @@ -583,8 +583,8 @@ char* make_memory_map(stlink_t *sl) {
snprintf(map, sz, memory_map_template_L496,
(unsigned int)sl->flash_size,
(unsigned int)sl->flash_size);
} else if (sl->chip_id == STLINK_CHIPID_STM32_H72X) {
snprintf(map, sz, memory_map_template_H72X3X,
} else if (sl->chip_id == STLINK_CHIPID_STM32_H72x) {
snprintf(map, sz, memory_map_template_H72x3x,
(unsigned int)sl->flash_size,
(unsigned int)sl->flash_pgsz);
} else {
Expand Down

0 comments on commit a52e1bc

Please sign in to comment.