kopia lustrzana https://github.com/stlink-org/stlink
Minor bugfixes
rodzic
dc5388d94c
commit
a52e1bc548
|
@ -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");
|
||||
|
|
|
@ -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\">"
|
||||
|
@ -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 {
|
||||
|
|
Ładowanie…
Reference in New Issue