|
|
@@ -280,6 +280,8 @@ void mbed_error_hook(const mbed_error_ctx * error_context)
|
|
|
log("error_status: ", (uint32_t)error_context->error_status);
|
|
|
log("error_address: ", error_context->error_address);
|
|
|
log("error_value: ", error_context->error_value);
|
|
|
+ log("scsiDev.cdb: ", bytearray(scsiDev.cdb, 12));
|
|
|
+ log("scsiDev.phase: ", (int)scsiDev.phase);
|
|
|
|
|
|
uint32_t *p = (uint32_t*)((uint32_t)error_context->thread_current_sp & ~3);
|
|
|
for (int i = 0; i < 8; i++)
|
|
|
@@ -376,7 +378,11 @@ static void watchdog_callback(unsigned alarm_num)
|
|
|
{
|
|
|
log("--------------");
|
|
|
log("WATCHDOG TIMEOUT, attempting bus reset");
|
|
|
+ log("Platform: ", g_platform_name);
|
|
|
+ log("FW Version: ", g_log_firmwareversion);
|
|
|
log("GPIO states: out ", sio_hw->gpio_out, " oe ", sio_hw->gpio_oe, " in ", sio_hw->gpio_in);
|
|
|
+ log("scsiDev.cdb: ", bytearray(scsiDev.cdb, 12));
|
|
|
+ log("scsiDev.phase: ", (int)scsiDev.phase);
|
|
|
|
|
|
uint32_t *p = (uint32_t*)__get_PSP();
|
|
|
for (int i = 0; i < 8; i++)
|
|
|
@@ -398,6 +404,8 @@ static void watchdog_callback(unsigned alarm_num)
|
|
|
log("Platform: ", g_platform_name);
|
|
|
log("FW Version: ", g_log_firmwareversion);
|
|
|
log("GPIO states: out ", sio_hw->gpio_out, " oe ", sio_hw->gpio_oe, " in ", sio_hw->gpio_in);
|
|
|
+ log("scsiDev.cdb: ", bytearray(scsiDev.cdb, 12));
|
|
|
+ log("scsiDev.phase: ", (int)scsiDev.phase);
|
|
|
|
|
|
uint32_t *p = (uint32_t*)__get_PSP();
|
|
|
for (int i = 0; i < 8; i++)
|