efm32: inhibit srst

EFM32s don't seem to like to be completely resetted while being debugged
(load and break were broken)
This commit is contained in:
Laurent Bonnans 2015-12-09 14:12:24 +01:00
parent 1e5c053f4f
commit 2d7b24c566
1 changed files with 1 additions and 0 deletions

View File

@ -334,6 +334,7 @@ bool efm32_probe(target *t)
uint32_t ram_size = efm32_read_ram_size(t) * 0x400; uint32_t ram_size = efm32_read_ram_size(t) * 0x400;
/* Setup Target */ /* Setup Target */
t->target_options |= CORTEXM_TOPT_INHIBIT_SRST;
t->driver = variant_string; t->driver = variant_string;
gdb_outf("flash size %d page size %d\n", flash_size, flash_page_size); gdb_outf("flash size %d page size %d\n", flash_size, flash_page_size);
target_add_ram (t, SRAM_BASE, ram_size); target_add_ram (t, SRAM_BASE, ram_size);