return JIM_ERR;
}
- struct target *target = Jim_CmdPrivData(goi.interp);
+ struct command *c = jim_to_command(goi.interp);
+ struct target *target = c->jim_handler_data;
int result;
result = target_write_buffer(target, address, count * 4, (const uint8_t *)data);
if (e != JIM_OK)
return e;
- struct target *target = Jim_CmdPrivData(goi.interp);
+ struct command *c = jim_to_command(goi.interp);
+ struct target *target = c->jim_handler_data;
struct aice_port_s *aice = target_to_aice(target);
int result;
uint32_t address;
if (goi.argc != 0)
return JIM_ERR;
- struct target *target = Jim_CmdPrivData(goi.interp);
+ struct command *c = jim_to_command(goi.interp);
+ struct target *target = c->jim_handler_data;
uint32_t *data = malloc(count * sizeof(uint32_t));
int result;
result = target_read_buffer(target, address, count * 4, (uint8_t *)data);
else
return ERROR_FAIL;
- struct target *target = Jim_CmdPrivData(goi.interp);
+ struct command *c = jim_to_command(goi.interp);
+ struct target *target = c->jim_handler_data;
struct aice_port_s *aice = target_to_aice(target);
char data_str[11];
else
return ERROR_FAIL;
- struct target *target = Jim_CmdPrivData(goi.interp);
+ struct command *c = jim_to_command(goi.interp);
+ struct target *target = c->jim_handler_data;
struct aice_port_s *aice = target_to_aice(target);
aice_write_debug_reg(aice, edm_sr_number, value);
.handler = handle_nds32_global_stop_command,
.mode = COMMAND_ANY,
.usage = "['on'|'off']",
- .help = "turn on/off global stop. After turning on, every load/store" \
+ .help = "turn on/off global stop. After turning on, every load/store "
"instructions will be stopped to check memory access.",
},
{
.handler = handle_nds32_soft_reset_halt_command,
.mode = COMMAND_ANY,
.usage = "['on'|'off']",
- .help = "as issuing rest-halt, to use soft-reset-halt or not." \
+ .help = "as issuing rest-halt, to use soft-reset-halt or not."
"the feature is for backward-compatible.",
},
{
.name = "login_edm_operation",
.handler = handle_nds32_login_edm_operation_command,
.mode = COMMAND_CONFIG,
- .usage = "login_edm_operation misc_reg_no value",
+ .usage = "misc_reg_no value",
.help = "add EDM operations for secure MCU debugging.",
},
{
},
COMMAND_REGISTRATION_DONE
};
-