return ERROR_TARGET_NOT_HALTED;
}
+ if (!debug_execution) {
+ target_free_all_working_areas(target);
+ cortex_m3_enable_breakpoints(target);
+ cortex_m3_enable_watchpoints(target);
+ }
+
pc = armv7m->arm.pc;
if (!current) {
buf_set_u32(pc->value, 0, 32, address);
uint32_t size, uint32_t count,
uint8_t *buffer)
{
+ struct hl_interface_s *adapter = target_to_adapter(target);
int res;
- uint32_t buffer_threshold = 128;
+ uint32_t buffer_threshold = (adapter->param.max_buffer / 4);
uint32_t addr_increment = 4;
uint32_t c;
- struct hl_interface_s *adapter = target_to_adapter(target);
if (!count || !buffer)
return ERROR_COMMAND_SYNTAX_ERROR;
*/
if (size != 4) {
count *= size;
- buffer_threshold = 64;
+ buffer_threshold = (adapter->param.max_buffer / 4) / 2;
addr_increment = 1;
}
uint32_t size, uint32_t count,
const uint8_t *buffer)
{
+ struct hl_interface_s *adapter = target_to_adapter(target);
int res;
- uint32_t buffer_threshold = 128;
+ uint32_t buffer_threshold = (adapter->param.max_buffer / 4);
uint32_t addr_increment = 4;
uint32_t c;
- struct hl_interface_s *adapter = target_to_adapter(target);
if (!count || !buffer)
return ERROR_COMMAND_SYNTAX_ERROR;
*/
if (size != 4) {
count *= size;
- buffer_threshold = 64;
+ buffer_threshold = (adapter->param.max_buffer / 4) / 2;
addr_increment = 1;
}
COMMAND_REGISTRATION_DONE
};
-struct target_type stm32_stlink_target = {
- .name = "stm32_stlink",
+struct target_type hla_target = {
+ .name = "hla_target",
+ .deprecated_name = "stm32_stlink",
.init_target = adapter_init_target,
.target_create = adapter_target_create,