const struct eCos_params eCos_params_list[] = {
{
- "cortex_m3", /* target_name */
+ "cortex_m", /* target_name */
4, /* pointer_width; */
0x0c, /* thread_stack_offset; */
0x9c, /* thread_name_offset; */
param = (const struct eCos_params *) rtos->rtos_specific_params;
if (rtos->symbols == NULL) {
- LOG_OUTPUT("No symbols for eCos\r\n");
+ LOG_ERROR("No symbols for eCos");
return -4;
}
if (rtos->symbols[eCos_VAL_thread_list].address == 0) {
- LOG_OUTPUT("Don't have the thread list head\r\n");
+ LOG_ERROR("Don't have the thread list head");
return -2;
}
2,
(uint8_t *)&rtos->current_thread);
if (retval != ERROR_OK) {
- LOG_OUTPUT("Could not read eCos current thread from target\r\n");
+ LOG_ERROR("Could not read eCos current thread from target");
return retval;
}
2,
(uint8_t *)&thread_id);
if (retval != ERROR_OK) {
- LOG_OUTPUT("Could not read eCos thread id from target\r\n");
+ LOG_ERROR("Could not read eCos thread id from target");
return retval;
}
rtos->thread_details[tasks_found].threadid = thread_id;
param->pointer_width,
(uint8_t *)&name_ptr);
if (retval != ERROR_OK) {
- LOG_OUTPUT("Could not read eCos thread name pointer from target\r\n");
+ LOG_ERROR("Could not read eCos thread name pointer from target");
return retval;
}
ECOS_THREAD_NAME_STR_SIZE,
(uint8_t *)&tmp_str);
if (retval != ERROR_OK) {
- LOG_OUTPUT("Error reading thread name from eCos target\r\n");
+ LOG_ERROR("Error reading thread name from eCos target");
return retval;
}
tmp_str[ECOS_THREAD_NAME_STR_SIZE-1] = '\x00';
4,
(uint8_t *)&thread_status);
if (retval != ERROR_OK) {
- LOG_OUTPUT("Error reading thread state from eCos target\r\n");
+ LOG_ERROR("Error reading thread state from eCos target");
return retval;
}
param->pointer_width,
(uint8_t *) &thread_index);
if (retval != ERROR_OK) {
- LOG_OUTPUT("Error reading next thread pointer in eCos thread list\r\n");
+ LOG_ERROR("Error reading next thread pointer in eCos thread list");
return retval;
}
} while (thread_index != first_thread);
2,
(uint8_t *)&id);
if (retval != ERROR_OK) {
- LOG_OUTPUT("Error reading unique id from eCos thread\r\n");
+ LOG_ERROR("Error reading unique id from eCos thread");
return retval;
}
param->pointer_width,
(uint8_t *)&stack_ptr);
if (retval != ERROR_OK) {
- LOG_OUTPUT("Error reading stack frame from eCos thread\r\n");
+ LOG_ERROR("Error reading stack frame from eCos thread");
return retval;
}
i++;
}
if (i >= ECOS_NUM_PARAMS) {
- LOG_OUTPUT("Could not find target in eCos compatibility list\r\n");
+ LOG_ERROR("Could not find target in eCos compatibility list");
return -1;
}