kopia lustrzana https://github.com/stlink-org/stlink
[fix] stlinkv2 missing initialisation
rodzic
27cbec5d27
commit
99f8e5e950
|
@ -175,6 +175,7 @@ extern "C" {
|
||||||
/* sram settings */
|
/* sram settings */
|
||||||
#define STM32_SRAM_BASE 0x20000000
|
#define STM32_SRAM_BASE 0x20000000
|
||||||
#define STM32_SRAM_SIZE (8 * 1024)
|
#define STM32_SRAM_SIZE (8 * 1024)
|
||||||
|
#define STM32L_SRAM_SIZE (16 * 1024)
|
||||||
stm32_addr_t sram_base;
|
stm32_addr_t sram_base;
|
||||||
size_t sram_size;
|
size_t sram_size;
|
||||||
|
|
||||||
|
|
|
@ -702,6 +702,20 @@ on_libusb_error:
|
||||||
|
|
||||||
sl->backend = &_stlink_usb_backend;
|
sl->backend = &_stlink_usb_backend;
|
||||||
sl->backend_data = slu;
|
sl->backend_data = slu;
|
||||||
|
|
||||||
|
/* flash memory settings */
|
||||||
|
sl->flash_base = STM32_FLASH_BASE;
|
||||||
|
sl->flash_size = STM32_FLASH_SIZE;
|
||||||
|
sl->flash_pgsz = STM32_FLASH_PGSZ;
|
||||||
|
|
||||||
|
/* system memory */
|
||||||
|
sl->sys_base = STM32_SYSTEM_BASE;
|
||||||
|
sl->sys_size = STM32_SYSTEM_SIZE;
|
||||||
|
|
||||||
|
/* sram memory settings */
|
||||||
|
sl->sram_base = STM32_SRAM_BASE;
|
||||||
|
sl->sram_size = STM32L_SRAM_SIZE;
|
||||||
|
|
||||||
/* success */
|
/* success */
|
||||||
return sl;
|
return sl;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue